Common Linux commands
Currently, we are exposed to Windows operating systems, so we often use git bash to submit code to github.
Git bash is a command line tool used to simulate Linux in Windows.
Here we will summarize the commonly used Linux commands.
1. pwd
PwdUsed to view the path of the current directory
2. mkdir
MkdirCreate a folder
3. mkdir-p
Mkdir-pCreate a parent folder
4. cd
CdChange directory
5. touch
TouchCreate an empty file
6. ls
LsDisplays the files in the current folder.
7. ls-
Ls-Display All files in the current folder./And ../
8. ls-l
Ls-lUse a long list directory to display the files in the current folder
9. rm
RmRemove a file
10. rm-r
Rm-rRemove folder
11. cp
CpCopy a file or folder
12. mv
MvRename a folder
Mkdir testmv test test2
13. vi
ViThe command is used to enter the default vi editor of Linux for editing.
For vi usage, refer to here
This article permanently updates the link address: