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.
- It gives a more flexibility for your daily tasks.
- It builds up the knowledge for you to use other tools that use quite a lot of command line as well, like Docker, Git.
- It is way fast doing task from command line.
Within this reasons I think will be enough for your to learn Linux command.
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.
list which allows you to list the content of a specified directory.
pwd means 'print working directory` which allows you to print out the path of current directory.
concatenate which allows you to read the content of a specified file.
tape archive which allows you to archive directories or files.
globally search a regular expression and print which allows you to search a regular expression then print it out.
secure socket shell which allows you to log into a remote host.
vim is a editor built in within Linux most of the time, with which you can use to edit a file.
difference which allows you to compare the different of two files.
export allows you to export an environment variable so that you can use globally.
gzip allows you to create a *.gz compressed file.
unzip allows you to unzip a *.zip compressed file.
process status which allows you to print out the working process status in your system.
top allows you to displays the top processes in the system ( by default sorted by cpu usage ).
kill allows you to kill a process.
rm allows you to remove a directory or file.
cp allows you to copy a file into a specified path.
mv allows you to move a directory or file.
chmod allows you to change mode of a specified file or directory.
chown allows you to change the owner of a specified file or directory.
mkdir allows you to create an empty directory.
ifconfig allows you to inspect the network interface.
unix name which allows you to display the important information of your system.
whereis allows you to find out where a specified command exists.
whatis allows you to get a single line description about a command.
tail allows you to print the last 10 lines of a file by default.
less allows you to read a portion of a file so it will be faster performance.
su allows you to switch to a different user.
ping allows you to ping a remote host by sending only 5 packets.
wget allows you to download software, music, video from internet.
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.