Home >Operation and Maintenance >Linux Operation and Maintenance >How to use the ls command in linux
#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*will All directories and file details below the /bin directory are listed:
ls -lR /binRecommended tutorial:
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!