DEV Community

Cover image for 10 Linux Commands For Beginners
Muhammad Maaz Shakeel
Muhammad Maaz Shakeel

Posted on

10 Linux Commands For Beginners

Note: If there is a command ls then you need to only type ls but not to type Ls. Linux and Unix Commands are case-sensitive..

1. pwd

pwd is a command that shows you the path where you are currently is.

2. ls

ls is a command that shows you the list of directories or files in the current directory.

3. cd

cd command lets you change the directory.

Usage cd [Directory name]

4. cat

cat command lets you see the content of the file.

Usage cat [File name]

5. mkdir

mkdir command lets make a new directory in the current directory.
Usage mkdir [Directory name (You wanna give it to]

6. rmdir

rmdir command lets you delete a directory.

Usage rmdir [Directory name]

7. touch

touch command lets you create a new file.

Usage touch [File name (You wanna give it to]

8. uname

The uname command, short for Unix Name, will print detailed information about your Linux system like the machine name, operating system, kernel, and so on.

9. history

history command shows you the history of your commands that you typed so far.

10. man

man command lets you see the manual of any command.

Usage man [command]

Discussion (0)