[ SRE_ARENA ]
Roadmap
System Design
SREdle
⚡ 1420 ELO
OP
☰
←
BACK TO ROADMAP
BASIC LINUX NAVIGATION
Everything is a File. Even Your Keyboard.
System Architecture Visualization
/
The Root Directory
/bin
Binaries (ls, cat)
/etc
Config Files
/var
Variable Data (Logs)
/dev
Devices (sda, tty)
/proc
Kernel Data
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
Phase 1: The 'Everything is a File' Philosophy
Phase 2: The Filesystem Hierarchy Standard (FHS)
Phase 3: Inodes — The Truth About Filenames
Phase 4: Permissions (User, Group, Others)
Phase 5: The Environment and $PATH
Phase 6: Standard Streams (0, 1, 2)
DOWNLOADING CONCEPT: PHASE 1: THE 'EVERYTHING IS A FILE' PHILOSOPHY...
The Core Unix Concept
↳
In Linux, almost everything is represented as a file.
↳
Text documents are files.
↳
Directories are just files containing lists of other files.
↳
Your hard drive is a file (
/dev/sda
).
↳
Your keyboard is a file.
↳
Network sockets are files.
↳
Even currently running processes have their memory mapped to files!
↳
Because everything is a file, the same standard tools (
cat
,
echo
,
grep
,
>
) can be used to interact with literally anything in the system.
↳
To write a message directly to someone else's terminal screen, you can literally
echo 'hello' > /dev/pts/1
.
▲ LIVE INCIDENT
A junior dev says 'I can't edit the nginx config file'.
sre@arena:~/linux-navigation
sre@arena
:
~
$
ls -la /etc/nginx/nginx.conf
▶ EXECUTE COMMAND