Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What does the ls command mean in Linux systems?
What does the ls command mean in Linux systems?

The ls command is one of the most commonly used commands under Linux. ls is the same as the dir command under dos and is used to list files in a directory. \x0d\1. ls -a lists all files under the file, including hidden files starting with "." (hidden files under Linux start with ., if .. exists, it means the parent directory exists). \x0d\2. ls -l lists the detailed information of the file, such as the creator, creation time, read and write permission list of the file, etc. \x0d\3. ls -F adds a character at the end of each file to indicate the type of the file. "@" represents a symbolic link, "|" represents FIFOS, "/" represents a directory, and "=" represents a socket. \x0d\4. ls -s prints the file size after each file. size(size)\x0d\5. ls -t Sort files by time Time(time)\x0d\6. ls -A List files except "." and "..". \x0d\7. ls -R lists the files in all subdirectories in the directory, which is equivalent to the "recursive" implementation in our programming\x0d\8. ls -L lists the link names of the files.

Link\x0d\9. ls -S sorts files by size