Intermediate Linux filesystem: 50 paths admins use daily
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.
Practice now
Study without an account
/sys for?Scheduled with the default Askesis timings. Progress is saved in this browser.
All 50 cards
- 1What is
/sysfor?A virtual filesystem (sysfs) that exposes devices, drivers and kernel settings as files.udev uses it to create the device files in/dev. - 2What is
/runfor?Runtime data since the last boot: PID files, sockets, lock files. Emptied at every boot.Added in FHS 3.0;/var/runis now a symlink to it. - 3What is
/srvfor?Data this system serves to others, such as web or FTP sites.Many distributions still put web content in/var/wwwby default. - 4What is
/usr/binfor?Most user commands installed by the distribution’s packages.Not administrative commands: those are in/usr/sbin. - 5What is
/usr/sbinfor?Most system administration commands and daemons installed by packages (useradd,sshd). - 6What is
/usr/libfor?The libraries (and internal program files) for the programs in/usr/binand/usr/sbin. - 7What is
/usr/localfor?Software the administrator compiles or installs by hand, outside the package manager (the third hierarchy).The package manager never touches it./usr/local/binis the place for your own scripts for all users. - 8What is
/usr/sharefor?Architecture-independent data: documentation, man pages, icons, locales, time zones. - 9What is
/var/cachefor?Cached data that can be deleted and regenerated, e.g. downloaded packages (/var/cache/apt). - 10What is
/var/libfor?Programs’ persistent state: package databases, database files.e.g./var/lib/dpkg,/var/lib/rpm,/var/lib/mysql. - 11What is
/var/tmpfor?Temporary files that must survive a reboot.Contrast/tmp, which may be emptied at boot. - 12What is
/etc/skelfor?Template files copied into every new user’s home directory when the account is created.Typically.bashrc,.bash_profile(or.profile) and.bash_logout. - 13What is
/etc/sudoers?The rules for who may run which commands withsudo.Edit it only withvisudo, which checks the syntax before saving. - 14What is
/etc/profile?The system-wide startup script that every login shell runs.It also runs the scripts in/etc/profile.d/. - 15What is
~/.bash_profile?Your personal login-shell startup file, for environment variables set once at login.Only the first that exists of~/.bash_profile,~/.bash_loginand~/.profileis read. - 16What is
~/.bash_history?Your saved command history, written when the shell exits.HISTFILESIZEsets how many lines it keeps. - 17What is
/etc/resolv.conf?The DNS servers to query (nameserverlines) and the search domains.Often generated by systemd-resolved or NetworkManager rather than edited by hand. - 18What is
/etc/ssh/sshd_config?The configuration of the SSH server,sshd.Mind the d:ssh_configis the client. Restartsshdafter editing. - 19What is
~/.ssh/authorized_keys?The public keys allowed to log in to this account.ssh-copy-idappends your key to it on the server. - 20What is
~/.ssh/known_hosts?The host keys of servers you’ve connected to, used to detect an impostor. - 21What is
/etc/crontab?The system-wide crontab, with a user field on each line.Users’ own crontabs (crontab -e) have no user field. - 22What is
/etc/apt/sources.list?The package repositories APT uses on Debian/Ubuntu.More repositories go in/etc/apt/sources.list.d/. - 23What is
/etc/os-release?The distribution’s name and version (NAME,VERSION_ID,PRETTY_NAME). - 24What is
/proc/cpuinfo?Details of each processor: model, cores, flags. - 25What is
/proc/meminfo?Detailed memory statistics: total, free, available, swap.freereads its numbers from here. - 26Which virtual filesystem (sysfs) exposes devices, drivers and kernel objects as files?
/sysudev uses it to create the device files in/dev. - 27Which directory holds runtime data such as PID files and sockets, and is emptied at every boot?
/runAdded in FHS 3.0;/var/runis now a symlink to it. - 28Which directory is meant for the data a system serves, such as web or FTP sites?
/srvMany distributions still put web content in/var/wwwby default. - 29Which directory holds most user commands installed by packages (not just the essential ones)?
/usr/binNot administrative commands: those are in/usr/sbin. - 30Which directory holds most system administration commands and daemons installed by packages?
/usr/sbin - 31Which directory holds the shared libraries for most installed programs?
/usr/lib - 32Where does software go that the administrator compiles or installs by hand, outside the package manager?
/usr/localThe package manager never touches it./usr/local/binis the place for your own scripts for all users. - 33Which directory holds architecture-independent shared data such as man pages, docs and icons?
/usr/share - 34Which directory holds application caches that can be deleted and rebuilt, such as downloaded packages?
/var/cache - 35Which directory holds programs’ persistent state, such as the package manager’s database?
/var/libe.g./var/lib/dpkg,/var/lib/rpm,/var/lib/mysql. - 36Which temporary directory keeps its files across reboots?
/var/tmpContrast/tmp, which may be emptied at boot. - 37Which directory’s contents are copied into a new user’s home directory?
/etc/skelTypically.bashrc,.bash_profile(or.profile) and.bash_logout. - 38Which file defines who may use
sudo, and for which commands?/etc/sudoersEdit it only withvisudo, which checks the syntax before saving. - 39Which system-wide file does every login shell run at startup?
/etc/profileIt also runs the scripts in/etc/profile.d/. - 40Which personal file does a Bash login shell read first, if it exists?
~/.bash_profileOnly the first that exists of~/.bash_profile,~/.bash_loginand~/.profileis read. - 41Which file stores your Bash command history between sessions?
~/.bash_historyHISTFILESIZEsets how many lines it keeps. - 42Which file lists the DNS servers the system queries?
/etc/resolv.confOften generated by systemd-resolved or NetworkManager rather than edited by hand. - 43Which file configures the SSH server?
/etc/ssh/sshd_configMind the d:ssh_configis the client. Restartsshdafter editing. - 44Which file lists the public keys allowed to log in as a user?
~/.ssh/authorized_keysssh-copy-idappends your key to it on the server. - 45Which file stores the host keys of the SSH servers you’ve already connected to?
~/.ssh/known_hosts - 46Which system crontab file has a user field on each line?
/etc/crontabUsers’ own crontabs (crontab -e) have no user field. - 47On Debian/Ubuntu, which file lists the package repositories APT uses?
/etc/apt/sources.listMore repositories go in/etc/apt/sources.list.d/. - 48Which file identifies the distribution and its version?
/etc/os-release - 49Which virtual file shows details about the processors?
/proc/cpuinfo - 50Which virtual file shows detailed memory statistics?
/proc/meminfofreereads its numbers from here.
Frequently asked questions
Is this deck aimed at LPIC-1?
It follows the LPIC-1 objectives on the filesystem hierarchy and system files, but everything in it applies to any Linux distribution you administer.
Which distributions does it cover?
The layout is the same everywhere. Where Debian and Red Hat families differ, such as package sources, the card says so.
Should I do the basics deck first?
If /etc, /var and /usr are already familiar, start here. Otherwise the basics deck covers the top-level directories this one builds on.
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 cardsAdvanced Linux filesystem
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.
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