Skip to main content

Command Palette

Search for a command to run...

Basic linux commands

Published
•1 min read•View as Markdown
Basic linux commands

1- Pwd = print working directory,it allows you to check your current location.

2- ls = list all the folders present inside the current location.

3- cd .. = to navigate outside of the current folder.

4- cd foldername = navigate you to folder (foldername) .

5- mkdir foldername = it will create a folder inside the current location.

6- touch fl.txt = it will create a fl.txt file inside the current location.

7- cp f.txt fol/f.txt = it will copy the file named f.txt to folder fol.

8- rm f.txt = it will delete f.txt file.

9- rm -r fol = it will delete fol named folder.

10- mv n.txt fol/n.txt = it will move the n.txt file inside of folder name fol.