Linux Commands Cheat Sheet.
I've been using Ubuntu as my primary operating system for more than two years now. If you are comfortable with the command line, you can learn a lot of different skills very quickly and with minimal hassle. In this blog, I have shared the list of 20 basic Linux commands that are very helpful for Ubuntu beginners in daily life. I recommend you not just copy-paste these commands, type these commands by yourself so that you can remember them in future.
Before starting, here is a small tip for Linux lovers: You can check the Internet Speed via terminal just by running this command.
sudo apt install speedtest-cli
(The first command is just to install the package and doesn't need to be run again and again)
The cd ('change directory') command is used to change the current directory in Linux
The ls ('list directory contents') command shows existing files and directories in the current directory
The pwd ('print work directory') command shows the full path of the current working directory
The clear command is used to clear the terminal screen.
The history command is used to display all previous commands executed in the terminal.
whatis command is used to display the one-line description of any program
whereis command is used to find the path of some program or file.
ping command is used to check the internet connectivity status to a server.
help command is used to display brief information about any other command.
mkdir ('make directory') is used to create a new directory in an existing directory.
rm -r ('remove directory') is used to remove any directory in existing directory.
rm -r dir
cp ('copy') is used to copy any single or multiple files from a source directory to a destination directory.
cp file1.txt drive1
mv ('move') command is used to move single or multiple files from a source to the destination directory.
mv file1.txt file
rm ('remove') command is used to remove a single or multiple file from a directory.
zip command is used to compress and zip files or folders.
zip ZIP-Folder file2.txt
unzip command is used to unzip and extract any compressed folder.
sudo ('super user do') command allows to run or execute anything with system administrator rights.
nano command allows to read, write or edit any file in terminal
exit command used to exit the terminal environment or used to terminate the superuser environment.
shutdown command allows to shut down the system through the terminal.
And that’s it. Thank you for sticking with me till the end of this tutorial. I hope this was helpful in some way to you.
Till next time :) Happy Learning.
If you liked this article make sure to 👍 it, and follow me on Twitter