Advanced Linux filesystem: 50 config files and logs
Deeper Linux files for LPIC-1: profile.d, sudoers.d, systemd units, GRUB config, nsswitch.conf, ld.so.conf, distro logs and /lib/modules. Free flashcards.
Practice now
Study without an account
/lost+found for?Scheduled with the default Askesis timings. Progress is saved in this browser.
All 50 cards
- 1What is
/lost+foundfor?Wherefsckputs recovered files that lost their directory entry after a crash.One at the top of each ext2/3/4 filesystem; normally empty. - 2What is
/usr/share/manfor?The manual pages, one subdirectory per section (man1,man5,man8…). - 3What is
/var/spoolfor?Queues of work waiting to be processed: print jobs, outgoing mail, users’ crontabs.e.g./var/spool/cron(edit crontabs withcrontab -e, never directly) and/var/spool/cups. - 4What is
/etc/profile.dfor?Extra*.shscripts that/etc/profileruns at every login.The tidy place for your own system-wide environment settings. - 5What is
/etc/sudoers.dfor?Extra sudo rule files, included by/etc/sudoers.Edit them withvisudo -f /etc/sudoers.d/NAME. - 6What is
/etc/systemd/systemfor?The administrator’s own and overriding systemd unit files.They take precedence over the packaged units in/usr/lib/systemd/system(/lib/systemd/systemon older Debian). - 7What is
/etc/cron.dailyfor?Scripts that run once a day (siblings:cron.hourly,cron.weekly,cron.monthly).Started by cron throughrun-parts, or by anacron on machines that aren’t always on. - 8What is
/etc/yum.repos.dfor?The.repofiles that define the package repositories for yum/dnf.The Debian counterpart is/etc/apt/sources.listplus/etc/apt/sources.list.d/. - 9What is
/lib/modulesfor?The kernel modules, in one subdirectory per kernel version.The running kernel’s modules are in/lib/modules/$(uname -r)/. - 10What is
/etc/login.defs?Defaults for new accounts: UID and GID ranges, password aging, home directory creation. - 11What is
/etc/shells?The list of valid login shells.chshaccepts only a shell listed here. - 12What is
/proc/mounts?The filesystems mounted right now, as the kernel sees them./etc/mtabis usually a symlink to the same list. - 13What is
/boot/grub/grub.cfg?GRUB 2’s generated boot menu configuration; don’t edit it by hand.RHEL:/boot/grub2/grub.cfg. Regenerate it withgrub-mkconfig -o(grub2-mkconfigon RHEL,update-grubon Debian). - 14What is
/etc/default/grub?The GRUB 2 settings you edit (timeout, default entry, kernel parameters) before regeneratinggrub.cfg. - 15What is
/etc/nsswitch.conf?The order of sources for lookups, e.g.hosts: files dns. - 16What is
/etc/services?Maps service names to port numbers and protocols, e.g.ssh 22/tcp. - 17What is
/etc/ssh/ssh_config?The system-wide configuration of the SSH client,ssh.Per-user client settings go in~/.ssh/config. - 18What is
/etc/ld.so.conf?Extra directories the dynamic linker searches for shared libraries.Plus/etc/ld.so.conf.d/. Runldconfigafter a change to rebuild/etc/ld.so.cache. - 19What is
/etc/localtime?The system time zone: a symlink to a file in/usr/share/zoneinfo.timedatectl set-timezonechanges it. - 20What is
/proc/cmdline?The parameters the running kernel was booted with. - 21What is
/var/log/syslog?The general system log on Debian/Ubuntu.Red Hat-family systems use/var/log/messages. - 22What is
/var/log/messages?The general system log on Red Hat-family systems.Debian/Ubuntu use/var/log/syslog. - 23What is
/var/log/auth.log?Authentication events on Debian/Ubuntu: logins,sudo, SSH.Red Hat-family systems use/var/log/secure. - 24What is
/var/log/secure?Authentication events on Red Hat-family systems: logins,sudo, SSH.Debian/Ubuntu use/var/log/auth.log. - 25What is
/dev/zero?A device that supplies an endless stream of zero bytes when read.e.g.dd if=/dev/zero of=swapfile bs=1M count=1024. - 26Where does
fsckput recovered files that lost their directory entry?/lost+foundOne at the top of each ext2/3/4 filesystem; normally empty. - 27Where are the man pages stored?
/usr/share/man - 28Which directory holds queues of pending work, such as print jobs, outgoing mail and users’ crontabs?
/var/spoole.g./var/spool/cron(edit crontabs withcrontab -e, never directly) and/var/spool/cups. - 29Which directory holds
*.shsnippets that/etc/profileruns at every login?/etc/profile.dThe tidy place for your own system-wide environment settings. - 30Which directory holds extra sudo rule files that
/etc/sudoersincludes?/etc/sudoers.dEdit them withvisudo -f /etc/sudoers.d/NAME. - 31Where does an administrator put custom or overriding systemd unit files?
/etc/systemd/systemThey take precedence over the packaged units in/usr/lib/systemd/system(/lib/systemd/systemon older Debian). - 32Which directory holds the scripts that run once a day?
/etc/cron.dailyStarted by cron throughrun-parts, or by anacron on machines that aren’t always on. - 33On a Red Hat-family system, which directory holds the
.repofiles that define the package repositories?/etc/yum.repos.dThe Debian counterpart is/etc/apt/sources.listplus/etc/apt/sources.list.d/. - 34Where are the kernel modules stored?
/lib/modulesThe running kernel’s modules are in/lib/modules/$(uname -r)/. - 35Which file sets defaults such as UID ranges and password aging for newly created users?
/etc/login.defs - 36Which file lists the valid login shells?
/etc/shellschshaccepts only a shell listed here. - 37Which file shows the kernel’s list of currently mounted filesystems?
/proc/mounts/etc/mtabis usually a symlink to the same list. - 38Which file is GRUB 2’s generated boot menu configuration?
/boot/grub/grub.cfgRHEL:/boot/grub2/grub.cfg. Regenerate it withgrub-mkconfig -o(grub2-mkconfigon RHEL,update-grubon Debian). - 39Which file do you edit to change GRUB 2’s timeout or the kernel parameters?
/etc/default/grub - 40Which file decides whether
/etc/hostsor DNS is consulted first?/etc/nsswitch.conf - 41Which file maps well-known service names to port numbers?
/etc/services - 42Which file configures the SSH client for all users?
/etc/ssh/ssh_configPer-user client settings go in~/.ssh/config. - 43Which file lists extra directories to search for shared libraries?
/etc/ld.so.confPlus/etc/ld.so.conf.d/. Runldconfigafter a change to rebuild/etc/ld.so.cache. - 44Which file sets the system’s time zone?
/etc/localtimetimedatectl set-timezonechanges it. - 45Which file shows the parameters the running kernel was booted with?
/proc/cmdline - 46On Debian/Ubuntu, which file is the main general-purpose system log?
/var/log/syslogRed Hat-family systems use/var/log/messages. - 47On a Red Hat-family system, which file is the main general-purpose system log?
/var/log/messagesDebian/Ubuntu use/var/log/syslog. - 48On Debian/Ubuntu, which log records logins,
sudouse and SSH authentication?/var/log/auth.logRed Hat-family systems use/var/log/secure. - 49On a Red Hat-family system, which log records logins,
sudouse and SSH authentication?/var/log/secureDebian/Ubuntu use/var/log/auth.log. - 50Which device supplies an endless stream of zero bytes, e.g. for
dd?/dev/zeroe.g.dd if=/dev/zero of=swapfile bs=1M count=1024.
Frequently asked questions
Why learn distribution-specific log files?
Because you will meet both. Debian and Ubuntu log to /var/log/syslog and /var/log/auth.log, Red Hat-family systems to /var/log/messages and /var/log/secure, and exams ask about both.
What is a drop-in directory?
A .d directory, such as /etc/sudoers.d or /etc/profile.d, whose files are read alongside the main file. Packages and admins add their own files there instead of editing the main one, so updates don’t overwrite changes.
Is this enough for the LPIC-1 filesystem topics?
Together with the basics and intermediate decks it covers the paths the exam expects you to know. Pair it with the Linux command line deck and hands-on practice in a virtual machine.
More in IT & DevOps
Linux command line
Linux commands and files for sysadmins and LPIC-1 candidates: find and grep, permissions and special bits, fstab, systemd targets, package managers, users, cron and more.
50 cardsLinux filesystem basics
Learn the Linux directory tree: what /etc, /var, /usr, /proc and /dev are for, plus passwd, shadow, fstab and hosts. Free flashcards, no signup.
50 cardsIntermediate Linux filesystem
Linux paths admins use daily: /usr/local, /var/lib, /run, /sys, /etc/skel, sudoers, Bash startup files, SSH keys, resolv.conf and /proc. Free flashcards.
50 cardsBash scripting
Bash scripting flashcards: shebangs, quoting, exit codes, tests, loops, functions, arrays, parameter expansion, redirection, set -euo pipefail and traps.
50 cardsVim
Learn Vim from the keyboard up: modes, motions, operators and text objects, search and :s substitutions, registers, macros, visual mode and windows.
50 cardsNetworking
Computer networking fundamentals: OSI and TCP/IP layers, TCP vs UDP, common port numbers, subnetting and CIDR, DNS, DHCP and ARP, and IPv6 basics.
50 cardsCyber security
Cyber security flashcards: the CIA triad, phishing, XSS, CSRF, SQL injection, MITM, hashing vs encryption, TLS, MFA, least privilege, OWASP and zero trust.
50 cardsDocker
Learn Docker from images and layers to multi-stage builds, volumes, networks and Compose, with the commands and best practices you use daily.
50 cardsKubernetes
Kubernetes fundamentals for developers and CKA or CKAD candidates: Pods, Deployments, Services, storage, probes, resources and scheduling, plus the kubectl commands you use daily.
50 cardsAWS
AWS flashcards: regions and AZs, EC2, S3 storage classes, IAM users, roles and policies, VPC networking, RDS, Lambda, CloudWatch and Route 53.
50 cardsTerraform
Terraform flashcards: HCL, providers, resources, variables and outputs, state and remote backends, plan and apply, modules, count, for_each, drift and import.
50 cards