stat
FilesPackage: coreutils
Everything the system knows about a file: inode, permissions in octal, modification and change times, link count. It is ls -l with nothing rounded or left out.
What its options do in the lessons
From the same glossary the lessons render under their commands, so the two cannot disagree.
stat -c- Chooses what is printed rather than the full record.
stat -c '%a %U %G' filegives the octal permissions, the owner and the group, on one line. stat -f- Asks about the filesystem rather than the file.
stat -fc %T /sys/fs/cgroupreturnscgroup2fson a cgroup v2 machine.
Lessons that teach it
- Understanding permissionsLinux Fundamentals
- Creating, copying, moving and deletingLinux Fundamentals
- Configuration and secrets a unit can readManaging services with systemd
- Where a file's permissions come fromUsers, sudo and SSH access
- Telling what changed on diskFirewall and hardening
- A container with no memory limit, and the process the kernel kills insteadDocker: containers for hosting a Node application
