DEV Community

hex away
hex away

Posted on

Common Linux Commands

So in this blog i'm going to show top 5 most used Linux commands that you must to know. So let's get started.

1. ls is for list directories. This command is too easy but most commonly you see it.

Image description

You can see file by ls just like that.

2. cd is for change directory. you can move one directory to another.

Image description

You can play around it just like that.

3. touch is for making a new file in linux. just you need to type touch test.txt then you will see a test.txt file

Image description

here you can see that test.txt file has been created.

4. cat is for looking into the text file like we have created a file called test.txt so we can see the content of that file by cat command

Image description

Now we can see the content of file test.txt. Just by typing cat test.txt

5. clear is just for clearing all the stuffs that you have done with your terminal.

Image description

So Now i want to clear my terminal just type clear

Image description

Top comments (0)