1.CD Directory Name: Use this directory as the current directory. Some of the more special symbols are:~ Current user's home directory, ~user: Specify user's home directory,-: Last CD operation specified directory,/: root directory,
2. displays the current full path name.
3.mkdir [-MP]: Create directory, Parameters:-M sets the permissions of the profile as a number, and the-P recursively creates a multilayer directory.
4.rmdir [-p] directory name: Delete empty directory, parameter- p: recursively delete empty directory.
5.ls [-aadffhilnrrst][--color={never,auto,always}][--full-time]: View the files in the current directory directory, the significance of the parameters are:
1)-a: All Files
2)-A: except . and .. all the outside
3)-D: List only directories
4)-F: List directly, without sorting, default to sort by file name
5)-F: To give additional data structure according to files, directories and other information,eg:*, executable file;/, directory;=,socket file; | ,FIFO pipeline file.
6)-H: Display the file capacity in a human readable manner
7)-I: list inode numbers
8)-l: Lists data such as attributes and permissions for the file, where ll is a shorthand instruction for the parameter
9)-N: Lists UID and GID instead of user and group name
)-R: Reverse output of the sort results
One)-R: listed along with subdirectories
-S: sorted by file size
-T: Sort by Time
--color=never: Donot give color display according to file characteristics
--color=always: Display color
--color=auto: Let the system customize the display color.
--full-time: Output in full time mode
--time={atime,ctime}: Output Last access time, last permission change time, not Mtime(the last time the content was modified).
6.CP [-adfilprsu] source file target file: Copy file;cp [options] source file 1 source files 2 ... Directory: Copies multiple files to the specified directory, with the meaning of the parameters:
1) -a: equivalent to PDR
2) -d: Copy the link file directly without looking for its source file
3) -F:Force, if the target file exists, replace it directly
4) -I: If the target file exists, the replacement will ask
5) -L:link, create a hard-connect connection file instead of copying the file
6) - p: Copy the past together with the attributes of the archive, instead of using the default properties (Backup is common)
7) - R: replicate recursively
8) -S: Copy as symbolic link file, i.e. fast key mode
9) -u: If the target file is newer than the original file
7.rm [fir]: Remove files or directories, parameters:-F,Force ignores nonexistent files, does not issue a warning;-I: Ask when delete,-r: recursively Delete, Deleting a directory is often used.
8.MV [-fiu] source file destination file: Move the source file to the specified file;mv [options] source file 1 source files 2 ... Destination directory: Moves the source file to the specified directory. Parameters:-F,Force, target file exists, direct overwrite;-i, when the target files are present, ask;-U, move only if the source file is newer than the target file.
9.basename: Get the file name from the path
Ten . dirname: Gets the directory name from the specified path
This article is from "Tiger Brother's Blog" blog, please be sure to keep this source http://7613577.blog.51cto.com/7603577/1589901
Linux Archives and directory management