Use common Linux commands

type query whether shell command interpreter
help help command
man provides all users with online help
ls list shows the files and directories in the directory
-l long format to display a list of files and directories
-a Displays information about all subdirectories and files
-A and -a substantially similar, but there are two special hidden directory and '.' '..' not displayed
-d display list attribute itself, with long use -l
-h displayed in a more humane way directory or file the size, length and simultaneously -l
-R all the content directory and its subdirectories recursively

du statistics for the development of the directory and file size of disk space occupied by
-a statistical disk space occupied by all files, not just the statistics directory
-s only counts the size of the space occupied by

touch to create an empty file for testing

Create a directory mkdir
-p create nested multi-layer disposable directory
-v show details
-m out of the current umask

Copy a file or directory cp
-f file or directory covering of the same name, force replication
-i remind the user to confirm
-r recursive copy

rm delete the specified file or directory
-f without prompting force the removal
-i prompts the user to confirm
-r recursively delete the entire directory tree

mv will develop file or directory transfer position (cut), if the target position and the same home position, corresponding to the renaming operation performed

which find a location where the Linux command program

Narrow find a file or directory lookup
-name find eg by name: find / etc -name "Resol * .conf"
-size find eg by size: find / + 1M etc -size (K, M, G)
-user Search by properties EG: Find / etc -user the root
-type Search by type eg: find / boot -type d ( d directory; F ordinary paper; b block equipment; c character device file)
-a (and) logical 'and' operation
-o (or) logical 'or' operator

Guess you like

Origin www.cnblogs.com/canflyfish/p/11239059.html