Find Files Safely with -print0, xargs -0, and -exec
Handle spaces, quotes, newlines, empty matches, pruning, and expression precedence before a find command feeds another program.
6 min read
Topic
7 articles
Paths, permissions, mounts, and filesystem semantics.
Handle spaces, quotes, newlines, empty matches, pruning, and expression precedence before a find command feeds another program.
6 min read
Use findmnt to identify the filesystem behind a path, separate VFS options from filesystem options, and inspect mounts without parsing df output.
4 min read
A filesystem can reject new files while plenty of space remains. Compare block and inode usage, then find where file counts have grown.
5 min read
When mode bits look correct but access still fails, use getfacl to inspect named users, group entries, masks, and inherited default ACLs.
5 min read
Map device names to filesystem UUIDs, partition UUIDs, labels, types, and mountpoints before editing storage configuration or replacing a disk.
4 min read
Stop memorizing 755. Read owner, group, and other permissions as answers to concrete file and directory operations.
13 min read
Reconcile filesystem allocation with files a directory walk can reach, then diagnose gaps without reaching for a cleanup command.
14 min read