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 are the commands for Linux system to view file information

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article will give you a detailed introduction of the "Linux system to view file information commands are", the contents of the steps are clear and detailed, the details are handled properly, and the editor will update different knowledge points every day, hope that this "Linux system view file information command which" can give you unexpected harvest, please follow the editor's ideas slowly in depth, the specific contents are as follows, to harvest new knowledge.

1. Command format:

Stat [options] file name / directory name

2. Options:

-f: read the file system information, not the file information.

3. Case

Case 1: "look at the details of the file

Stat demo.txt simple explanation (black font):

# File name

File: `demo.txt'# file size # number of block occupied # block size # file type

Size: 665 Blocks: 8 IO Block: 4096 regular file# # Node # number of links

Device: fc01h/64513dInode: 1051650 Links: permission # owner # Group to which it belongs

Access: (0664) Uid: (508 / odysee) Gid: (508 / odysee) # access time

Access: 42.127017064 + 080mm data modification time: 2019-04-08 16-bit 21-way

Modify: 40.888006303 + 0808 status modification time: 2019-04-08 16-type 21-type

Change: 2019-04-08 16 purl 21purl 40.888006303 + 0800

Case 2: looking at file system information

Using the-f option, instead of looking at the specified file information, you are no longer looking at the information of the file system on which the file resides.

What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

Thank you for reading here. The editor hopes that you will have the most profound experience from the practical level on the key issue of "what are the commands for viewing file information in the Linux system?" and the specific usage needs to be practiced by everyone in order to understand it. If you want to read more related articles, 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

Development

Wechat

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

12
Report