Basic Linux Commands
- 1. cd to change the working directory
- 2. ls lists the contents of the files in the current directory
- 3. pwd prints the current working directory
- 4, cp copy files or folders
- 5, less view files
- 6, head tail View the beginning and end of the file
- 7. find to find and filter files
- 8. date to view the current time
- 9. cat merge View and merge multiple files
- 10. cal displays the current calendar
- 11, which View the directory of the command
- 12, whereis location program, the storage location of the help manual
- 13. echo new file
- 14. rm deletes a file or directory
- 15. Touch to update the access and modification time of the file
- 16. top displays the system and program load
- 17. mv cut file or folder
- 18. mkdir creates a directory
1. cd to change the working directory
2. ls lists the contents of the files in the current directory
ls -l可以查看修改时间
3. pwd prints the current working directory
4, cp copy files or folders
复制文件:
复制文件夹:
5, less view files
按Q退出
6, head tail View the beginning and end of the file
head/tail -n x(几行) xxx(文件)
7. find to find and filter files
8. date to view the current time
9. cat merge View and merge multiple files
10. cal displays the current calendar
11, which View the directory of the command
12, whereis location program, the storage location of the help manual
13. echo new file
14. rm deletes a file or directory
15. Touch to update the access and modification time of the file
如果没有该文件,会自动新建
16. top displays the system and program load
17. mv cut file or folder
18. mkdir creates a directory
The above are the basic commands of Linux. Welcome to the " Front-end Basics " column.
I will share the common problems in my usual projects and the knowledge of the written test and interview with you on CSDN, and make progress together. Come on.