Skill 1 in course 1.1: Command-Line Foundations
Linux Filesystem
Navigate, organise, measure, mount and secure files on any Linux system.
You will be able to
- Navigate the directory tree with absolute and relative paths, without looking anything up.
- Create, copy, move, link and remove files and directories safely.
- Find what is using disk space and why df and du disagree.
- Attach, inspect and detach filesystems with mount, including loop devices and bind mounts.
- Set ownership and permissions precisely, including umask, setgid and sticky directories.
- Build and verify a shared project area the way an administrator would.
Lessons
- 01The tree and how to move in itRead the single directory tree, then move through it with absolute and relative paths.
pwdlscdreadlinktype0/5 exercises - 02Directories: build, reshape, removeCreate whole trees in one command, copy and move them, and remove them without losing anything you meant to keep.
mkdirrmdircpmvrmfind0/5 exercises - 03Files: create, read, copy, move, removeCreate files, read them without an editor, handle many at once with globs, and avoid the ways these commands destroy data.
touchcatlessheadtailwc0/5 exercises - 04Inodes, hard links and symbolic linksSee what a file really is on disk, then use links to give one file several names, or a name that points elsewhere.
statlnls -ireadlinkfind0/5 exercises - 05Disk usage: where the space wentMeasure free space and find what fills it, and learn why df, du and ls report different numbers.
dfduls -Sfindsortlsof0/6 exercises - 06Mounts: attach and detach filesystemsSee how disks join the tree, then build, mount, remount, bind and unmount filesystems safely on a file-backed disk.
findmntlsblkblkidmountumountmkfs.ext40/6 exercises - 07Permissions and ownershipRead, set and reason about who can read, change and run each file, including umask and the setuid, setgid and sticky bits.
chmodchownchgrpumaskidstat0/6 exercises - 08Capstone: a shared project areaCombine ownership, permissions, setgid, sticky bits, usage reports and cleanup to build and audit a shared directory the way an administrator would.
useraddusermodgetenttarfinddu0/6 exercises