Linux Basic Commands you need to know!

Linux Basic Commands you need to know!

ls

Displays the contents of a directory. (List)

~ ls [directory]... [FILE]...

cd

The cd command, also known as chdir, is a command-line shell command used to change the current working directory in various operating systems. It can be used in shell scripts and batch files. (Change Directory)

~ cd [directory]...

mkdir

Used to make a new directory. (Make Directory)

~ mkdir [directory]...

pwd

Shows the exact path to the current directory you are in. (Path to Working Directory)

~ pwd

touch

Used to make a new file of any kind.

~ touch [file]

rm/rmdir

Used to remove files and directories. rm for files: (Remove)

~ rm [Optional]...[file]...

rmdir for directories: (Remove Directory)

~ rmdir [directory]

mv

Used to move files and directories. (Move)

~ mv [file]...[directory]

cp

Used to copy files and directories. cp for files: (Copy)

~ cp [Optional]...[file]... [directory]...

cp -R for directories:

~ cp -R [directory]... [directory]...

. . . Resource . . .