Easiest way to learn command line?

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,501
Points
63
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

Member
Registered
Joined
Jun 18, 2018
Messages
55
Points
18
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
Registered
Joined
Feb 19, 2013
Messages
358
Points
28
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

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
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:
user@server:~# 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
 

CryptoHost

New member
Registered
Joined
Sep 11, 2018
Messages
3
Points
1
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
433
Points
28
Just curious, why is command line so important?
 

hostens

Well-known member
Hosting Provider
Registered
Joined
Jan 18, 2017
Messages
215
Points
28
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
1
Views
23
Replies
0
Views
175
Replies
1
Views
37
Replies
2
Views
81

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

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