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

Use the stat command of linux to display file status information

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

Share

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

Do not know how to use linux's stat command to display file status information? In fact, it is not difficult to solve this problem. Let the editor take you to learn how to solve it. I hope you will gain a lot after reading this article.

The stat command is used to display the details of a file or file system

Syntax format: stat [parameters]

Common parameters:

-L supports symbolic link-f displays file system information-t outputs in a concise manner-help displays command help information-- version displays command version information

Reference example

View the three time states of the file anaconda-ks.cfg: Access,Modify,Change:

[root@linuxcool ~] # stat anaconda-ks.cfg

View file system information:

[root@linuxcool] # stat-f anaconda-ks.cfg

Output information in a concise way:

[root@linuxcool] # stat-t anaconda-ks.cfg anaconda-ks.cfg 1229 8 8180 00 fd00 68898764 100 1540481629 1540510390 1540510390 04096 system_u:object_r:admin_home_t:s0

Command version information:

[root@linuxcool ~] # stat-- version thank you for reading this article carefully. I hope the editor will share the use of linux's stat command to display file status information. At the same time, I also hope that you will support it, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you!

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