The LS Universal list (list) is equivalent to the DOS command dir, which lists all the files under the directory.
command using format:ls [OPTION] ... [FILE] ...
Let's take a look at ls what options are available for us to choose from, and what each option means:
- L: Long format (display content as follows):
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/79/F0/wKiom1ae5gGgGbXrAAAg3dZS1VU475.png "title=" Ls-l " alt= "Wkiom1ae5ggggbxraaag3dzs1vu475.png"/>
The contents of the display contain 8 items:
1. File type:
-: Normal file
D: Catalog file
B: Block device files (blocks)
C: Character device file (character)
L: Symbolic Link files (symbolic link file)
P: Command pipe file (pipe)
S: Socket file (socket)
2, File permissions: 9-bit, every 3 bits of a group, each component read, write, execute permissions (RWX), did not give any permission to-represent.
3 . The number of hard links to the file.
4, the owner of the document.
5. A group of documents.
6, the size of the file.
7. Timestamp (timestamp): The time of the most recent fix .
Access: access
Modified: Modify, file content changed
Change: Change,metadata, original data
8. Name of the file.
-A : Displays all files, including hidden files that begin with., and compares with the LS command to list hidden files that begin with.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/79/F0/wKioL1ae9BmR-o8vAAAs2q8zW84996.png "title=" Ls-a " alt= "Wkiol1ae9bmr-o8vaaas2q8zw84996.png"/>
- D : If the file is a directory, the properties of the directory itself are listed, not the files in the directory.
- I.: The index node (inode) Displays the miniature nodes number.
     -R: recursive (recursive) display, lists the files for all subdirectories in the directory.
-h: unit conversion (file size).
The LS command can also be used in conjunction with two parameters, for example: Ls-la lists all files including the long format of hidden files.
                650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/79/F2/wKiom1ae-ieCsabYAABNs07oGEg179.png "title=" Ls-la "alt=" "Wkiom1ae-iecsabyaabns07ogeg179.png"/>
LS and other parameters are not listed, you can use the man ls to query ls description, parameters, usage.
This article from the "11117200" blog, reproduced please contact the author!
LS for common commands of Linux