DevOps and cloud

Stage 1 · Lesson 1 of 10

The filesystem, files and permissions

Linux, the shell and scripting

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

Practise

Keep handy

  • The handful of flags people actually use for each command, one line each

Also worth your time

Mark this stage as not done?