[Front-end basics] Linux basic commands

1. cd to change the working directory

insert image description here

2. ls lists the contents of the files in the current directory

insert image description here
ls -l可以查看修改时间
insert image description here

3. pwd prints the current working directory

insert image description here

4, cp copy files or folders

复制文件:
insert image description here
复制文件夹:
insert image description here

5, less view files

insert image description here
insert image description here
insert image description hereinsert image description here

按Q退出

6, head tail View the beginning and end of the file

head/tail -n x(几行) xxx(文件)
insert image description here

7. find to find and filter files

insert image description here

8. date to view the current time

insert image description here

9. cat merge View and merge multiple files

insert image description here

10. cal displays the current calendar

insert image description here

11, which View the directory of the command

insert image description here

12, whereis location program, the storage location of the help manual

insert image description here

13. echo new file

insert image description here

14. rm deletes a file or directory

insert image description here

15. Touch to update the access and modification time of the file

insert image description here
如果没有该文件,会自动新建
insert image description here

16. top displays the system and program load

insert image description here
insert image description here

17. mv cut file or folder

insert image description here

18. mkdir creates a directory

insert image description here

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.

Guess you like

Origin blog.csdn.net/weixin_46318413/article/details/123364631