Filesystem and Permissions
7 pages · ~5 min✓ Reviewed
Start here. Next up: Text Processing.
Filesystem Hierarchy and Paths
1. One Tree, Rooted at /
- Everything hangs off one tree rooted at
/ - No drive letters: disks and devices are mounted into the tree
| Dir | Holds |
|---|---|
/etc | config files |
/var | logs, changing data |
/home | user files |
/usr | installed programs |
/tmp | scratch space |
/dev | devices |
/proc | kernel and process info |
2. Paths and Shortcuts
- Absolute starts with
/:/var/log/syslog - Relative starts from the current directory:
../logs
| Symbol | Means |
|---|---|
. | current dir |
.. |