This is an introduction page where we will understand Linux commands and why we need to use the command line. Maybe this post can have a different perspective for Linux users and admin. So basically this post is for Linux users and new admins.
Why Linux Command Line
Many new users can ask this question why Linux command. Like windows also have command line cmd and PowerShell but we never use them. So why it is important to use the command in Linux ?
In windows, we use applications like browser, Excel, PowerPoint, etc and we never try to change windows OS, and even legally we can not modify windows. In Linux we can modify Linux as per our requirements, most users use Linux because they find the freedom to customize there user experience according to them. Some point I al mentioning below why we need to use command line :
- Faster execution – you can perform any action with command line
- Single view Administration – You can perform all actions from putty or terminal
- Edit beyond GUI- Mostly system tweak features are not integrated with GUI because GUI made only for the normal user. If you want to be a power user who can tweak system settings you need to use the command line.
- Automate Script – If you want to automate your daily task. Command-line is a very easy and effective way. You can use any other programs and other languages. But in Linux shell script is much faster and effective to automate tasks. for Shell scripting Linux command are same as they are in terminal.
Who Can Skip Linux Commands
If you are using any specific GUI-based property application on Linux. Then you can skip the Linux command line. Otherwise, some basic command is mandatory to know.
Basic Linux Command for Everyone
Below are some basic Linux command which you should know even you are a user or new to linux. Please find some basic command below:
Note: Linux commands are case sensitive, so be careful otherwise you will get a command not found error.
- touch – This command is used to create a new file without any text or content
- vi or vim – This command is used to create a new file with a text or edit any existing file.
- nano – This command also has the same function as vi or vim. You can create or modify files.
- cat – View file content without opening the file
- Package Manager – This is different in different distribution like in Ubuntu apt is package manager in RHEL yum and dnf are package manager. You need to check as per your distribution but usages are the same.
- cp – Copy any file or directory from one location to another location.
- mv – Move file or directory from one location to another.
- rm – Remove or erase any file or directory.
- mkdir – Create a directory or folder.
- rmdir – Remove or delete the directory.
- systemctl or service – This command is used to start, stop, restart any service. systemctl has more functions but for basic this is enough.
- wget and curl – Both Linux commands are used to download files from the internet.
- ping – This command is very useful to check network connectivity. Very useful command for any admin but for new users a tool to test internet or connectivity.
- ip a – Check the IP address of your system and port status.
- reboot – This is a common command to reboot your system.
Here I have mentioned some basic commands for any Linux users and which can help you to increase productivity and use Linux faster than GUI mode.
Please let me in the comment if any other Linux commands is for new users.