Stage 1 · Lesson 1 of 10
The filesystem, files and permissions
keeps every file in one tree that starts at /. Configuration lives under /etc, logs under /var/log, programs under /usr/bin and your own files under /home. You move around with cd, ls -la and find, and read files with less, head and tail.
decide who may do what with each file. Every file has an owner and a group. It also has three switches, read, write and execute, set separately for the owner, the group and everyone else.
So chmod 640 app.env means the owner can read and write, the group can only read, and everyone else gets nothing. Learn this first, because many later errors are really permission problems. A service that cannot read its config and refusing a key are two common examples.
Common traprunning chmod -R 777 to make an error go away: it hides the real cause and lets any user change the files.
A question to check yourself, an AI practice session and 1 cheat sheet entry come with the full roadmap. Unlock
Resources for this stage
Start with· follow one of these
- CourseFreeThe Missing Semester of Your CS Education
MIT · Beginner
Shell, scripting, data wrangling, SSH and Git in a dozen focused lectures
- BookFreeThe Linux Command Line
William Shotts · Beginner
Free book: permissions, processes, packages and longer shell scripts, chapter by chapter