First, the command format
command [options] [parameters]
1. And do not follow the command use this format
2. When there are multiple options, they can be written together
3. Simplified and complete options (-a equivalent to--all)
4. Brackets are optional, meaning that there can be no
Second, the contents of the query directory:
ls [options] [file or directory]
Options |
Describe |
| -A |
Show all files, including hidden files (hidden files are all starting with.) |
| -L |
Show more information |
| -D |
View the directory properties (for example: ls–l/etc/represents the details of all the files under the directory, and if you use ls–ld/etc/, the details of this directory are viewed) |
| -H |
humanized display size (normal size shown in bytes, i.e. b) |
| -I. |
Display Inode (displays the ID number of each file) |
1. Interpretation of basic permissions
Using Ls-l will appear something like this, the preceding is the file permission information
Example:-rw-r--r--
-representative file type (-file D directory l soft connect file)
Rw-u owner
r--G belongs to group
r--O Other People
R Read W write X Execute
The above example means that this is a file, the owner of the file has a readable writable permission, the user group has a readable permission to the file, the other person has a readable permission to the file, the number 1 represents the reference count, representing the file was called several times, the root of the 1 after the owner, The root behind the owner is the owning group, the number behind the owning group represents the size of the file, in bytes (if you want to see a more obvious point you can use the command LS-LH this is to display the file size in kilobytes), the following date represents the last time the file was modified, including the month, date, time, The last is the file name.
Iii. basic forms of command for Linux learning