(i) Basic orders
Command format: Command parameters
1.LS display filename, equivalent to dos dir command
Command format: LS [option] File
Option
-l Display a detailed list
Domain 1: File types and file permissions
Domain 2: Number of file connections
Domain 3: File owner name
Domain 4: File user Group name
Domain 5: File length
Domain 6-8: Last Modified Date
Domain 9: filename
-a displays all files, including hidden files (in. The beginning of the file name)
-R display files and all subdirectories
-F Display file (followed by *) and directory (followed by/)
-D is shared with the L option to display the directory name instead of its contents
2.CD directory conversion, equivalent to DOS CD command
Note the directory separator is "/", contrary to Dos
Command format: CD dirname
3.PWD Show Current Path
4.cat display file content, equivalent to DOS type command
Command format: Cat filename
5.more View the contents of the file as paging.
Command format: more filename
6.RM Delete File
Command format: RM [-r] filename (filename can be file name, or file name abbreviated symbol.)
Example:
RM file1 Delete document with file name File1.
RM file? There are five characters in the delete file name, and the first four characters are all documents in file.
RM f* All documents with F as the first word in the delete file name.
Rm-r Dir1 Deletes the directory Dir1 and all its documents and subdirectories.
7.mkdir Create Directory
Command format: mkdir [-P] Directory-name
Exmaple:
mkdir Dir1 establishes a new catalogue dir1.
Mkdir-p Dir/subdir directly create multilevel catalogs
8.rmdir Delete Directory
The directory must first be empty
Command format: RmDir directory
9.CP Document copying
Command format: CP [-r] Source destination