Based on the Linux Master 1 exam syllabusReport an error
/bin vs /sbin, absolute/relative paths./usr is not "user" but Unix System Resources. User home directories live in /home.| Person/Organization | Creation | Key Keywords |
|---|---|---|
| Richard Stallman | GNU Project, FSF, GPL | Free software movement (1983) |
| Linus Torvalds | Linux kernel (1991) | Finland, inspired by MINIX |
| Andrew Tanenbaum | MINIX | Educational Unix |
| Ken Thompson/Dennis Ritchie | UNIX, C language | Bell Labs (1969~) |
One-line summary: Linux = Linus's kernel + GNU's tools. Neither side alone is a complete OS.
Trap: "Linux is an operating system Torvalds created alone" is wrong. What Torvalds made was the kernel, not the entire OS.
| License | Copyleft | Key Feature |
|---|---|---|
| GPL | Strong | Derivative works must also be GPL (source disclosure) |
| LGPL | Weak | Source can stay private when linking a library |
| BSD | None | Can be commercialized closed-source as long as attribution is given |
| Apache | None | BSD-style + explicit patent clause |
| MIT | None | Most permissive, short terms |
⚠️ The decisive difference: GPL says "If you use my code, you must disclose yours too," while LGPL says "Using it as a library is fine." Even if commercial software links an LGPL library, it can keep its own source private.
| Partition | Role | Notes |
|---|---|---|
/ (root) | Top level, required | The start of everything |
/boot | Kernel and bootloader | Small capacity, separate partition recommended |
swap | Virtual memory | Typically 1-2x RAM |
/home | User data | Advantageous for preserving data on reinstall |
/var | Logs and variable data | For isolating runaway logs |
Swap rule of thumb: Traditionally, if RAM is 2GB or less, 2x RAM; above that, equal to RAM or only a portion of it. On the exam, "1-2x RAM" is the safe correct answer.
| Runlevel | systemd Target | Meaning |
|---|---|---|
| 0 | poweroff.target | Shutdown |
| 1 | rescue.target | Single-user |
| 3 | multi-user.target | Text multi-user |
| 5 | graphical.target | GUI multi-user |
| 6 | reboot.target | Reboot |
GRUB key point: The GRUB2 configuration is /boot/grub2/grub.cfg, but do not edit it directly — edit /etc/default/grub and then generate it with grub2-mkconfig.
Command summary: Check the default target with systemctl get-default, change it with systemctl set-default multi-user.target. Check the runlevel with runlevel/who -r.
| Directory | Purpose | Trap Point |
|---|---|---|
/bin | Essential user commands | Basic commands needed for booting |
/sbin | System administration commands | Mainly for root |
/etc | System configuration files | Not binaries |
/dev | Device files | Not real files |
/proc | Kernel and process information | Virtual FS in memory |
/usr | Secondary applications | Static shareable data, not "user" |
/var | Variable data (logs, etc.) | Keeps changing |
/tmp | Temporary files | May be deleted on reboot |
/lib | Shared libraries | Includes kernel modules |
/opt | Add-on packages | Third-party software |
⚠️ Trap: The "usr" in
/usris not "user" but Unix System Resources. User home directories live in/home.
/) and relative paths (./..) is asked.*, ?, []) is asked as well.| Symbol | Meaning |
|---|---|
. | Current directory |
.. | Parent directory |
~ | Home directory |
* | Any characters, zero or more |
? | Any single character |
[abc] | One character from within the brackets |
Path in one line: An absolute path always points to the same place regardless of location, while a relative path points relative to the current location. In scripts, absolute paths are safer.
| Family | Representative Distributions | Packages |
|---|---|---|
| Red Hat | RHEL, CentOS, Fedora, Rocky | rpm/yum |
| Debian | Debian, Ubuntu, Mint | deb/apt |
| Slackware | Slackware | tgz |
| SUSE | openSUSE, SLES | rpm/zypper |
2.6.x, there was a rule that even minor number = stable / odd = development.uname -r.uname options: uname -r (kernel release), uname -a (all information), uname -m (machine architecture). On the exam, the answer for "command to check the kernel version" is uname -r.
Distributions in one line: CentOS/Rocky are free RHEL-compatible distributions, and Ubuntu is a popular Debian-based desktop and server distribution. If you know the family, you can infer the package tool.
| Step | Description |
|---|---|
| Login prompt | getty/login verifies ID and password |
| Authentication | Checked against /etc/passwd and /etc/shadow |
| Shell launch | Starts the shell in the 7th field of passwd |
| Environment setup | profile and bashrc are loaded in sequence |
Ctrl+Alt+F1~F6) and the GUI (F1 or F7) may also be asked at a general-knowledge level.Login shell vs non-login shell: A login shell reads ~/.bash_profile, while a non-login shell (a new terminal window) reads ~/.bashrc. Usually .bash_profile sources .bashrc to unify them.
| Section | Contents |
|---|---|
| 1 | General user commands |
| 2 | System calls |
| 3 | Library functions |
| 4 | Device files (/dev) |
| 5 | File formats and configuration files |
| 8 | System administration commands |
man 5 passwd (file format) and man 1 passwd (command).| Help Tool | Purpose |
|---|---|
man | Manual pages |
info | GNU info documents (hyperlinked) |
whatis | One-line summary |
apropos | Search commands by keyword |
command --help | Quick option summary |
Search in one line: When you don't know what command to use, find related commands with apropos keyword, and once you know it, see the details with man command. whatis gives just a quick one-line definition.
$ for a regular user, # for root. This single character tells you your current privilege at once.| Concept | Description |
|---|---|
| Hypervisor | Virtualization layer that runs VMs (KVM, Xen) |
| Container | Lightweight isolation sharing the OS kernel (Docker) |
| Host OS | The real OS that hosts virtualization |
| Guest OS | The OS running inside a VM |
VM vs container: A VM boots an entire guest OS, so it is heavy but has strong isolation, while a container shares the host kernel, so it is light but has relatively weaker isolation. This contrast is the exam focus.
Boot basics wrap-up: Reviewing the prompt symbols # (root), $ (regular user), and % (csh family), together with the shutdown commands shutdown -h now (shut down immediately), shutdown -r now (reboot), init 0 (shut down), and init 6 (reboot), is enough to wrap up Subject 1.
Use the mock exam below to check your weak points in practice.
grub.cfg directly; you edit /etc/default/grub and then generate it./ and points to the same place regardless of location / a path based on the current location.Click a choice to reveal the answer and explanation.
Question 1
Which option correctly pairs the person who first developed the Linux kernel with the person who started the GNU Project?
Question 2
Which license lets commercial closed-source software link a library and use it without having to disclose its own source?
Question 3
In systemd, which target corresponds to GUI multi-user mode, and what is the equivalent SysV runlevel?
Question 4
In the FHS, which statement about the meaning and purpose of the /usr directory is correct?
Question 5
Which is the correct order of the Linux boot process?
Question 6
In a GRUB2 environment, what is the correct way to change the boot configuration?
Question 7
Which of the following filesystems has no journaling feature?
Question 8
Which standard directory holds system administration commands (mainly root-only)?
Question 9
Which command changes the system's default boot target to text multi-user mode?
Question 10
Which statement about the wildcard ? is correct?