RSS Amplifier

Modern Samurai · Aug 4, 2026

LinuC Level1 Exam 102 Version 10.0 Practice Quiz (20 Questions)

0
Sign in to vote or save

Modern Samurai · Modern Samurai

| Modern Samurai

This quiz has 20 multiple-choice questions for the LinuC Level1 Exam 102. It covers the main topics from the official objectives, weighted roughly by importance (e.g., more questions on higher-weight areas like user management, scripting, networking, logging and security). It aims for a realistic difficulty. Questions test command knowledge, concepts, configuration files and practical scenarios. Answers and explanations are at the end.

Topic 1.06: Shell And Script

1. Which files are typically sourced for a login shell in Bash? (Select all that apply)
a) ~/.bashrc
b) ~/.bash_profile
c) /etc/profile
d) ~/.bash_logout
e) /etc/bash.bashrc

2. What does the command alias ll='ls -l' accomplish?
a) Creates a permanent system-wide alias
b) Creates a temporary alias for the current shell session
c) Changes the PATH variable
d) Sources the user’s profile

3. In a Bash script, how do you check if a command succeeded before proceeding?
a) if [ $? -eq 0 ]; then ...
b) if [ $! -eq 0 ]; then ...
c) case $? in 0) ...
d) exit 0

4. Which construct allows a script to loop over command-line arguments?
a) for arg in $@; do
b) while [ $# -gt 0 ]; do
c) Both a and b
d) shift only

Topic 1.07: Network Fundamentals

5. Which port is commonly used by SSH?
a) 80
b) 443
c) 22
d) 53

6. What command displays and manages network interfaces, routes, etc., in modern Linux?
a) ifconfig
b) ip
c) route
d) netstat

7. To troubleshoot DNS resolution, which command queries a specific DNS server?
a) ping
b) dig
c) traceroute
d) ss

8. What is a key difference between TCP and UDP?
a) TCP is connectionless; UDP is reliable
b) TCP provides reliable, ordered delivery; UDP is lightweight and best-effort
c) UDP uses handshakes; TCP does not
d) Both are used only for local communication

Topic 1.08: System Management

9. Which command adds a new user and creates their home directory?
a) useradd -m username
b) usermod username
c) passwd username
d) groupadd username

10. To schedule a job to run daily at 2 AM using cron, what entry would you use in a crontab?
a) 0 2 * * * /path/to/script
b) 2 0 * * * /path/to/script
c) @daily /path/to/script
d) Both a and c

11. What file controls which users can use crontab?
a) /etc/cron.allow
b) /etc/passwd
c) /var/spool/cron/
d) /etc/anacrontab

Topic 1.09: Essential System Services

12. Which command sets the system time and can synchronize with NTP?
a) date
b) hwclock
c) timedatectl (on systemd)
d) All of the above

13. What tool manages and queries systemd journal logs?
a) rsyslog
b) journalctl
c) logrotate
d) logger

14. For basic mail aliasing on a host, which file is primarily edited?
a) /etc/postfix/main.cf
b) /etc/aliases
c) ~/.forward
d) /etc/mail.rc

Topic 1.10: Security

15. To find files with SUID bit set, use:
a) find / -perm -4000
b) find / -perm -2000
c) ls -l | grep ^s
d) chmod u+s

16. Which command restricts a user’s processes/resources?
a) ulimit
b) passwd
c) sudo
d) chage

17. For basic SSH key-based authentication setup, which command generates keys?
a) ssh
b) ssh-keygen
c) gpg
d) scp

18. What does /etc/shadow primarily store?
a) Usernames and UIDs
b) Encrypted passwords and aging info
c) Group memberships
d) Login history

Topic 1.11: Open Source Culture + Miscellaneous

19. Which license is known for strong copyleft (derivative works must be open source)?
a) BSD
b) MIT
c) GPL
d) Apache 2.0

20. Which of the following is true about open source software? (Select all that apply)
a) Source code is available
b) Typically comes with no warranty
c) Allows modification and redistribution (per license terms)
d) Always free of charge


Answers And Explanations

1. b, c (and often a/e depending on config). Login shells source global and user profile files.

2. b. Aliases defined this way are session-specific unless added to ~/.bashrc.

3. a. $? holds the exit status of the last command (0 = success).

4. c. Both are common; shift processes arguments sequentially.

5. c. 22/SSH (standard).

6. b. ip command (from iproute2) is the modern replacement.

7. b. dig or host for DNS queries.

8. b. TCP is reliable; UDP is not.

9. a. -m creates home dir from /etc/skel.

10. a (and d). Standard cron syntax; @daily is an extension.

11. a. /etc/cron.allow (and deny files).

12. d. Multiple tools for time management.

13. b. journalctl is key for systemd.

14. b. Then run newaliases.

15. a. -4000 for SUID.

16. a. ulimit sets limits (also in PAM or systemd).

17. b. ssh-keygen.

18. b. Hashed passwords and expiration data.

19. c. GPL.

20. a, b, c. (d is not always true; “free as in speech, not beer”).

Scoring Guide

  • 16-20: Excellent – ready for the exam.
  • 12-15: Good – review weaker topics (use official objectives).
  • Below 12: Study the LinuC/LPI learning materials and practice commands in a Linux environment.

This quiz is representative but not exhaustive. The real exam has 60 questions, emphasizes practical knowledge and weights topics accordingly. For full prep, review the official objectives and practice on a real system. Good luck!

Further Reading

  • 中島, 能和: Linux教科書 LinuCレベル1 Version 10.0対応. 翔泳社, 20258.

The LinuC Series

Article 1: LinuC-1 Exam 101 v10.0 Command Cheat Sheet. https://www.modernsamurai.info/101

Article 2: LinuC-1 Exam 101 v10.0: 60-Question Practice Exam. https://www.modernsamurai.info/lcp60

Article 3: LinuC-1 Exam 101 v10.0: 20-Question Practice Exam. https://www.modernsamurai.info/lcp20

Article 4: LinuC Level1 Exam 102 Version 10.0 Cheat Sheet. https://www.modernsamurai.info/102

Article 5: LinuC Level1 Exam 102 Version 10.0 Practice Quiz (20 Questions). https://www.modernsamurai.info/lcq20

Article 6: LinuC Level1 Exam 102 Version 10.0 Practice Quiz (60 Questions). https://www.modernsamurai.info/lcq60

Article 7: LinuC Level1 Exam 102 Version 10.0 Practice Quiz (60 Questions With Explanations). https://www.modernsamurai.info/lcq60e

Read the original on modernsamurai.info

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.