Home  >  Article  >  Operation and Maintenance  >  How to use the ls command in linux

How to use the ls command in linux

王林
王林Original
2020-05-13 14:19:205250browse

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:

How to use the ls command in linux

##Specific usage:

List the root directory (\ ):

How to use the ls command in linux

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 /bin

Recommended tutorial:

linux 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn