2019.7.23 system commands succinctly

1, classification commands; cd: Change directory cd directory path: from the directory is divided into two kinds, absolute path -> have "/" as the path to the starting directory is called the absolute path: / usr / shac / doc / relative path -> have "/" as the path to the starting directory is called the relative path: java /

 . "" The name of the parent directory. "" Current directory name

pwd: Displays the current working directory path

Internal help command help, see the help internal bash command: [root @ www ~] #help cd

man used to provide online help, user permissions to use.

ls role; list shows the files and directories in the directory, with different options to achieve different effects. 2, format; ls [options] directory or file name

3, commonly used options; -l; -a display a list of files and directories in long format (long); it displays information -A (all) subdirectories and files; and -a substantially similar, but there are two special hidden directory "." and ".." is not displayed -d: display attribute directory itself, is often used in conjunction with -l     

  -H; in a more humane way displays the directory or file size, often with the use -R -l simultaneously; recursively show all the contents of directories and subdirectories

 du; for statistical development of the directory or file disk space occupied; -a all files when disk space usage statistics, not just statistical directory -s only statistics the total size of the occupied space.

 touch; create an empty file for testing. If the current file already exists, it is updated timestamp of the file  

mkdir; create a new directory -p create nested multi-layer disposable directory -v -m Show details out of the current umask value

CP; -f Overwrite same directory or copy a file or directory, the user confirms the force replication -i -p alert source file permissions maintained, attributes, timestamp, and the like owner invariant recursive copy -r

rm; develop delete files or directories -f without prompting the user is prompted to confirm forcibly remove -i -r recursively delete files or directories

 mv: the specified file or directory transfer position, if the position of the target with the same source, is equivalent to the operation performed rename 

which; Linux command to find the location where the program     

Find; fine -name lookup to find a file or directory listed by name: find / etc -name "resol * .conf" -size lookup column according to size: find / etc -size + M {k, M, G} -user press properties Find the column; find / etc -user root -type lookup column by type: find / boot -type d {d, catalog F; regular file b: block device C; character device file

 

Guess you like

Origin www.cnblogs.com/otherwise/p/11234601.html