Top 10 Linux Commands

In this tutorial, we will discuss about top 10 Linux Terminal Commands. Every Developer should know these Linux terminal commands.


Top 10 Linux Commands

1. pwd

pwd stands for Print Work directory and The pwd command is used to display the location of the current working directory. This is one of the handiest Linux terminal commands that aims to make new user’s life peaceful by ensuring they don’t get lost in that seemingly cryptic terminal window.


2. ls

The ls command is probably one of the most widely used commands in the Unix world. The ls command is used to view the contents of a directory. By default, this command will display the contents of your current working directory.

There are variations you can use with the ls command:

ls -R will list all the files in the sub-directories as well.

ls -a will show the hidden files.

ls -al will list the files and directories with detailed information like the permissions,               size, owner, etc.


3. clear

clear is a standard Unix computer operating system command that is used to clear the terminal screen. This command first looks for a terminal type in the environment and after that, it figures out the terminfo database for how to clear the screen.


4. cd

cd stand for Change Directory, the cd command is behind your movement from one directory to another. The cd command is used to change the current directory. It’s one of the few Linux commands that you’re bound to use throughout your stint with the Linux system. This command makes life in front of the terminal less scary for beginners while providing a standard method to browse the entire filesystem of your device.


5. mkdir

Want to create a new folder through the terminal? The mkdir command is created for just this specific purpose.The mkdir command is used to create a new directory under any directory. It lets you create folders anywhere you like in your Linux system – given you have got the necessary permission, of course!


6. touch (file) - creates a new file (filename)

The touch command is an essential Linux command for creating a valid empty file. We can create multiple empty files by executing it once. You can create files on the go in your terminal and fill them up later or in real-time – based on your requirements. It’s also the go-to command for changing the timestamps.


7. cd..

cd .. (with two dots) is used to go back from current directory. The aforementioned command will take you one level up the directory tree. You can also pass additional .. characters to move further up the directory tree.


8. rm (file) - remove (filename)

The rm command is used to remove a file. With a certain parameter, it can be used to wipe the entire contents of a specified directory. It can also be used to delete several files that all match a certain filename pattern.


9. rm -r and rmdir

The rmdir command allows you to delete specific folders from your system without any hassles. The rmdir command is used to delete a directory. Although many utilize the rm command for this purpose, screwing up parameters or even a single character with rm can do things you wouldn’t even dream. So, stick with rmdir for now. 


10. exit

Linux exit command is used to exit from the current shell. It takes a parameter as a number and exits the shell with a return of status number.


Watch Video:



Conclusion:

Thank you for reading this blog. I wish you the best in your journey in learning🔥🔥.

Previous Post
Next Post

Hello, I am Ashish Yadav. Youtuber | Blogger | Programmer | Digital Marketer. Working on 3 Youtube Channel: 1. Expo Ashish 2. Expo Facts 3. Best Code Creator

Related Posts

Do Subscribe My Youtube Channel