Brain Dump

stat

Tags
comp-arch

Is a system-call that allows you retrieve metadata about files stored in the inode. See stat.

Table 1: Variants of stat.
FunctionDescription
statStat a file from a given path
fstatStat a file for which you already have an open file-descriptor
lstatIdenticle to stat except for symlinks it stats the link (not the linked to file)