Following are the top 20 basic Linux Commands with Live Examples that would definitely help you start your Linux journey.
- pwd: The PWD Command is used to display your current working directory.
- ls: The ls command in Linux will help you to list all the content present inside your current working directory.
- cd: The cd command in Linux is used to browse through the directory.
- mkdir/rmdir: The mkdir command in Linux is used to create directory/directories, whereas the rmdir is used to remove a directory.
- rm: The rm -r command in Linux is used to remove directories containing files.
- touch: You can use the touch command to create file.
- find: You can easily find any specific file or directory located in your current working directory.
- cp: The cp command in Linux is used to copy files/directories from one directory to another.
- mv: The mv command is used to simply rename files.
- cat: This command is used to view the contents of a file.
- vi/nano: Both of the commands are used to modify the contents of a file.
- df: This command will display the available & used disk space of every partition in your system.
- du: The du command can be used to track files and directories that are consuming a high amount of disk space on your server’s hard disk.
- zip/unzip: To compress a file or files into a zip format, use the zip command. You can use the unzip command to extract the zip files.
- uname: The uname command is used to display the information about the operating system your server using.
- tar: You can use the tar command to create compressed or uncompressed Archive files and also maintain and modify them.
- chmod: he chmod command is used to change the files/directories permissions.
- ping: This command is used to troubleshoot the connectivity and reachability of the domain or server.
- top: This command displays the real-time view of all the processes running,
- exit: The exit command is used to close and exit from the terminal.