The LS command is probably one of the most commonly used commands under Linux, and LS is the abbreviation for list. Because there is too much information on a Linux directory or file record, the default LS displays only non-hidden directories and filenames. LS Displays the file name in this directory directly when no parameters are added.
The LS command format is:
ls [-aadffhilnrrst] directory name
Options and Parameters:
-A: All files, including hidden files, are displayed together
-A: All files, including hidden files, but not displayed. And.. These two directories
-D: Lists only the directory itself, not the archive data in the directory
-F: Direct output, no sorting (LS presets are sorted by file name)
-F: According to the file information, give additional data structure, for example: * Represents the executable file/representative directory = Socket File | represents FIFO file
-H: File capacity displayed in a human-understandable way (e.g. GB, KB, etc.)
-I: List inode numbers
-L: Long data output with more complete file information
-N: Lists UID and GID instead of user and group names
-r: Reverse sequence output of the result
-R: Listed together with subdirectory contents
-S: Sort by file size, not by file name
-T: Sort by time, not by file name
--color=never: does not give color display according to the file characteristic
--color=always: Always give color display according to file characteristics
--color=auto: Let the system decide whether to give the color according to the setting
--full-time: Displayed in full time mode (including month and day)
--time={atime,ctime}: Output access time or Change permission attribute time (CTime), not content change time (mtime)
CENTOS7 under command note-ls