Self-check¶
Answer first, then look.
| # | Question | Answer |
|---|---|---|
| 1 | What does chown a:b f do? |
sets owner a and group b |
| 2 | How do you leave vim without saving? | :q! |
| 3 | What do dd and u do in vim? |
delete a line, undo |
| 4 | What does 600 mean? |
only the owner reads and writes |
| 5 | What is x on a directory? |
permission to pass through |
| 6 | What does useradd -m do? |
creates the home directory |
| 7 | What is the risk of usermod -G without -a? |
other supplementary groups are removed |
| 8 | When does new group membership apply? | in a new session |
| 9 | What does & do? |
runs the process in the background |
| 10 | Which signal does kill send? |
TERM |
| 11 | What is daemon-reload for? |
systemd re-reads unit files |
| 12 | Does disable stop the service? |
no, use stop |
| 13 | What does 203/EXEC mean? |
the program could not be run (e.g. wrong path) |
| 14 | How do you see one service's log? | journalctl -u NAME |
| 15 | What does ss -tlnp show? |
listening TCP ports with processes |
| 16 | What is tar -C for? |
changes into the folder first, so paths are stored relative |