Linux commandsThe sub-sets are divided into file system operation commands, system management commands, Linux User-related commands, Linux system management commands, Vi Basic commands, and Linux file replication, delete and move commands, create and delete commands for Linux directories.
File System Operation Command:
1. cat: displays the content of a file that is often used together with more), or combines multiple files into one file.
2. chgrp: used to change the user group to which a file or directory belongs. The command parameters are separated by spaces to change the file list of the Group. The file name supports wildcards. If the user is not the owner of the file, you cannot change the group to which the file belongs.
3. chmod: used to change the access permissions of files or directories. This command has two usage methods: Graphical Method and numerical setting method.
4. chown: used to set a specified user or group as a specific owner. The user can be set as the user name or user ID, and the group can be the group name or group ID. A specific file is a list of files separated by spaces that can change permissions. The file name supports wildcards.
5. clear: used to clear the terminal screen.
6. cmp: used to compare the sizes of two files.
7. cp: copy) can be used to copy files or directories to other directories, just like the copy command in Dos, which is very powerful. When using the cp command, you only need to specify the source file name or target directory.
8. cut: used to remove part of the file.
9. diff: used to identify the differences between the two files.
10. du: used to display the remaining disk space.
11. file: used to display the file type.
12. find: used to search for files in the directory and perform the specified operation.
13. head: view only the first few lines of the file without having to browse the entire file.
14. ln: You can create links between files. In fact, you can specify an alias for accessing a file.
15. less: similar to more, you can view the file content on more than one screen. The difference is that less can display the file by pressing the Space key down, and you can also use the direction key to scroll the display file, to end browsing, just press Q after the less prompt.
16. locate: it can be used to find files, and it is faster than the search speed of the find command.
17. lslist): used to display the list of files and subdirectories in the current directory.
18. mkdir (make directory): Create a subdirectory.
19. more: used to display files with more than one screen. To prevent the file content from instantly disappearing, you can use the more command to pause when the file is fully displayed, press any key to display the content of the next screen.
20. rmkdir (remove directory): Used to delete "null" subdirectories or useless directory files.
21. mv (move): You can move files and directories to other locations or change the names of files and directories.
22. pico: You can specify the text editing method.
23. pwd (print working directory): displays the current directory of the user.
24. rm: Used to delete obsolete or useless files in the system. You can delete the files or directories in the directory. The original files remain unchanged for the linked files.
25. sort: automatically classifies text files.
26. stat: used to display the status of a file or file system.
27. Strings: display the string to be printed in the file.
28. tail: End of the output file.
29. touch: Change the file timestamp.
30. umask: Used to start bash shell.
31. uniq: Remove duplicate text lines from a classified file.
32. vi: Start the vi text editor.
33. wc: displays the number of lines in the text of the combination of bytes and words in the file.
34. whereis: Find the location of files such as the original program, binary program, or user manual in a specific directory.
35. man: If you want to know more about a command, you can use this command.
36. dd: copy an object.
37. df: view the disk space usage of a file system.
38. edquoat: sets disk space limits for users and user groups, that is, quotas in Windows.
39. fdformat: format the floppy disk.
40. fdisk: run the disk partition in Linux.
41. mkfs: Create a Linux File System.
42. mkswap: Create a Linux swap partition.
43. mount: mount a file system.
44. quota: Restrict and display the disk space available to users.
45. swapon, swapoff: Enable or cancel the switch page between the device and the file.
46. quotaon and quotaoff: Enable or cancel the quota limit.
47. umount: Cancel file system equipment.