1. Function overview
List files under the specified path
2. Common parameters
-A: Lists the properties of all files, including. and.
-D: List the properties of the directory file itself
-F: List files but not sort (the output of the LS command is sorted by file name by default)
-I: List the inode for a file
-L: List the properties of a file in long format
-N: Replace the corresponding owner and group name with Uid&gid
-R: Reverse order
-R: Recursive
-S: After sorting by file size, list
-T: After sorting by file Mtime, list
--color=auto/always/never: The system automatically chooses whether to display color/display color/not display color
--full-time: In full time mode (year, month, day, hour, minute, second)
--time={ctime,atime}: Output CTime (file permission or property modification time), Atime (access time), not mtime
3. Parameter combination
-ahil: The properties of all files under the target directory file, including hidden files, ".", "..", are listed in a long-form and user-friendly manner. ), the inode number, file type, permission bit, etc.
This article from "Tornado" blog, declined reprint!
Linux file Management Commands--LS