stat

Display file and filesystem information. More information: <https://www.gnu.org/software/coreutils/manual/html_node/stat-invocation.html>.

Install

All systems
curl cmd.cat/stat.sh
Debian Debian
apt-get install coreutils
Ubuntu
apt-get install coreutils
Alpine
apk add coreutils
Arch Arch Linux
pacman -S coreutils
image/svg+xml Kali Linux
apt-get install coreutils
CentOS
yum install coreutils
Fedora
dnf install coreutils
Windows (WSL2)
sudo apt-get update sudo apt-get install coreutils
OS X
brew install coreutils
Raspbian
apt-get install coreutils
Docker
docker run cmd.cat/stat stat powered by Commando

Display file and filesystem information. More information: <https://www.gnu.org/software/coreutils/manual/html_node/stat-invocation.html>.

  • Display properties about a specific file such as size, permissions, creation and access dates among others:
    stat path/to/file
  • Display properties about a specific file such as size, permissions, creation and access dates among others without labels:
    stat --terse path/to/file
  • Display information about the filesystem where a specific file is located:
    stat --file-system path/to/file
  • Show only octal file permissions:
    stat --format="%a %n" path/to/file
  • Show the owner and group of a specific file:
    stat --format="%U %G" path/to/file
  • Show the size of a specific file in bytes:
    stat --format="%s %n" path/to/file

© tl;dr; authors and contributors