In this article we are going to discuss about basic Linux commands. If you are new to Linux and want to explore the amazing world of Linux these commands may prove helpful to you. Before learning basic Linux commands, let’s discuss about Linux itself and command line.
Linux is an open source operating system with very powerful command line interface. Linux is also powerful operating system because more than 90% of the super computers in the world are operating Linux. Being familiar with Linux basically means being familiar with command lines. Command lines are extremely useful while working in Linux environment. Commands are used for navigation, downloads, file management, hacking(if you are in a distro like Kali). You can also use Linux terminal to write codes in various languages. Linux is open source so it is regularly updated, secure and best environment for developers as well.
With this short information on Linux, lets view some basic commands and their uses.
How to Hack iPhone Lock screen Password?
Basic Linux Commands
1. pwd : This command shows the directory you are working in. You can remember it as “print working directory”.
2. clear : This is a basic Linux command that cleans everything that is in your terminal and makes it look clean and fresh.
3. ls : It lists the files that are in a directory.
4. ls –a : It shows all files in a directory.
5. ls / : It shows the contents of the root directory.
6. ls name_of_directory : Shows the contents of certain directory. eg: ls Downloads
7. cd name of directory : Changes the directory. You can remember cd as change directory.
8. cd / : Changes directory to root.
9. cd ~ : Changes to home directory.
10. touch <file name. extension> : Makes a file in current directory.
11 .cat <file name. extension> : prints the contents of a file on the screen
12. mkdir <Directory Name> : Makes a directory
13. mv <file name> <directory name> : Moves a file to a directory
14. rm <file name> : removes a file
15. rmdir <directory name> : removes an empty directory
16.man <command> : Displays how a command can be used. man can prove to be an important tool to understand how commands work.
17. rm –r : Removes a directory and its contents.
18. #rm –rf / : Deletes everything under root. This command causes your OS to collapse so, I have used # in front of it to mark it as a comment.
So these are some of basic Linux commands to start off with Linux. If you have queries on the topic or if you want to learn more about commands feel free to comment. And check our Facebook page TheTechRim.
Also check : Install VirtualBox in Linux