#ls command is used to display the contents of the specified working directory (list the files and subdirectories contained in the current working directory).
Syntax:
ls [-alrtAFR] [name...]
The parameters are as follows:
##Specific usage: List the root directory (\ ): List all files in the current working directory whose names begin with s, the newer ones are arranged later:ls -ltr s*
ls -lR /bin
The above is the detailed content of How to use the ls command in linux. For more information, please follow other related articles on the PHP Chinese website!