Linux - Stat (File status)

Bash Liste Des Attaques Ovh

About

This page is about the file metadata (also known as file status) on the linux file system

Principally, the stat command display the file metadata.

The find command uses this command to collect its data.

The stat command is simply a frontend to the stat() system call. See the following man page

man 2 stat

Syntax

stat [OPTION] FILE...

where:

  • Through the --printf=FORMAT option a lot information are available, see the man page

Example

File

stat testFile.txt
File: `testFile.txt'
  Size: 4               Blocks: 8          IO Block: 4096   regular file
Device: ca02h/51714d    Inode: 2522975     Links: 1
Access: (0644/-rw-r--r--)  Uid: (  500/  oracle)   Gid: ( 1001/oinstall)
Access: 2015-09-15 13:50:26.000000000 +0200
Modify: 2015-09-15 12:43:18.000000000 +0200
Change: 2015-09-15 12:43:18.000000000 +0200

where:

File System

stat -f testFile.txt
File: "testFile.txt"
    ID: f6b940611a2fbb15 Namelen: 255     Type: ext2/ext3
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 12427805   Free: 9800360    Available: 9159378
Inodes: Total: 12518912   Free: 12381458





Discover More
Card Puncher Data Processing
Dokuwiki - Sitemap

generation in dokuwiki. The file is triggered by the taskrunner and generated by the class Mapper.php at DOKU_HOME/sitemap.xml.gz Generation frequency...
Undraw File Manager Re Ms29
File - File

A file is a logical representation of multiple block that can be accessed and manipulated at once by a program. Generally, a file is stored in a durable in the sense that it remains available for programs...
Undraw File Manager Re Ms29
File System - File (Attributes|Metadata|Status)

file attributes are the metadata of a file. A file consists also of attributes such as: path (location) its directory (act as a namespace) contents (only for regular file) the security descriptor,...
Bash Liste Des Attaques Ovh
Linux - File

Linux file management See Using Parameters Expansion Removal From a path string where the file does not exist dirname returns the first parent of an existing path file. ...
Bash Liste Des Attaques Ovh
Linux - find command

Search, print information and takes actions on files in a directory hierarchy. Find use stat to extract its information File Metadata Synbol Default Description '-H', '-L' and '-P' options control...
Linux File System - inode (index node)

inode (or index node) is a data structure that describes the linux file-system of one object such as a file or a directory. They are also known as filesystem objects (e.g. files and directories). Each...
What is the Git Staging area (or index)? The Proposed next commit

The staging area is a tree file called index that stores information to create the next commit. The index is like a pre-commit. The index holds a snapshot of the content of the working tree. You must...



Share this page:
Follow us:
Task Runner