Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the concept of ls in linux

Shulou Source: shulou.com Published: 2022-05-31 11:03:54 10月04日 Update

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.

Tags: File directory work concept content name order knowledge command subitem subdirectory beginning meaning article grammar information English next value order Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Apple vpn Redmi Linux