The stat command is used in Unix-like operating systems to display detailed information about files or file systems. It provides various attributes of a file, including:
- File size
- Block size
- Number of blocks allocated
- File type (regular file, directory, symlink, etc.)
- Permissions
- Owner and group information
- Timestamps (last access, last modification, last status change)
For example, to use the stat command on a file named example.txt, you would run:
stat example.txt
This command will output detailed information about example.txt, including its size, permissions, and timestamps.
