in linux programming system admin ~ read.

Linux commands that you should know

In this post we are going to talk about some linux command that you definitely should know about.

Why Linux Command?

Your first question will be why the hell do you need to learn Linux command and why don't we just use GUI all the way. Learning Linux command is quite essential since at the moment a lot of tools that we use for our daily development like Docker, Git, NPM etc that force us to use Linux command unless you use some GUI for them which is fine.

But as far as I know, learning Linux command has the following benefits.

  1. It gives a more flexibility for your daily tasks.
  2. It builds up the knowledge for you to use other tools that use quite a lot of command line as well, like Docker, Git.
  3. It is way fast doing task from command line.

Within this reasons I think will be enough for your to learn Linux command.

CD

cd means change directory which has been used like zillion times a day by our developers. You can use this command literally go anywhere from command line.

LS

ls means list which allows you to list the content of a specified directory.

PWD

pwd means 'print working directory` which allows you to print out the path of current directory.

CAT

cat means concatenate which allows you to read the content of a specified file.

TAR

tar means tape archive which allows you to archive directories or files.

GREP

grep means globally search a regular expression and print which allows you to search a regular expression then print it out.

SSH

ssh means secure socket shell which allows you to log into a remote host.

VIM

vim is a editor built in within Linux most of the time, with which you can use to edit a file.

DIFF

diff means difference which allows you to compare the different of two files.

EXPORT

export allows you to export an environment variable so that you can use globally.

GZIP

gzip allows you to create a *.gz compressed file.

UNZIP

unzip allows you to unzip a *.zip compressed file.

PS

ps means process status which allows you to print out the working process status in your system.

TOP

top allows you to displays the top processes in the system ( by default sorted by cpu usage ).

KILL

kill allows you to kill a process.

RM

rm allows you to remove a directory or file.

CP

cp allows you to copy a file into a specified path.

MV

mv allows you to move a directory or file.

CHMOD

chmod allows you to change mode of a specified file or directory.

CHOWN

chown allows you to change the owner of a specified file or directory.

MKDIR

mkdir allows you to create an empty directory.

IFCONFIG

ifconfig allows you to inspect the network interface.

UNAME

uname means unix name which allows you to display the important information of your system.

WHEREIS

whereis allows you to find out where a specified command exists.

WHATIS

whatis allows you to get a single line description about a command.

TAIL

tail allows you to print the last 10 lines of a file by default.

LESS

less allows you to read a portion of a file so it will be faster performance.

SU

su allows you to switch to a different user.

PING

ping allows you to ping a remote host by sending only 5 packets.

WGET

wget allows you to download software, music, video from internet.

End

Thanks for reading this article. The above commands will be enough for you to do your daily tasks and it just makes your life way simpler.

comments powered by Disqus