Forrest logo
back to context overview

stat

List of commands for stat:

  • stat:tldr:20e0b stat: Display properties about a specific file such as size, permissions, creation and access dates among others without labels.
    $ stat --terse ${filename}
    try on your machine
    explain this command
  • stat:tldr:253cf stat: Show only octal file permissions.
    $ stat --format="%a %n" ${filename}
    try on your machine
    explain this command
  • stat:tldr:2a1fd stat: Display properties about a specific file such as size, permissions, creation and access dates among others.
    $ stat ${filename}
    try on your machine
    explain this command
  • stat:tldr:33aad stat: Show the owner and group of a specific file.
    $ stat --format="%U %G" ${filename}
    try on your machine
    explain this command
  • stat:tldr:9d320 stat: Same as above but verbose (more similar to Linux's `stat`).
    $ stat -x ${filename}
    try on your machine
    explain this command
  • stat:tldr:bee1c stat: Display information about the filesystem where a specific file is located.
    $ stat --file-system ${filename}
    try on your machine
    explain this command
  • stat:tldr:c86f5 stat: Show the size of a specific file in bytes.
    $ stat --format="%s %n" ${filename}
    try on your machine
    explain this command
  • stat:tldr:d652b stat: Show owner and group of the file.
    $ stat -f "%Su %Sg" ${filename}
    try on your machine
    explain this command
  • stat:tldr:d6c40 stat: Show only octal file permissions.
    $ stat -f %Mp%Lp ${filename}
    try on your machine
    explain this command
  • stat:tldr:e6c17 stat: Show the size of the file in bytes.
    $ stat -f "%z %N" ${filename}
    try on your machine
    explain this command
back to context overview