-c, --format
Use the specified FORMAT instead of the default; output a newline after each use of FORMAT.
An option of statx.
Usage
statx -c FORMAT FILE...
statx --format=FORMAT FILE...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-c | --format | FORMAT | use the specified FORMAT instead of the default; output a newline after each use of FORMAT |
Examples
Check that an SSH key is private before ssh refuses to use it
statx -c '%a %U %n' ~/.ssh/id_ed25519600 alice /home/alice/.ssh/id_ed25519List several files with their permissions and owners, aligned
statx -c '%-25n %A %U:%G' /etc/passwd /etc/shadow /etc/sudoers/etc/passwd -rw-r--r-- root:root
/etc/shadow -rw-r----- root:shadow
/etc/sudoers -r--r----- root:rootSee where a symbolic link points
statx -c %N /usr/bin/python3/usr/bin/python3 -> python3.12Find a file's mount point
statx -c %m ~/Downloads/movie.mkv/homeHelp in the terminal
gnux help statx --format