How to use the ls command in linux

王林
Release: 2020-05-13 14:19:20
Original
5213 people have browsed it

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...]
Copy after login

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*
Copy after login

will All directories and file details below the /bin directory are listed:

ls -lR /bin
Copy after login
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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!