Top 10 Basic commands to start with Linux
It’s been a long time since I started working with the Linux Operating System. Linux is an open-source operating system that is widely used by developers, system administrators, and hobbyists. Linux is versatile, reliable, and secure. If you’re new to Linux, below are the top 10 basic commands that you should know to get started.
1. cd
The cd command stands for “change directory”. It is used to change the current working directory in the terminal. For example, if you want to change the directory to the Downloads folder, you can use the following command:
cd Downloads
2. ls
The ls command stands for “list”. It is used to list the files and directories in the current directory. For example, if you want to list the files and directories in the Documents folder, you can use the following command:
ls Documents
3. mkdir
The mkdir command stands for “make directory”. It is used to create a new directory. For example, if you want to create a new directory called “MyFolder1”, you can use the following command:
mkdir MyFolder1
4. rmdir
The rmdir command stands for “remove directory”. It is used to delete an empty directory. For example, if you want to delete the “MyFolder1” directory, you can use the following command:
rmdir MyFolder1
5. touch
The touch command is used to create a new file. For example, if you want to create a new file called “MyFile.txt”, you can use the following command:
touch MyFile.txt
6. cp
The cp command stands for “copy”. It is used to copy a file from one location to another. For example, if you want to copy the “MyFile.txt” file from the Documents folder to the Downloads folder, you can use the following command:
cp Documents/MyFile.txt Downloads/
7. mv
The mv command stands for “move”. It is used to move a file from one location to another. For example, if you want to move the “MyFile.txt” file from the Documents folder to the Downloads folder, you can use the following command:
mv Documents/MyFile.txt Downloads/
8. rm
The rm command stands for “remove”. It is used to delete a file. For example, if you want to delete the “MyFile.txt” file, you can use the following command:
rm MyFile.txt
9. pwd
The pwd command stands for “print working directory”. It is used to display the current working directory. For example, if you want to display the current working directory, you can use the following command:
pwd
10. man
The man command stands for “manual”. It is used to display the manual pages for a command. For example, if you want to display the manual page for the ls command, you can use the following command:
man ls
These are the top 10 basic commands to start with Linux. Once you get comfortable with these commands, you can explore more advanced commands and features of Linux.