KandZ – Tuts

We like to help…!

Linux CLI 37 ๐Ÿง stat command and inodes

a - stat command

stat displays information about a file or directory
The information includes metadata like size, permissions, timestampts etc
Size โ†’ size in Bytes Blocks โ†’ Total blocks allocated on the HDD
IO Block โ†’ size of each bloc in Bytes Device โ†’ in hexadecimal format
Inode โ†’ inode of the file Links โ†’ amount of hard links
Access โ†’ file permissions Uid โ†’ owner ID Gid โ†’ group ID
Then there are timestamps for Access, modify, change and birth
stat file.txt โ†’ shows information for a file
stat -f ~/CLI/ โ†’ shows information for a directory


b - inodes

inodes are unique identifiers for files and directories
They represent the smallest unit of storage and are stored as block
Each inode contains metadata information such as permissions, timestamp type etc
It is assigned a unique number when a file is created
It remains the same through the file's lifetime
inodes are used to track files and directories on a disk
stat -c %i file.txt โ†’ shows the file's inode number

Stop using slow, ad-bloated tool sites! ๐Ÿคฎ

๐Ÿ”Ž Search “KandZ Tools” on Google to use many professional utilities for free.

KandZ.me is the ultimate minimalist hub for:
โœ… Finance (Mortgage, Interest, Inflation)
โœ… Tech (Base64, JSON, Dev Suite, IP)
โœ… Health (BMI, BMR, TDEE)
โœ… Productivity (Timer, Workspace, QR)

โšก๏ธ Fast & Private
๐Ÿ”’ No data leaves your device
๐Ÿ’Ž 100% Free

๐Ÿ”— Use it now: https://tools.kandz.me
๐Ÿ”– Bookmark itโ€”youโ€™ll need it later!

Leave a Reply