All commands
stat
Topic: Files and folders
Program: stat
Shows what an inode records.
Package: core-inodes
Usage
stat [OPTION]... FILE...
Description
Show what the inode of each FILE records: size, blocks, links, rights, owner and times.
FORMAT codes: %a %A rights, %b blocks of %B bytes, %F type, %h links, %i inode, %n name, %N name with link
target, %s size, %u %U owner, %g %G group, %x %y %z access, change of data, change of the inode (%X %Y %Z in
seconds), %w birth, %% a percent sign.
Options in the simulator
-
-L, --dereference show the file a symbolic link points to -
-c, --format=FORMAT print FORMAT for each file, then a newline -
--printf=FORMAT like --format, with \n and \t, without a final newline -
--help show this help and exit
4 more options of the real program, not in the simulator yet
-
-f, --file-system not in the simulator yet On a real system stat then shows the file system instead of the file.
-
--cached needs a value not in the simulator yet On a real system it decides whether stat may use cached details on network file systems.
-
-t, --terse not in the simulator yet On a real system stat prints all details briefly on one line.
-
--version not in the simulator yet On a real system it prints the version of the program.
Where you learn it
No lesson yet.
All commands