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 5

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

Linux Master 2· AssociateWeek 11 · Day 5~29 min read

Day 5 - Comprehensive Mock Exam 2: Linux Usage and Final Review

📌 Key Takeaways

  • Part 2 of the exam has two subjects: Operation and Management + Linux Usage. Today we review Linux Usage — three items: X Window · Internet usage · application fields.
  • The weights differ greatly — Internet usage is well over half, X Window comes next, and application fields are a handful of questions.
  • Part 2 asks for names and values rather than principles. Product names, protocols, ports, and records are the core.
  • Three things to keep until the very end are the port numbers · subnet calculation · layer classification table.
  • The 10 questions below wrap up the entire Linux Usage scope.

Where Today's Scope Sits in Part 2

SubjectWeeks in this trackDay reviewed
Linux Operation and ManagementW4-W7Yesterday (Day 4)
Linux UsageW8-W11Today
  • Part 2 is 80 questions · 100 minutes, the passing line is 60 points, and a score below 40% in any subject is a fail. Doing well only in Usage, or only in Operation and Management, will not get you a pass.
  • Counting one past exam round, of the 80 questions, Linux Usage had 32, split within it as X Window 8 · Internet usage 20 · application fields 4. It will differ somewhat by round, but the direction is clear: you should spend the most time on Internet usage (W9, W10).
  • Application fields have few questions but a narrow scope. You only need to be sure of three chunks: the 3 cluster types, virtualization products, and Linux-kernel-based operating systems.

Final Checklist — Linux Usage

   W8 X Window     server = the side with the screen / client = the program
                   XFree86 → X.org → Wayland
                   layers  X server ← Xlib, XCB ← toolkit (GTK+ C, Qt C++, FLTK, Motif) ← app
                   window managers KWin, Mutter, Xfwm, Windowmaker, Afterstep
                   display managers XDM, GDM, KDM, SDDM, LightDM  (ends in DM)
                   desktop environments GNOME (GTK+), KDE (Qt), Xfce, LXDE, CDE (Motif)
                   DISPLAY :0.0 · startx · runlevel 3/5 · xhost (dangerous) vs ssh -X
 
   W9 Network      OSI Please Do Not Throw Sausage Pizza Away / hub 1 switch 2 router 3
                   bit, frame, packet, segment / MAC layer 2 IP layer 3 port layer 4
                   TCP reliable · UDP fast
                   circuit (PSTN) vs packet (PSDN) · CSMA/CD wired · CA wireless
                   X.25 → Frame Relay → ATM (53 bytes) · FDDI (optical dual-ring token)
                   IEEE 802.3/802.5/802.6/802.11 · IANA
                   classes A 1-126 B 128-191 C 192-223 D 224-239
                   private 10 / 172.16-31 / 192.168 · loopback 127.0.0.1
                   hosts = (256 − mask) − 2  →  254, 126, 62, 30, 14, 6, 2
 
   W10 Internet    HTTP 80 · HTTPS 443 · SSH 22 · TELNET 23
   services        SMTP 25 (sending, between servers) · POP3 110 (fetch and delete) · IMAP 143 (keep on server)
                   MUA → MTA → MDA · MIME
                   DNS 53 · A, AAAA, MX, CNAME, NS, PTR · BIND
                   FTP 21 control / 20 data · active vs passive · anonymous · bin/ascii
                   NFS (Unix, RPC, /etc/exports) vs Samba (Windows, SMB/CIFS/NetBIOS)
                   Gopher (menu search) · Usenet (NNTP) · Archie (FTP search) · IRC
 
   W11 Application HPC (high-computation) · HA (high availability) · LB (load balancing)
   fields          full virtualization (no modification) vs paravirtualization (modification needed)
                   Type 1 KVM, Xen, ESXi / Type 2 VirtualBox, Workstation
                   VirtualBox = Oracle · GPL · full virtualization · supports VMDK/VHD
                   Linux-kernel-based OS: Android, Tizen, webOS (not iOS)
                   IaaS/PaaS/SaaS · Hadoop (HDFS, MapReduce)

Three Things to Carry to the End

   ① Ports     21 FTP · 22 SSH · 23 TELNET · 25 SMTP · 53 DNS
               80 HTTP · 110 POP3 · 143 IMAP · 443 HTTPS · 631 CUPS
 
   ② Subnets   256 − mask = block,  block − 2 = hosts
               /24 254 · /25 126 · /26 62 · /27 30 · /28 14 · /29 6 · /30 2
 
   ③ Classification  Ends in DM → display manager
               Xfce is an environment · Xfwm is a window manager
               NFS is Unix · Samba is Windows
               TELNET is for logging in, not for transferring

Three Weeks Overlap in a Single Connection

One scene, showing a graphical program from a remote server on my own screen, contains X Window (W8), networking (W9), and Internet services (W10) all at once.

ssh -X alice@www.example.com         # run on my PC
echo $DISPLAY                        # from here on, it is the remote server's shell
# localhost:10.0
gedit &                              # a program on the server, but the window appears on my screen
   My PC (the side sitting in front of the screen)       Remote server www.example.com
 
   ① Name to IP         /etc/hosts → DNS (53)
   ② SSH client  ──── TCP port 22, encrypted ────►    SSH server (sshd)
   ③ X server          ◄─── drawing requests inside the tunnel ──  gedit (X client)
      screen, keyboard, mouse
StepWhat happensUnit
①The name is looked up in /etc/hosts, and if it is not there, the DNS server in /etc/resolv.conf is askedW9, W10
②A TCP connection is made on port 22, and an encrypted SSH session opens on top of itW9, W10
③The program run on the server asks my PC's X server to "draw a window"W8
  • Within one connection, server and client get crossed. Seen from SSH, the remote machine is the server, but seen from X, my PC with the screen is the server. The "opposite of the web" from week 8 is exactly this scene.
  • A DISPLAY of localhost:10.0 is a value SSH sets automatically. The format is still host:display.screen, and it points to a relay display number that SSH created inside the server (usually numbered from 10). Drawing requests sent there travel through the encrypted tunnel and arrive at the real screen :0 of my PC.
  • You can do the same thing with xhost + and export DISPLAY=MY_PC_ADDRESS:0.0, but that is a method that is not encrypted and opens the screen to anyone. The exam asks about this contrast.
  • If ② had been TELNET (port 23), even the password would flow in plain text. Pair them up as remote login is SSH, remote GUI is ssh -X.

Who Is the Server and Who Is the Client

Gathering the "direction" questions that appeared once each week into a single table shows they are the same type.

SceneServer side (the one providing)Client side (the one using)Where people get caught
X WindowThe computer with the screen and input devicesThe program that wants to show a windowMistaking the remote server for the X server
SSH config files/etc/ssh/sshd_config/etc/ssh/ssh_configThe side with d (daemon) is the server
DNS/etc/named.conf — the side that answers/etc/resolv.conf — the side that asksThinking the DNS server address is written in hosts
FTP data connectionActive mode: the server connectsPassive mode: the client connectsThe names are given from the server's point of view
MailSMTP between MTAsThe MUA fetches with POP3, IMAPWhen sending, the user also uses SMTP
NFS/etc/exports, exportfsmount -t nfs, showmount -eThe config file exists only on the providing side
VirtualizationHostGuestA full-virtualization guest does not know it is a guest

Separating Names with the Same Initial

Linux Usage is an exam of putting names into boxes. Names that could be told apart week by week look clumped together by initial on a single exam paper.

InitialName → box it goes in
XX11 (X Window version) · X.org (X server implementation) · Xlib, XCB (low-level libraries) · XDM (display manager) · Xfce (desktop environment) · Xfwm (window manager) / X.25 (packet-switched WAN standard) / Xen (hypervisor)
KKDE (desktop environment) · KWin (window manager) · KDM (old display manager) / KVM (hypervisor)
GGNOME (desktop environment) · GTK+ (toolkit) · GDM (display manager) / Gopher (menu-based information retrieval)
LLXDE (desktop environment) · LightDM, LXDM (display managers) / LDAP (account information) / LVS (load balancing)
MMutter, Metacity (window managers) · Motif (toolkit) / MUA, MTA, MDA (mail components) · MX (DNS record) · MIME (mail standard) / MapReduce (Hadoop processing)
NNFS (file sharing) · NNTP (newsgroups) · NTP (time sync) · NetBIOS (Samba component) · NS (DNS record)
SSMTP (sending mail) · SMB (Samba protocol) · SNMP (network management) · SSH (remote login) · SOA (DNS record) / SDDM (display manager) / SaaS (cloud model)
FFTP (file transfer) / FDDI (optical dual ring) · Frame Relay (WAN) / FLTK (toolkit)
CCSMA/CD (wired media access) / CIFS (Samba) · CNAME (DNS alias) / CDE (desktop environment)
HHTTP (web) / HPC (high-computation) · HA (high availability) · HDFS (Hadoop storage)
VVDI, VMDK, VHD (virtual disk formats) — VirtualBox, VMware, and Microsoft respectively
  • In particular, not everything starting with X belongs to X Window. X.25 is a communication standard, and Xen is virtualization.
  • Groupings like three Ks (KDE, KWin, KDM) and KVM, or three Gs (GNOME, GTK+, GDM) and Gopher, where "three are from one family and one is left over", show up as the four choices exactly as they are.

Picking the One Different from the Other Three

This is the typical question shape for this subject. You must be able to state what the three have in common first to see the one left over. Try solving them with the middle column covered.

Four choicesThe odd oneWhat the other three have in common
KWin · Xfce · Windowmaker · AfterstepXfceWindow managers (Xfce is a desktop environment)
GDM · SDDM · LightDM · KWinKWinDisplay managers
GTK+ · Qt · FLTK · XCBXCBToolkits (XCB is a low-level library)
HTTP · FTP · SMTP · TCPTCPApplication layer protocols (TCP is transport layer)
X.25 · Frame Relay · ATM · CSMA/CDCSMA/CDWAN transmission technologies (CSMA/CD is a media access method)
10.1.1.1 · 172.20.1.1 · 192.168.1.1 · 172.32.1.1172.32.1.1Private IPs (172 is private only for 16-31)
FTP · NFS · Samba · TELNETTELNETServices for exchanging files
SMB · CIFS · NetBIOS · RPCRPCSamba components (RPC belongs on the NFS side)
A · AAAA · MX · IMAPIMAPDNS records
Xen · KVM · ESXi · VirtualBoxVirtualBoxType 1 hypervisors
Android · Tizen · webOS · iOSiOSLinux-kernel-based operating systems
HPC · HA · load balancing · embeddedEmbeddedTypes of clusters

Subnets — The Reversed Form

If "given the mask, find the host count" is the basic form, "given the host count, find the mask" is the reversed form. From the memorized line 254 · 126 · 62 · 30 · 14 · 6 · 2, choose the smallest box that is at least the required number.

Hosts neededMask to chooseBlockHosts in that boxReasoning
100255.255.255.128 (/25)128126The next box, 62, is not enough
50255.255.255.192 (/26)6462The next box, 30, is not enough
30255.255.255.224 (/27)3230A perfect fit
31255.255.255.192 (/26)646230 is one short, so go up one box
10255.255.255.240 (/28)1614The next box, 6, is not enough
2255.255.255.252 (/30)42A link connecting two devices
  • The trap is the fourth row. Seeing the block size of 32 and reading it as "up to 32 machines" is wrong. The limit is 30, after subtracting the 2 network and broadcast addresses.
  • If asked for the number of subnets, it is 256 ÷ block. For /26, 256 ÷ 64 = 4; for /27, 8. The number of hosts and the number of subnets are such that when one grows, the other shrinks.

Judging Right and Wrong

SentenceVerdictReason
When connected with ssh -X, the X server runs on the remote server✗My PC, which has the screen, is the X server
KDE's toolkit is Qt and its current display manager is SDDM○KDM was the older one
Wayland is the next version of X11✗Not a version but a replacement protocol
A switch decides routes by looking at IP addresses✗A switch is layer 2, MAC. IP is the router
172.20.1.1 is a private IP○Within the range 172.16-172.31
One subnet with 255.255.255.224 can hold 32 hosts✗32 − 2 = 30 hosts
SMTP is used both when a user sends mail and when servers pass it on○POP3 and IMAP are only for fetching
IMAP leaves mail on the server so it can be viewed from several devices○The one that downloads and deletes is POP3
A PTR record is used to find a name from an IP address○Reverse lookup
A DNS server's address is written in /etc/hosts✗/etc/resolv.conf
FTP's control connection uses port 20✗21 is control; 20 is data in active mode
Samba shares files between Unix machines based on RPC✗That is NFS. Samba uses SMB/CIFS with Windows
Heartbeat is how a load balancing cluster distributes requests✗It is the signal for confirming liveness in high availability
KVM is a Type 2 hypervisor installed on top of an operating system✗It is Type 1, where the kernel becomes the hypervisor
VirtualBox can read Microsoft's VHD images○It supports VMDK too
Both Android and iOS are based on the Linux kernel✗iOS is Darwin

Pre-Exam Check

  • I can state the ten ports (21, 22, 23, 25, 53, 80, 110, 143, 443, 631) in both directions: number → service, service → number
  • From the last value of a mask I can immediately state the block and host count, and conversely choose the mask from a host count
  • I can write the first-octet ranges of classes A, B, C, and D and the three private IP ranges
  • I can write the 7 OSI layers in order and place hubs, switches, and routers on the layers
  • I can put three names each into window manager, display manager, and desktop environment
  • I have memorized the GNOME row (GTK+, Mutter, GDM) and the KDE row (Qt, KWin, SDDM) across
  • I can state the direction and difference of SMTP, POP3, and IMAP in one sentence each
  • I know what each DNS record A, AAAA, MX, CNAME, NS, and PTR points to
  • I can contrast NFS and Samba in three boxes: the other OS · protocol · configuration file
  • I know the 3 cluster types, full and paravirtualization, Type 1 and 2, and the four facts about VirtualBox (Oracle, GPL, full virtualization, VMDK/VHD)

After finishing the check, proceed like this.

  • If you get stuck on even one item, go back to that week's Day 5 (comprehensive review). Each weekly review gathered the tables for that area onto a single page.
  • At the exam, solve the questions that ask for values first, quickly, and mark the ones that take effort, such as subnet calculations, to come back to. With 80 questions in 100 minutes, that is a little over a minute per question.

📖 Glossary

  • X server : The side with the screen and input devices. It is the computer the user is sitting at.
  • Display manager : The program that provides the graphical login screen. Its name ends in DM.
  • Subnet mask : The value that separates the network part from the host part.
  • MX record : A DNS record that specifies the server that receives a domain's mail.
  • Samba : Software that shares files with Windows through SMB/CIFS.
  • HA cluster : A cluster configured so the service does not stop even when a failure occurs.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

Which of the following is the desktop environment that uses the GTK+ toolkit in X Window?

Question 2

Which of the following differs in nature from the other three?

Question 3

Which of the following is the OSI layer that uses port numbers and handles end-to-end communication?

Question 4

In a Class C network, when the subnet mask is 255.255.255.240, which of the following is the number of hosts usable in one subnet?

Question 5

Which of the following is the protocol used in common both when a user's composed mail is sent to their own mail server and when that server forwards it to the recipient's server?

Question 6

Which of the following is the DNS record that links a domain name to an IPv6 address?

Question 7

Which of the following is the FTP mode in which the client opens the data connection itself and that is mainly used in firewall environments?

Question 8

Which of the following is the file that configures the behavior of a Samba server?

Question 9

Which of the following is the cluster configured so that several nodes split and process one big computation?

Question 10

Which of the following is the virtualization method that lets a guest operating system run in a virtual machine without being modified?

PreviousComprehensive Mock Exam 1: Linux General + Operation and ManagementWeek 11 · Day 4

Official references

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

On this page

  • Key Takeaways
  • Where Today's Scope Sits in Part 2
  • Final Checklist — Linux Usage
  • Three Things to Carry to the End
  • Three Weeks Overlap in a Single Connection
  • Who Is the Server and Who Is the Client
  • Separating Names with the Same Initial
  • Picking the One Different from the Other Three
  • Subnets — The Reversed Form
  • Judging Right and Wrong
  • Pre-Exam Check
  • Glossary
  • Practice Questions