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

How to use the common command ls in Linux

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the Linux commonly used command ls how to use, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Linux common command 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...] 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.

The instance lists all directories under the root directory ():

# ls / bin dev lib media net root srv upload www boot etc lib64 misc opt sbin sys usr home lost+found mnt proc selinux tmp var lists all files whose names begin with s in the current working directory, and the newer files are passed:

Ls-ltr s* lists all the following directories and file details in the / bin directory:

Ls-lR / bin lists all files and directories under the current working directory; add "/" to the name of the directory, and "*" after the name of the executable file:

Ls-AF thank you for reading this article carefully. I hope the article "how to use ls in Linux" shared by the editor will be helpful to you. At the same time, I also hope you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!

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

Development

Wechat

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

12
Report