Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the concept of ls in linux

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of what the concept of ls in linux is, the content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading this article on the concept of ls in linux. Let's take a look at it.

Ls in linux is the abbreviation of "list files", which means to list files. The ls command is used to display the contents of the specified working directory, listing the files and subdirectories contained in the current working directory, with the syntax "ls [- alrtAFR] [name...]".

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

What does ls mean in linux

The Linux ls (English spelling: list files) command is used to display the contents of the specified working directory (listing the files and subdirectories contained in the current working directory).

Grammar

Ls [- alrtAFR] [name...]

Parameters:

-a displays all files and directories (. The hidden files at the beginning are also listed)

-l in addition to the document name, the document type, permissions, owner, file size and other information are also listed in detail.

-r display documents in reverse order (originally in alphabetical order)

-t list the documents in the order of establishment time

-An is the same as-a, but not listed "." (current catalogue) and ".." (parent directory)

-F add a symbol to the listed file name; for example, executable files add "*" and directories add "/"

-R if there are files in the directory, the following documents are also listed in sequence.

Example

List all directories under the root directory (\):

# ls / bin dev lib media net root srv upload wwwboot etc lib64 misc opt sbin sys usrhome lost+found mnt proc selinux tmp var

List all files whose names begin with s in the current working directory, and the newer the files, the more they are excluded:

Ls-ltr s* this is the end of the article on "what is the concept of ls in linux?" Thank you for reading! I believe you all have a certain understanding of "what is the concept of ls in linux". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report