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 does linux view the catalog

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

Share

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

This article mainly explains "how to view linux directory", the explanation content in the article is simple and clear, easy to learn and understand, please follow the idea of small series slowly in-depth, together to study and learn "how to view linux directory" bar!

Linux view directory can use the "ls" command, ls command is the abbreviation of "list", applicable to all user permissions, the main function is to display directory files in list form, syntax is "ls option directory name".

Operating environment: Linux 7.3 system, Dell G3 computer.

What is the Linux directory command?

The command to view files and directories in Linux is LS.

LS English original meaning: list, command path: /bin/ls, applicable to all user permissions, the main function is to display directory files in list form.

Syntax: ls option [-ald][file or directory]

Among them,

-a Displays all files, including hidden files;

-l Detailed information display;

-d Displays only the directory name, not the list of contents under the directory;

-h homification;

-i View i node of any file (similar to unique information of ID card);

-t Sort by the time files and directories were changed; the most recently modified file can be judged by the first file displayed;

Note: . The first file is a hidden file unless it is a directory

Additional information:

Create directory command: mkdir, English original meaning: make directories, command path: /bin/mkdir, applies to all user permissions, function is to create new directories.

Its syntax: mkdir [-p][directory name]

-p recursively created

Example: a) Create a single directory: mkdir/tmp/vae.txt

b) Create multiple directories: mkdir/tmp/a.txt/tmp/b.txt

Precautions when using:

The directory created already exists, so Linux will prompt us that Linux cannot create it.

Running the mkdir command without any arguments creates a directory under the current directory.

3, without-p, if the new file parent directory does not exist, it will not be successful. With or without the addition of-p before the directory will not have to be created in turn.

The first condition for creating a directory is that you must have access to the destination path where you want to create the directory.

Thank you for reading, the above is "linux how to view the directory" content, after the study of this article, I believe that everyone on linux how to view the directory this problem has a deeper understanding, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!

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