Easiest way to learn command line?

David Beroff

Well-known member
Joined
Jun 14, 2016
Messages
973
Best answers
0
Ratings
83 1
Points
28
#1
Whats the easiest way to learn the command line in terms of managing your server and files. Learning all commands or just learning commands that you need to manage your server? What is your experience about this?
 

Malware.Expert

Corporate Member
Corporate Member
Joined
Jun 18, 2018
Messages
52
Best answers
0
Ratings
37 5
Points
18
#2
My option is just learn basic command's first what need and when you progress forward, you learn more and more and easily search from google.

Like: ls, grep, nano/vi/vim, cat, find and etc ...
 

BillEssley

Well-known member
Joined
Feb 19, 2013
Messages
289
Best answers
2
Ratings
25
Points
28
#4
BillEssley
I agree with this suggestion, we should learn from basic to advanced commands and the best way to remember commands is you need to do on a real VPS. There are more low price VPS and you can take one to learn and test what you are learning.

Honestly I tried this way and now I can manage a server without any problems.
 

VirtuBox

Global Mod
Staff Member
Joined
May 3, 2016
Messages
1,526
Best answers
4
Ratings
398 12
Points
83
#3
Whats the easiest way to learn the command line in terms of managing your server and files. Learning all commands or just learning commands that you need to manage your server? What is your experience about this?
The easiest is to use a cheat sheet when you are not sure about how to use a command.
One of the best cheat sheet available from the command line is http://cheat.sh/, you can easily configure it on your server to get some usage examples of a command.

Bash:
 # download cheat.sh
curl https://cht.sh/:cht.sh > /usr/bin/cht.sh

# make it executable
chmod +x /usr/bin/cht.sh

# add an alias for cht.sh
echo "alias cheat='cht.sh'" >> .bashrc

# apply new alias
source .bashrc
Then if you need examples to use the command gzip, you will just have to use
Bash:
cheat gzip
and it will give you this answer :
Bash:
[email protected]:~# cheat gzip
# To create a *.gz compressed file
gzip test.txt

# To create a *.gz compressed file to a specific location using -c option (standard out)
gzip -c test.txt > test_custom.txt.gz

# To uncompress a *.gz file
gzip -d test.txt.gz

# Display compression ratio of the compressed file using gzip -l
gzip -l *.gz

# Recursively compress all the files under a specified directory
gzip -r documents_directory

# To create a *.gz compressed file and keep the original
gzip < test.txt > test.txt.gz
 
Joined
Sep 11, 2018
Messages
3
Best answers
0
Points
1
#8
I agree with other people who reply in your thread.
You should first learn the basics then continue with other things.
Search basic UNIX commands, but better search for the Linux Distro which you want to learn.
 

Malcolmjr96

Moderator
Staff Member
Joined
Apr 18, 2016
Messages
329
Best answers
2
Ratings
71 8
Points
28
#11
Just curious, why is command line so important?
 

hostens

Well-known member
Joined
Jan 18, 2017
Messages
191
Best answers
2
Ratings
73 9
Points
28
#21
The easiest way to learn the command line is to do it and then repeat it over. It's said, "practice makes perfect". Start from the general commands while adding some new ones over time.
 
Latest Threads
Replies
3
Views
14
Replies
0
Views
20
Replies
0
Views
13
Replies
2
Views
26

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top