CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
  • Week 1
    • 1.Operating Systems and the Kernel: What Linux Does
    • 2.The Birth of Linux: From Unix to Linus
    • 3.Free Software and Open Source: What a License Decides
    • 4.Distributions: The Unit That Bundles the Kernel and Tools for Sale
    • 5.Week 1 Review: The Identity Behind the Name Linux
  • Week 2
  • Week 3
  • Week 4
  • Week 5
  • Week 6
  • Week 7
  • Week 8
  • Week 9
  • Week 10
  • Week 11
    • 1.Clustering
    • 2.Virtualization
    • 3.Embedded Systems and Technology Trends
    • 4.Comprehensive Mock Exam 1: Linux General + Operation and Management
    • 5.Comprehensive Mock Exam 2: Linux Usage and Final Review
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← Linux Master 2/Week 11/Day 4

Based on the Linux Master 2 exam syllabus·Report an error

Linux Master 2· AssociateWeek 11 · Day 4~28 min read

Day 4 - Comprehensive Mock Exam 1: Linux General + Operation and Management

📌 Key Takeaways

  • The real exam has Part 1: Linux General (50 questions) and Part 2: Linux Operation and Management + Linux Usage (80 questions).
  • Today we review W1 to W7 as one bundle — Linux General (W1-W3) and Operation and Management (W4-W7). Linux Usage is tomorrow.
  • There are four main axes — permissions (octal, umask, special permissions) · command options · processes · package families.
  • Many questions ask for values as they are. Memorizing numbers and file paths earns points.
  • The 10 questions below sweep through this range once.

Exam Structure and Today's Scope

CategoryPart 1Part 2
SubjectsLinux GeneralLinux Operation and Management + Linux Usage
Weeks in this trackW1-W3W4-W7 + W8-W11
Questions · time50 questions · 60 minutes80 questions · 100 minutes
FormatOnline exam, four choicesWritten, four choices
Passing criteria60 points or more60 points or more, and a score below 40% in any subject is a fail
  • The second half of today's scope (W4-W7) is the first subject of Part 2 on the real exam.
  • Part 2 has two subjects, so doing well in only one will not get you a pass. If either Operation and Management (today) or Usage (tomorrow) falls below 40%, you fail even if the average is above 60.
  • For both exams, time is a little over one minute per question. To spend time on permission and umask questions that need calculation, you have to get through the questions that just ask for values quickly.

Final Checklist — Linux General · Operation and Management

   W1 What is Linux     Torvalds 1991 · GPL · distribution lineages (Red Hat/Debian/Slackware)
                        kernel versions · open-source licenses
 
   W2 Install and boot  partitions · swap · file systems (ext2/3/4, xfs) · inode
                        boot order BIOS → bootloader (GRUB) → kernel → init/systemd
                        runlevel 3 text · 5 graphical
 
   W3 Basic commands    pwd cd ls · cp(-r) mv(-r not needed) rm(-r) · ln(-s)
                        cat less head tail(-f) · find (path first) grep (contents) · wc -l
                        /etc/passwd 7 fields · UID 0 root · su vs sudo
 
   W4 Permissions       rwx = 4/2/1 · 644 file · 755 directory
                        umask is subtracted (base 666 for files · 777 for directories)
                        special permissions 4 SetUID · 2 SetGID · 1 Sticky · /tmp 1777
                        FHS · mount/umount · df (file system) vs du (path) · fsck
 
   W5 Shell             Bourne (sh ksh bash zsh dash) vs C (csh tcsh)
                        shell variables (set) vs environment variables (env, export) · PATH colon
                        login .bash_profile / non-login .bashrc · source
                        FD 0/1/2 · > >> 2> &> · pipe · alias/unalias · history
 
   W6 Editor, process   vi 3 modes · dd yy p · :wq :q! · :%s/A/B/g · nano (Ctrl+O)
                        PID 1 systemd · orphan vs zombie · fg/bg/Ctrl+Z
                        ps -ef / ps aux · signal 9 force, 15 default · nice -20 to 19
                        cron 5 fields (min hour day month weekday) · at once
 
   W7 Software, devices RPM (Red Hat, SUSE) vs DEB (Debian, Ubuntu)
                        low-level rpm/dpkg (no dependencies) vs high-level yum/apt (dependencies)
                        apt update (list) vs upgrade (actual) · tar -c/-x -z/-j/-J
                        block b / character c · udev · CUPS 631 · ALSA · SANE

Value Collection

ValueWhat it is
4 / 2 / 1r/w/x, SetUID/SetGID/Sticky
644 / 755 / 1777File / directory / /tmp
666 / 777umask base values (file / directory)
7 / 0Number of /etc/passwd fields / root's UID
9 / 15Force-kill / default termination signal
5Number of crontab fields
3 / 5Text / graphical runlevel
631CUPS port

Same Number, Different Meaning

Numbers that did not get confused when memorized week by week get mixed up once they come together on one exam paper. Here they are organized in reverse, by number.

NumberPermissions (W4)Editor and process (W6)Install and boot (W2)Account and shell (W3, W5)
0No permission ---nice defaultShutdownroot's UID · standard input · $? success
1x · StickyPID 1 (systemd) · SIGHUPSingle-user (recovery)Standard output
2w · SetGIDSIGINT (Ctrl+C)—Standard error
3-wxNumber of vi modesText—
4r · SetUID—Maximum number of MBR primary partitionsNumber of /etc/group fields
5r-xNumber of crontab time fieldsGraphical · starting number of logical partitions—
6rw-—Reboot · number of /etc/fstab fields—
7rwxSunday in the crontab weekday field (same as 0)—Number of /etc/passwd fields
9—SIGKILL—Number of /etc/shadow fields
15—SIGTERM (kill default)——
  • The pairs that are most often swapped are 5 (crontab) and 7 (passwd), 6 (fstab, reboot) and 0 (shutdown), and 9 (force) and 15 (default).
  • Try recalling everything that involves a 1 at once — PID 1, signal 1 (HUP), runlevel 1 (recovery), FD 1 (standard output), permission 1 (x), special permission 1 (Sticky). A question asks about only one of these, but the others are laid out as wrong choices.

Same Option Letter, Different Meaning

This is the table we collected once in week 3, widened to cover W4-W7 commands. Memorizing only the letter gets you wrong answers; you have to memorize it together with the command.

LetterMeaning per command
-rcp -r, rm -r include subdirectories / ls -r reverse order / userdel -r also deletes the home directory / dpkg -r remove package / crontab -r delete everything / uname -r kernel version
-lls -l detailed / wc -l line count / fdisk -l, crontab -l, kill -l, dpkg -l list / usermod -l rename
-icp -i confirm before overwriting / grep -i ignore case / rpm -i, dpkg -i install / df -i, ls -i inode
-eps -e all processes / rpm -e erase / crontab -e edit
-frm -f force / tail -f follow / ps -f detailed / tar -f specify file name
-als -a include hidden / uname -a everything / mount -a all of fstab / usermod -aG append
-uuseradd -u specify UID / crontab -u, top -u specify user
-Urpm -U upgrade (uppercase)
-pmkdir -p including intermediate paths / cp -p preserve attributes / renice -p, top -p specify PID
-hdf -h, du -h human-readable units / the h in rpm -ivh is the progress display (#)
  • The options for removing differ per command — rpm -e, dpkg -r (-P to include configuration), crontab -r, userdel, atrm. The single word "delete" maps to five different notations.
  • Listing is generally -l. The exceptions are rpm -qa (all installed packages) and atq.

Just Now, or Next Time Too

A passage saying "I ran the command but it disappeared after reboot (or after logging in again)" has the same structure regardless of the week. A command lasts only for now; it must be written to a file to persist.

Just now (command)Next time too (file)Week
mount /dev/sdb1 /dataOne line in /etc/fstabW2, W4
systemctl isolate multi-user.targetsystemctl set-default multi-user.targetW2
init 3/etc/inittabW2
umask 027~/.bashrc (/etc/profile for all users)W4
export EDITOR=vi~/.bash_profileW5
alias ll='ls -l'~/.bashrcW5
:set nu inside vi~/.vimrcW6
at 22:00 (runs once and disappears)crontab -e (repeating)W6
  • There is a trap in the opposite direction too. You edited the file but it isn't applied right now — because configuration files are read at fixed points. Shell settings are re-read with source, /etc/fstab with mount -a, and /etc/default/grub requires regenerating grub.cfg with grub2-mkconfig. Only schedules edited with crontab -e take effect as soon as you save.

Who Can Do It

TaskRegular userroot
Change permissions of own files (chmod)OO
Change a file's owner (chown)XO
Change own password (passwd)OCan also change others'
Create/delete accounts (useradd, userdel)XO
Read /etc/passwdOO
Read /etc/shadowXO
Send signals to own processes (kill)OAll processes
Raise the nice value (yield)OO
Lower the nice value (specify negative)XO
View another user's crontab (crontab -u)XO
  • The reason a regular user can change their own password, which modifies /etc/shadow that only root can write, is the SetUID from week 4. Because /usr/bin/passwd is 4755, it borrows the owner's (root's) privileges only while running. It is the classic case where the permission, account, and special-permission units overlap in a single question.

Tying Several Weeks Into One Scene

Exam questions come by week, but real work crosses weeks. Following the process of creating one collaboration directory, we point out which unit each line belongs to.

groupadd -g 1500 dev                 # W3  create group → one line in /etc/group
useradd -m -u 1001 -G dev alice      # W3  create account → /etc/passwd, home directory
passwd alice                         # W3  password → /etc/shadow
id alice
# uid=1001(alice) gid=1001(alice) groups=1001(alice),1500(dev)
 
mkdir /project                       # W3
chgrp dev /project                   # W4  set the owning group to dev
chmod 2770 /project                  # W4  SetGID(2) + rwxrwx---
ls -ld /project
# drwxrws--- 2 root dev 4096 Oct 14 10:00 /project
 
su - alice                           # W3, W5  switch to a login shell
umask 027                            # W4
touch /project/plan.txt
ls -l /project/plan.txt
# -rw-r----- 1 alice dev 0 Oct 14 10:05 /project/plan.txt
What to read in the outputWhyUnit
groups=...,1500(dev)-G is a supplementary group. The primary group (gid=) is alice, created separately with the same name as the account (default behavior on Red Hat and Debian families)W3
The s in drwxrws---The x spot of the group field is s → SetGIDW4
plan.txt's group is devIt inherited the directory's group rather than alice's primary group (alice)W4
plan.txt's permission 640umask 027 was subtracted from the file base 666W4
The hyphen in su -The hyphen makes it a login shell that reads even alice's .bash_profileW5

The process and package units tack on to this.

crontab -l                           # W6  root's schedule list
# 0 3 * * 0 tar -czf /backup/project.tar.gz /project
  • The five time fields are minute 0 · hour 3 · day * · month * · weekday 0, so it means "every Sunday at exactly 3 o'clock" (W6).
  • tar -czf is c bundle · z gzip compression · f file name. Without z, it only bundles and does not compress (W7).
  • Jobs run by cron have no screen. To keep the output and errors in a file, add >> /var/log/backup.log 2>&1 at the end of the line (W5).

Judging Right and Wrong

These are sentences mixing several weeks. Decide for yourself first, then look at the right side.

SentenceVerdictReason
The seventh field of /etc/passwd and the value changed by chsh -s are the same thing○Both are the login shell
In ps -ef, every process with PPID 1 is a zombie✗It only means the parent is systemd. A zombie is seen by state Z
The -e in rpm -e and crontab -e means the same thing✗Erase versus edit
After apt update finishes, newer-version packages are installed✗It only refreshes the list. Installation is apt upgrade
Runlevel 5 and graphical.target point to the same state○3 is multi-user.target
kill 1234 and kill -15 1234 are the same command○The default signal is 15
A file made with tar -cvf a.tar dir is compressed✗It was only bundled. Compression is -z, -j, -J
An alias written in ~/.bashrc can be used in the current shell as soon as it is saved✗You must run source ~/.bashrc
/dev/sda5 on an MBR disk is a logical partition○Logical partitions always start from 5
find / -name core 2> /dev/null removes error messages from the screen○Channel 2 was sent to the discard location
SUSE uses .rpm, so it is managed with yum✗The format is RPM, but the tool is zypper
An executable with chmod 4755 runs with the permissions of the person who runs it✗It runs with the file owner's permissions
The -i in df -i and ls -i both relate to inodes○inode usage / inode number
A file created under umask 000 has permission 777✗The file base value is 666, so 666

How to Read Each Question Type

TypeMarker in the passageWhere mistakes happen
Pick the correct one"which is correct"If the first choice looks plausible, you don't read to the end
Pick the incorrect one"which is not correct", "wrong", "furthest from"You mark a correct choice as the answer as soon as you see it
The odd one out"different from the other three"You must first find what the three have in common (shell families, package families, editor types)
Order"the correct order"Boot order, ./configure → make → make install, new disk fdisk → mkfs → mount
CalculationFour numeric choicesOctal permissions, umask (files 666, directories 777), reading crontab
Matching"correctly paired"Choices with reversed order get mixed in, such as df - du, low-level - high-level tools
  • For "pick the wrong one" questions, solve them by writing ○ or ✗ for each choice on the exam paper. Only one ✗ should remain among the four.
  • When an unfamiliar name appears, it is faster to eliminate the three you know and keep the remaining one. Most name-classification questions can be solved this way.

Pre-Exam Check

  • I can convert notation like rwxr-x--x to octal the moment I see it
  • When a umask is given, I work out the directory value first and then go down to the file value
  • I can state the order of the 7 /etc/passwd fields (name, x, UID, GID, description, home, shell)
  • I know signals 1, 2, 9, and 15 by both number and name
  • I can read one crontab line and spell out "when it runs"
  • I can fill in three boxes each — distribution, low-level tool, high-level tool — for the RPM family and the DEB family
  • I can tell which files login shells and non-login shells read
  • In vi, I can type save and quit, quit without saving, and replace everywhere
  • I can state the boot order and the meaning of runlevels 0, 1, 3, 5, and 6
  • I know what each of CUPS, ALSA, and SANE handles

📖 Glossary

  • umask : The value to be cut from the permissions of new files and directories. The base is 666 for files and 777 for directories.
  • Special permissions : SetUID (4), SetGID (2), Sticky bit (1). The first digit of the four permission digits.
  • Zombie process : A process that has terminated but remains in the list because its parent has not collected its status.
  • Environment variable : A variable promoted with export that is passed on to child processes.
  • Low-level package tool : A tool that does not resolve dependencies, such as rpm and dpkg.
  • File descriptor : A number attached to an input/output channel. 0, 1, and 2 are standard input, output, and error.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

Which of the following is the license applied when the Linux kernel is distributed?

Question 2

Which of the following is responsible for loading the kernel into memory during the Linux boot process?

Question 3

Which of the following is the permission state after running the command chmod 640 report.txt?

Question 4

With the umask value set to 002, which of the following is the permission of a newly created directory?

Question 5

Which of the following is the command that uses find to find files larger than 100MB under /home?

Question 6

Which of the following is the special permission, and its value, that when set on a directory makes files created inside it inherit the directory's group?

Question 7

Which of the following is the command used last when you have asked a running process to terminate normally but got no response?

Question 8

Which of the following is the range symbol specified in the vi editor to replace a string across the whole file?

Question 9

Which of the following is the command that installs packages on the Debian family while handling dependencies automatically?

Question 10

Which of the following correctly pairs the command that shows the total capacity and usage rate per file system with the command that shows the total usage of a specific directory?

PreviousEmbedded Systems and Technology TrendsWeek 11 · Day 3Next Comprehensive Mock Exam 2: Linux Usage and Final ReviewWeek 11 · Day 5

Official references

  • Linux Master 2 official exam syllabus(opens in a new tab)

On this page

  • Key Takeaways
  • Exam Structure and Today's Scope
  • Final Checklist — Linux General · Operation and Management
  • Value Collection
  • Same Number, Different Meaning
  • Same Option Letter, Different Meaning
  • Just Now, or Next Time Too
  • Who Can Do It
  • Tying Several Weeks Into One Scene
  • Judging Right and Wrong
  • How to Read Each Question Type
  • Pre-Exam Check
  • Glossary
  • Practice Questions