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!