Linux Command Learning (1) -- ls command, linux Command learning ls
The first thing you need to know is the command prompt.
[Root @ localhost ~] #
Current login user (root)
Host Name (localhost)
Current Directory (Home Directory)
Super User prompt (#)
Normal user prompt ($)
1.1 Command Format
Command [Option] [parameter]
Note: Some commands are not in this format.
Multiple options can be written together
Abbreviated option-a is equivalent to -- all
1.2 several simple common commands
Command 1: ls [Option] [file or directory]
Command: Query contents in a directory
Option:
-A: displays all files, including hidden files (abbreviated as -- all)
-L display details
-D. view directory properties.
-H humanized display file size
-I: Display inode (index node)
Ls-a displays all files. Files starting with. are hidden files.
Ls-l permission reference count the last modification time of the file size of the group to which the owner belongs
Permission: 10 digits
First: file type (-file; d directory; l soft link) in addition to (Block device files, character device files, socket files and pipeline files)
Rw-r -- r-x (r-read, w-write, x-execution)
U owner g owner group o others
Ls-d