A command-line interface (CLI) is a text-based user interface (UI) used to interact with applications and operating systems. In this article, I am going to share with you 15 must-know CLI commands for every Linux user.
You might be new Linux user and you be finding it difficult to use while being in comfort of using GUI based operating system like Windows, and on another hand, you are curious to know new things and wanted to work with commands in Linux.
Before starting the list you must know there are lots of commands out there and you will come across all of them one day but the list below states the commonly used and important commands which every Linux user must know.
If you want to see the list of files on your Linux system, use the ls command. It shows the files /directories in your current directory.
The rm command removes files from the system without confirmation.
Directories can be created on a Linux operating system using the mkdir command. This command will create a subdirectory in your present working directory.
This command prints the full pathname of the current working directory. To know which directory you are in, you can use the “pwd” command. It gives us the absolute path, which means the path that starts from the root.
The touch command is used to create a file. It can be anything, from an empty txt file to an empty zip file.
clear command clears the screen of terminal and get you back to current directory.
The cat command is used to perform three related functions with regard to text files displaying them, combining copies of them and creating new ones.
more is a filter for paging through text one screen at a time.
find can be used to find files and directories and perform subsequent operations on them. It supports searching by file, folder, name, creation date, modification date, owner and permissions.
apt-get is a shell command, which installs and maintains programs and other collections of files (data, documentation, etc.) in the form of packages.
wget stands for “web get”. It is a command-line utility which downloads files over a network.
wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.
It stands for “super user do!”, which allows a user with proper permissions to execute a command as another user, such as the superuser.
ifconfig stands for “interface configuration”. It is used to view and change the configuration of the network interfaces on your system.
man is used to learning more about a command or a particular tool and how to use it. It shows the manual pages of the command. If you need any help in understanding any of commands just add man command before it and you will get in manual i.e full information on command.
So, that’s all folks. I hoped you like my article. I will keep publishing more content about Linux and Security. Please show your love and share the article on your network. Also, leave a comment. Thank you. If you liked this article then you should also check out the following: