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
    • 1.The Web and Mail
    • 2.DNS: Names and Addresses
    • 3.Remote Access and File Transfer
    • 4.File Sharing and Old Internet Services
    • 5.Week 10 Review: Internet Services on One Page
  • Week 11
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 10/Day 5

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

Linux Master 2· AssociateWeek 10 · Day 5~20 min read

Day 5 - Week 10 Review: Internet Services on One Page

📌 Key Takeaways

  • Sending is SMTP (25), receiving is POP3 (110) / IMAP (143). Server-to-server relay is also SMTP.
  • POP3 downloads and deletes; IMAP leaves mail on the server.
  • DNS records — A (IPv4) · AAAA (IPv6) · MX (mail) · CNAME (alias) · NS · PTR (reverse).
  • TELNET and SSH are remote access, while FTP, NFS, and Samba are file sharing. Questions mix them and ask you to pick.
  • NFS is between Unix systems (RPC), Samba is with Windows (SMB, CIFS, NetBIOS).

Services on One Page

   Web     HTTP 80 · HTTPS 443       Servers: Apache · Nginx
                                     Browsers: Firefox · Chrome · Lynx (text)
 
   Mail    SMTP 25   sending + server-to-server relay
           POP3 110  download (deleted from server)
           IMAP 143  keep on server and view (multiple devices)
           Components  MUA (user) → MTA (transfer) → MDA (delivery)
                 MTA examples: Sendmail · Postfix
           MIME  specification for carrying Korean text and attachments
 
   DNS     53   name ↔ IP
           Hierarchy  root (.) → TLD (com·kr) → second level → host
           Records A (IPv4) AAAA (IPv6) MX (mail) CNAME (alias) NS PTR (reverse) SOA
           Server  BIND (named)   Lookup: nslookup · dig · host
           Files  resolv.conf (where to ask) · hosts (the answer)
 
   Remote  TELNET 23  plain text — dangerous
           SSH    22  encrypted · public key · tunneling (OpenSSH)
 
   Transfer FTP   21 control / 20 data   active vs passive
                  anonymous account anonymous · bin/ascii mode
           scp · sftp   SSH-based        rsync changed parts only
 
   Sharing NFS    between Unix systems · RPC · /etc/exports
           Samba  with Windows · SMB/CIFS/NetBIOS · smb.conf · smbd/nmbd
 
   Other   DHCP automatic IP · NTP time · SNMP management · LDAP accounts
   Legacy  Gopher (menu search) · Usenet (newsgroups, NNTP) · Archie (FTP search) · IRC (chat)

Grouping by Nature

GroupServices
File sharing/transferFTP · NFS · Samba · SCP · SFTP · rsync
Remote accessTELNET · SSH · rlogin
Information retrievalWWW · Gopher · Archie · WAIS
Messages/bulletin boardsMail · Usenet · IRC
Names/addressesDNS · DHCP

Questions that mix services and ask you to pick the one with a different nature are the main form this week. Learn the table above as a whole.

Practice: Picking "the Odd One Out"

The same word gives a different answer depending on which other four it appears with. First find what the three have in common, then pick the one that falls outside it.

Four choicesOdd one outWhat the three share
SMB · CIFS · NetBIOS · RPCRPCComponents of Samba (RPC belongs to NFS)
FTP · NFS · Samba · TELNETTELNETFile sharing/transfer
TELNET · SSH · rlogin · FTPFTPRemote access
SMTP · POP3 · IMAP · NNTPNNTPMail protocols (NNTP is for newsgroups)
Sendmail · Postfix · qmail · ThunderbirdThunderbirdMTAs (Thunderbird is an MUA)
Lynx · Firefox · Chrome · ApacheApacheWeb browsers (Apache is a web server)
A · MX · CNAME · SMTPSMTPDNS records
nslookup · dig · host · showmountshowmountDNS lookup commands
scp · sftp · rsync · ssh-keygenssh-keygenFile transfer tools
Gopher · Archie · WAIS · IRCIRCInformation retrieval (IRC is chat)
HTTPS · SSH · SFTP · TELNETTELNETThey encrypt
  • TELNET appeared three times in this table. In the second row it is "because it is not file transfer," in the third row it is actually on the grouped side, and in the last row it is "because it does not encrypt." Do not decide the answer from the word alone; find the grouping criterion first.
  • The criterion is usually one of four — what it does (access/transfer/search), counterpart (Unix/Windows), security (plain text/encrypted), or kind (protocol/program/record).

Encrypted Pairs

Plain textEncrypted counterpartPort change
HTTPHTTPS80 → 443
TELNETSSH23 → 22
FTPSFTP (SSH-based) · FTPS (SSL-based)21 → 22 (SFTP)
rcpscp→ 22
SMTPSMTPS25 → 465
POP3POP3S110 → 995
IMAPIMAPS143 → 993
  • SSH alone is the alternative to TELNET, FTP, and rcp. ssh, sftp, and scp all use port 22.
  • Look at where the S is attached in the name. When it comes after, as in HTTPS, POP3S, IMAPS, and FTPS, it is the original protocol wrapped in SSL/TLS, and when it comes before, as in SFTP, it is a separate protocol that runs on top of SSH.

Who Asks and Who Answers — Client and Server

Every service this week is split into the side that requests (client) and the side that waits (server). Sorting which side a program name or file belongs to makes the choices easier to organize.

ServiceServer side (daemon · product)Client side (command · program)
Webhttpd — Apache, NginxFirefox, Lynx, wget, curl
MailSendmail, Postfix, DovecotThunderbird, Evolution, mail
DNSnamed — BINDnslookup, dig, host
Remote accesssshd — OpenSSHssh
File transfervsftpd, ProFTPDftp, sftp, scp
NFSnfsd, rpcbindmount -t nfs, showmount
Sambasmbd, nmbdsmbclient, mount -t cifs
  • Names ending in d are daemons, that is, the server side — httpd, named, sshd, nfsd, smbd. The d is the initial of daemon.
  • Take extra care with cases where the product name and daemon name differ — Apache is httpd, BIND is named, and Samba is smbd and nmbd.
FileWhich side it belongs toWhat goes in it
/etc/resolv.confClientThe DNS server to ask
/etc/hostsClientName ↔ IP
~/.ssh/known_hostsClientKeys of servers connected to
~/.ssh/authorized_keysServerPublic keys allowed to log in
/etc/ssh/sshd_configServerSSH server settings
/etc/exportsServerDirectories to export over NFS
/etc/samba/smb.confServerSamba share settings

TCP or UDP

Transport layerServices
TCPHTTP · HTTPS · SMTP · POP3 · IMAP · SSH · TELNET · FTP · NNTP
UDPDHCP · NTP · SNMP · TFTP
BothDNS — usually UDP, TCP when the response is large or for zone transfers
  • Logging in, receiving files, and exchanging mail must not lose anything, so they use TCP. Most of this week's services fall here.
  • The UDP side is "short question, short answer." Getting an address (DHCP), setting the time (NTP), and asking about device status (SNMP).

Port Number Summary

PortService
20 / 21FTP data / control
22SSH
23TELNET
25SMTP
53DNS
80HTTP
110POP3
143IMAP
443HTTPS
123NTP
161SNMP
631CUPS

Contrasting Confusing Pairs

PairABDeciding criterion
SMTP vs POP3SendingReceivingDirection
POP3 vs IMAPDownload and deleteKeep on serverMulti-device sync
MUA vs MTAUser programServer-to-server transferThe middle letter
A vs MXIPv4 addressMail serverWhat it points to
A vs AAAAIPv4IPv6Address length
Forward vs reverseName → IP (A)IP → name (PTR)Direction
TELNET vs SSHPlain textEncryptedSecurity
TELNET vs FTPRemote accessFile transferPurpose
FTP 20 vs 21DataControlWhat flows
Active vs passiveServer connectsClient connectsFirewall traversal
sftp vs FTPSSSH-basedFTP + SSLUnderlying protocol
NFS vs SambaBetween Unix systems, RPCWith Windows, SMBCounterpart OS
DNS vs DHCPName resolutionAutomatic IP assignmentWhat it does
hosts vs resolv.confHolds the answersServer to askRole

Commonly Missed Points

  1. "Servers exchange mail with POP3" → It is SMTP. POP3 is used only when a user fetches mail.
  2. "IMAP downloads and deletes mail" → That is POP3. IMAP keeps it on the server.
  3. "MX holds a mail address" → It does not hold an address; it points to the mail server.
  4. "AAAA is IPv4" → It is IPv6. A is IPv4.
  5. "FTP uses only one port" → It uses two: 21 (control) and 20 (data).
  6. "You can transfer files with TELNET" → You cannot. It is for remote access only.
  7. "RPC is included in Samba's components" → RPC belongs to NFS.
  8. "Share with Windows using NFS" → For Windows, use Samba.
  9. "sftp and FTPS are the same" → sftp is SSH, FTPS is FTP+SSL, so their foundations differ.
  10. "Gopher is a chat service" → It is menu-based information retrieval. Chat is IRC.

Choosing a Service from a Situation

In this situationChooseDo not choose, and why
A Windows PC and a Linux server share a folderSambaNFS — between Unix/Linux systems
Two Linux servers share /dataNFSSamba — when sharing with Windows
Log in to a remote server and type commandsSSHTELNET — plain text, so dangerous
Safely copy one file to a remote serverscpFTP — does not encrypt
Back up a large directory daily, sending only what changedrsyncscp — sends everything every time
View the same mailbox from a phone and a PCIMAPPOP3 — downloads and deletes from the server
Office PCs get their IPs automaticallyDHCPDNS — only turns names into addresses
Set all servers' clocks to the same timeNTPNNTP — the newsgroup protocol
View web documents without a graphical environmentLynxFirefox — a graphical browser
Check where a domain's mail server isdig domain MXA record — only gives an IP address
  • If the sentence has "Windows," think Samba; "encrypted / securely," think the SSH family; "multiple devices," think IMAP. A single clue word decides the answer.

Values That Appear on the Exam As-Is

ValueWhat it is
25 / 110 / 143SMTP / POP3 / IMAP
20, 21FTP data, control
anonymousAnonymous FTP account name
/etc/exportsNFS share config file
/etc/samba/smb.confSamba config file
smbd / nmbdThe two Samba daemons
NNTPUsenet newsgroup protocol

Next week is the last one. We cover application areas (cloud, big data, embedded) and the overall wrap-up.

📖 Glossary

  • SMTP / POP3 / IMAP : Protocols for sending mail / downloading mail / keeping mail on the server and viewing it.
  • MX record : A DNS record that specifies the server that receives mail for a domain.
  • SSH : A remote access protocol that encrypts communication.
  • FTP active/passive mode : The data connection is opened by the server / opened by the client.
  • NFS : A file sharing system between Unix/Linux systems.
  • Samba : Software that shares files with Windows over SMB/CIFS.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

Which of the following is a protocol whose default behavior is to download mail from the server and then delete the original on the server?

Question 2

Which of the following is a service that differs in nature from the other three?

Question 3

Which of the following is the config file that specifies the directories to share on an NFS server?

Question 4

Which of the following is the DNS record used to specify an alias for a domain name?

Question 5

Which of the following is the mode that must be specified to transfer images or compressed files in FTP without corruption?

Question 6

Which of the following is DNS server software widely used on Linux?

PreviousFile Sharing and Old Internet ServicesWeek 10 · Day 4Next ClusteringWeek 11 · Day 1

Official references

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

On this page

  • Key Takeaways
  • Services on One Page
  • Grouping by Nature
  • Practice: Picking "the Odd One Out"
  • Encrypted Pairs
  • Who Asks and Who Answers — Client and Server
  • TCP or UDP
  • Port Number Summary
  • Contrasting Confusing Pairs
  • Commonly Missed Points
  • Choosing a Service from a Situation
  • Values That Appear on the Exam As-Is
  • Glossary
  • Practice Questions