MV
Role
Use the mv command to be renamed for a file or directory, or transfer the file from a directory into another directory, which is all users. This command is like a combination of REN and MOVE in the DOS command.
2. Format
MV [options] source file or directory destination file or directory
3. [Options] Main parameters
-I: interactively operate. If the MV operation will result in overwrite the existing target file, the system is inquiry to override, requiring the user to answer "Y" or "n", which avoids erroneous overwriting files.
-F: interactive operation is prohibited. The MV operation does not give any indication when an existing target file is covered, and the i parameter will no longer work after specifying this parameter.
4. Application example
(1) Move all files in the / usr / CBU to the current directory (use "."):
$ mv / usr / cbu / *.
(2) Rename the file CJH.txt: WJZ.txt:
$ MV CJH.TXT WJZ.TXT
LS
Role
The ls command is used to display directory content, similar to DIR commands under DOS, which is all users.
2. Format
LS [options] [filename]
3.Options Main parameters
-A, --all: Does not hide any items starting with "." Characters.
-A, - Almost-all: Any item other than "." And ".." is listed.
--Author: Prints each document authority.
-B, -, --escape: The unprintable character is represented by an octa binary overflow sequence.
- Block-size = Size: Blocks in bytes specified
-B, --ignore-backups: Does not list any items ending to characters.
-F: Do not sort, -au parameters take effect, the -lst parameter is invalid.
-F, --classify: Plus an indicator symbol of file type (* / = @ | one).
-G: like -l, but do not list Owner.
-G, --NO-group: inhibit Display of group information.
-I, --inode: Lists the Inode number of each file.
-I, --ignore = style: No items that match the Shell Wan Character