Text Generation
GGUF
English
linux
sysadmin
devops
bash
systemd
llama.cpp
lm-studio
ollama
qwen3.5
local-llm
arrence
conversational
Instructions to use ArRENCEAI/9b_Linux_Expert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ArRENCEAI/9b_Linux_Expert with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ArRENCEAI/9b_Linux_Expert:Q4_K_M # Run inference directly in the terminal: llama cli -hf ArRENCEAI/9b_Linux_Expert:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ArRENCEAI/9b_Linux_Expert:Q4_K_M # Run inference directly in the terminal: llama cli -hf ArRENCEAI/9b_Linux_Expert:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf ArRENCEAI/9b_Linux_Expert:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf ArRENCEAI/9b_Linux_Expert:Q4_K_M
Use Docker
docker model run hf.co/ArRENCEAI/9b_Linux_Expert:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use ArRENCEAI/9b_Linux_Expert with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ArRENCEAI/9b_Linux_Expert" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ArRENCEAI/9b_Linux_Expert", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ArRENCEAI/9b_Linux_Expert:Q4_K_M
- Ollama
How to use ArRENCEAI/9b_Linux_Expert with Ollama:
ollama run hf.co/ArRENCEAI/9b_Linux_Expert:Q4_K_M
- Unsloth Desktop
- Pi
How to use ArRENCEAI/9b_Linux_Expert with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ArRENCEAI/9b_Linux_Expert:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ArRENCEAI/9b_Linux_Expert:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ArRENCEAI/9b_Linux_Expert with Docker Model Runner:
docker model run hf.co/ArRENCEAI/9b_Linux_Expert:Q4_K_M
- Lemonade
How to use ArRENCEAI/9b_Linux_Expert with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ArRENCEAI/9b_Linux_Expert:Q4_K_M
Run and chat with the model
lemonade run user.9b_Linux_Expert-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use ArRENCEAI/9b_Linux_Expert with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ArRENCEAI/9b_Linux_Expert:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default ArRENCEAI/9b_Linux_Expert:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ArRENCEAI/9b_Linux_Expert with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ArRENCEAI/9b_Linux_Expert:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "ArRENCEAI/9b_Linux_Expert:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download benchmark/recall250/linux_recall_250.jsonl from ArRENCEAI/9b_Linux_Expert: direct link, hf CLI and curl.
- Browser
- Download file 69 kB
-
https://huggingface.co/ArRENCEAI/9b_Linux_Expert/resolve/main/benchmark/recall250/linux_recall_250.jsonl
- Command line
-
hf download hf://ArRENCEAI/9b_Linux_Expert/benchmark/recall250/linux_recall_250.jsonl
-
curl -L -o linux_recall_250.jsonl https://huggingface.co/ArRENCEAI/9b_Linux_Expert/resolve/main/benchmark/recall250/linux_recall_250.jsonl
69 kB
| {"id": "g001", "set": "general", "part": "core", "topic": "permissions", "question": "Which command changes only the group owner of a file?", "grade": {"any": ["\\bchgrp\\b", "\\bchown\\s+:\\S+"]}} | |
| {"id": "g002", "set": "general", "part": "core", "topic": "permissions", "question": "What octal mode gives the owner read, write and execute, the group read and execute, and others no access?", "grade": {"any": ["(^|\\D)0?750(\\D|$)"]}} | |
| {"id": "g003", "set": "general", "part": "core", "topic": "permissions", "question": "Which special permission bit, set on a shared directory like /tmp, stops users from deleting files they do not own? Name it.", "grade": {"any": ["\\bsticky\\b", "\\+t\\b", "\\b1777\\b"]}} | |
| {"id": "g004", "set": "general", "part": "core", "topic": "permissions", "question": "Which command shows the ACL (access control list) entries of a file?", "grade": {"any": ["\\bgetfacl\\b"]}} | |
| {"id": "g005", "set": "general", "part": "core", "topic": "permissions", "question": "Which setfacl option removes all extended ACL entries from a file?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*b", "--remove-all"], "case_sensitive": true}} | |
| {"id": "g006", "set": "general", "part": "core", "topic": "permissions", "question": "Which command lists the attributes (such as immutable or append-only) that chattr sets on a file?", "grade": {"any": ["\\blsattr\\b"]}} | |
| {"id": "g007", "set": "general", "part": "core", "topic": "permissions", "question": "In `ls -l` output, what does an `s` in the owner's execute position mean?", "grade": {"any": ["set-?uid", "\\bsuid\\b", "set[- ]user[- ]id"]}} | |
| {"id": "g008", "set": "general", "part": "core", "topic": "permissions", "question": "Give a find command that lists files with the setuid bit set under /usr.", "grade": {"any": ["-perm\\s+[-/]0?4000\\b", "-perm\\s+[-/]u[+=]s\\b"]}} | |
| {"id": "g009", "set": "general", "part": "core", "topic": "permissions", "question": "What is the usual default umask for root on Linux distributions? Give the octal value.", "grade": {"any": ["(^|\\D)0?022(\\D|$)"]}} | |
| {"id": "g010", "set": "general", "part": "core", "topic": "permissions", "question": "Which command updates a file's access and modification times to now, creating the file if it does not exist?", "grade": {"any": ["\\btouch\\b"]}} | |
| {"id": "g011", "set": "general", "part": "core", "topic": "text processing", "question": "Which grep option prints only the names of files that contain a match?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*l", "--files-with-matches"], "case_sensitive": true}} | |
| {"id": "g012", "set": "general", "part": "core", "topic": "text processing", "question": "Which grep option prints the lines that do NOT match the pattern?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*v", "--invert-match"], "case_sensitive": true}} | |
| {"id": "g013", "set": "general", "part": "core", "topic": "text processing", "question": "In sed, what does the `g` flag at the end of a substitution such as s/a/b/g do?", "grade": {"any": ["\\ball\\b", "\\bevery\\b", "\\bglobal"]}} | |
| {"id": "g014", "set": "general", "part": "core", "topic": "text processing", "question": "Which awk built-in variable holds the number of fields in the current record?", "grade": {"any": ["\\bNF\\b"], "case_sensitive": true}} | |
| {"id": "g015", "set": "general", "part": "core", "topic": "text processing", "question": "Which awk command-line option sets the input field separator?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*F", "\\bFS\\s*="], "case_sensitive": true}} | |
| {"id": "g016", "set": "general", "part": "core", "topic": "text processing", "question": "Which sort option sorts lines by numeric value?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*n", "(^|[\\s'\\\"(=])-[a-zA-Z]*g", "(^|[\\s'\\\"(=])-[a-zA-Z]*h", "--numeric-sort", "--general-numeric-sort", "--human-numeric-sort"], "case_sensitive": true}} | |
| {"id": "g017", "set": "general", "part": "core", "topic": "text processing", "question": "For `uniq` to remove all duplicate lines, how must its input be arranged? One word.", "grade": {"any": ["\\bsort"]}} | |
| {"id": "g018", "set": "general", "part": "core", "topic": "text processing", "question": "Which cut option selects fields (as opposed to bytes or characters)?", "grade": {"any": ["(^|[\\s'\\\"(=])-f", "--fields"], "case_sensitive": true}} | |
| {"id": "g019", "set": "general", "part": "core", "topic": "text processing", "question": "Which tr option deletes the given characters instead of translating them?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*d", "--delete"], "case_sensitive": true}} | |
| {"id": "g020", "set": "general", "part": "core", "topic": "text processing", "question": "Which xargs option sets a replacement string, such as {}, that is replaced by each input item?", "grade": {"any": ["(^|[\\s'\\\"(=])-I", "--replace", "(^|[\\s'\\\"(=])-i\\b"], "case_sensitive": true}} | |
| {"id": "g021", "set": "general", "part": "core", "topic": "processes", "question": "What is the signal number of SIGKILL?", "grade": {"any": ["(^|\\D)9(\\D|$)"]}} | |
| {"id": "g022", "set": "general", "part": "core", "topic": "processes", "question": "Which signal does `kill` send when no signal is specified? Give its name or number.", "grade": {"any": ["\\bTERM\\b", "SIGTERM", "(^|\\D)15(\\D|$)"]}} | |
| {"id": "g023", "set": "general", "part": "core", "topic": "processes", "question": "Which command changes the nice value of a process that is already running?", "grade": {"any": ["\\brenice\\b"]}} | |
| {"id": "g024", "set": "general", "part": "core", "topic": "processes", "question": "What is the range of nice values on Linux? Give the lowest and highest.", "grade": {"all": ["-20", "(^|\\D)19(\\D|$)"]}} | |
| {"id": "g025", "set": "general", "part": "core", "topic": "processes", "question": "Which command prints the PIDs of processes whose name matches a pattern, without the rest of the ps output?", "grade": {"any": ["\\bpgrep\\b", "\\bpidof\\b"]}} | |
| {"id": "g026", "set": "general", "part": "core", "topic": "processes", "question": "In ps output, what does the process state Z mean?", "grade": {"any": ["zombie", "defunct"]}} | |
| {"id": "g027", "set": "general", "part": "core", "topic": "processes", "question": "In ps output, what does the process state D mean?", "grade": {"any": ["uninterruptible"]}} | |
| {"id": "g028", "set": "general", "part": "core", "topic": "processes", "question": "Which command runs another command so that it ignores the hangup signal and keeps running after you log out?", "grade": {"any": ["\\bnohup\\b", "\\bsetsid\\b"]}} | |
| {"id": "g029", "set": "general", "part": "core", "topic": "processes", "question": "Which file under /proc/<pid>/ contains the full command line the process was started with?", "grade": {"any": ["\\bcmdline\\b"]}} | |
| {"id": "g030", "set": "general", "part": "core", "topic": "processes", "question": "Which shell builtin lists the current shell's background and stopped jobs?", "grade": {"any": ["\\bjobs\\b"]}} | |
| {"id": "g031", "set": "general", "part": "core", "topic": "systemd", "question": "Give the single systemctl command that enables nginx.service at boot and starts it immediately.", "grade": {"all": ["\\benable\\b", "--now\\b"]}} | |
| {"id": "g032", "set": "general", "part": "core", "topic": "systemd", "question": "After editing a unit file, which systemctl command makes systemd reload its unit files?", "grade": {"any": ["daemon-reload"]}} | |
| {"id": "g033", "set": "general", "part": "core", "topic": "systemd", "question": "Which systemctl command opens a drop-in override file for a unit in an editor?", "grade": {"any": ["systemctl\\s+(--\\S+\\s+)*edit\\b"]}} | |
| {"id": "g034", "set": "general", "part": "core", "topic": "systemd", "question": "Which Restart= value restarts a service only when it exits uncleanly (non-zero exit code, signal or timeout)?", "grade": {"any": ["on-failure"]}} | |
| {"id": "g035", "set": "general", "part": "core", "topic": "systemd", "question": "Which systemd target corresponds to traditional runlevel 3 (multi-user, no graphical login)?", "grade": {"any": ["multi-user"]}} | |
| {"id": "g036", "set": "general", "part": "core", "topic": "systemd", "question": "Which systemctl command sets the target the system boots into by default?", "grade": {"any": ["set-default"]}} | |
| {"id": "g037", "set": "general", "part": "core", "topic": "systemd", "question": "Which [Unit] directive orders a unit to start after another unit, without making it a requirement?", "grade": {"any": ["\\bAfter\\b"], "case_sensitive": true}} | |
| {"id": "g038", "set": "general", "part": "core", "topic": "systemd", "question": "Which service Type= is meant for traditional daemons whose start command forks and the parent exits?", "grade": {"any": ["\\bforking\\b"]}} | |
| {"id": "g039", "set": "general", "part": "core", "topic": "systemd", "question": "Which command lists the units that took longest to start during boot, slowest first?", "grade": {"any": ["\\bblame\\b"]}} | |
| {"id": "g040", "set": "general", "part": "core", "topic": "systemd", "question": "Which systemctl command lists only the units that are in the failed state?", "grade": {"any": ["--failed", "--state[= ]failed"]}} | |
| {"id": "g041", "set": "general", "part": "core", "topic": "logging", "question": "Which journalctl option keeps printing new log entries as they arrive?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*f", "--follow"], "case_sensitive": true}} | |
| {"id": "g042", "set": "general", "part": "core", "topic": "logging", "question": "Which journalctl option limits output to the current boot?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*b", "--boot"], "case_sensitive": true}} | |
| {"id": "g043", "set": "general", "part": "core", "topic": "logging", "question": "Which journalctl option shows the newest entries first?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*r", "--reverse"], "case_sensitive": true}} | |
| {"id": "g044", "set": "general", "part": "core", "topic": "logging", "question": "Which journalctl option shows only entries from a given time onward, for example the last hour?", "grade": {"any": ["--since", "(^|[\\s'\\\"(=])-[a-zA-Z]*S"], "case_sensitive": true}} | |
| {"id": "g045", "set": "general", "part": "core", "topic": "logging", "question": "Which command-line tool writes a message to the system log from a shell script?", "grade": {"any": ["\\blogger\\b"]}} | |
| {"id": "g046", "set": "general", "part": "core", "topic": "logging", "question": "With journald's default Storage=auto, which directory must exist for logs to persist across reboots? Give the path.", "grade": {"any": ["/var/log/journal\\b"]}} | |
| {"id": "g047", "set": "general", "part": "core", "topic": "logging", "question": "On Debian and Ubuntu, which file does rsyslog write authentication messages (logins, sudo) to by default? Give the path.", "grade": {"any": ["/var/log/auth\\.log"]}} | |
| {"id": "g048", "set": "general", "part": "core", "topic": "logging", "question": "Which journalctl option deletes archived journal files until the journal fits a given size such as 500M?", "grade": {"any": ["--vacuum-size"]}} | |
| {"id": "g049", "set": "general", "part": "core", "topic": "logging", "question": "Which logrotate directive sets how many rotated log files are kept?", "grade": {"any": ["\\brotate\\s+\\d+", "(^|\\s)rotate(\\s|$)"]}} | |
| {"id": "g050", "set": "general", "part": "core", "topic": "logging", "question": "Which dmesg option prints human-readable timestamps?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*T", "(^|[\\s'\\\"(=])-[a-zA-Z]*H", "--ctime", "--human"], "case_sensitive": true}} | |
| {"id": "g051", "set": "general", "part": "core", "topic": "filesystems", "question": "Which command lists block devices as a tree of disks and their partitions?", "grade": {"any": ["\\blsblk\\b"]}} | |
| {"id": "g052", "set": "general", "part": "core", "topic": "filesystems", "question": "Which command prints the UUID and filesystem type of a block device?", "grade": {"any": ["\\bblkid\\b", "lsblk\\s+(-\\S+\\s+)*(-[a-zA-Z]*f|--fs)"]}} | |
| {"id": "g053", "set": "general", "part": "core", "topic": "filesystems", "question": "In /etc/fstab, what does a 0 in the sixth field (fs_passno) mean?", "grade": {"any": ["\\b(not|never|no|skip)\\w*\\b.{0,40}(check|fsck)", "(check|fsck)\\w*.{0,20}\\b(skip\\w*|disabled|not)\\b"]}} | |
| {"id": "g054", "set": "general", "part": "core", "topic": "filesystems", "question": "In /etc/fstab, which fs_passno value should the root filesystem use?", "grade": {"any": ["(^|\\D)1(\\D|$)"]}} | |
| {"id": "g055", "set": "general", "part": "core", "topic": "filesystems", "question": "Which df option shows inode usage instead of block usage?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*i", "--inodes"], "case_sensitive": true}} | |
| {"id": "g056", "set": "general", "part": "core", "topic": "filesystems", "question": "Which du option prints only one total per argument instead of every subdirectory?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*s", "--summarize", "--max-depth[= ]0\\b"], "case_sensitive": true}} | |
| {"id": "g057", "set": "general", "part": "core", "topic": "filesystems", "question": "Which tool grows an ext4 filesystem after its partition or logical volume has been enlarged?", "grade": {"any": ["\\bresize2fs\\b"]}} | |
| {"id": "g058", "set": "general", "part": "core", "topic": "filesystems", "question": "Which tool grows a mounted XFS filesystem?", "grade": {"any": ["\\bxfs_growfs\\b"]}} | |
| {"id": "g059", "set": "general", "part": "core", "topic": "filesystems", "question": "Which tune2fs option lists the contents of an ext4 superblock (mount count, last check time and so on)?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*l", "--list"], "case_sensitive": true}} | |
| {"id": "g060", "set": "general", "part": "core", "topic": "filesystems", "question": "Which file under /proc lists the filesystems that are currently mounted? Give the path.", "grade": {"any": ["/proc/(self/)?mounts\\b", "/proc/(self/)?mountinfo\\b"]}} | |
| {"id": "g061", "set": "general", "part": "core", "topic": "LVM and RAID", "question": "Which command initializes a disk or partition as an LVM physical volume?", "grade": {"any": ["\\bpvcreate\\b"]}} | |
| {"id": "g062", "set": "general", "part": "core", "topic": "LVM and RAID", "question": "Which command adds a physical volume to an existing volume group?", "grade": {"any": ["\\bvgextend\\b"]}} | |
| {"id": "g063", "set": "general", "part": "core", "topic": "LVM and RAID", "question": "Which lvextend option also grows the filesystem on the logical volume in the same command?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*r", "--resizefs"], "case_sensitive": true}} | |
| {"id": "g064", "set": "general", "part": "core", "topic": "LVM and RAID", "question": "Which lvcreate option gives the size in units such as 10G?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*L", "--size"], "case_sensitive": true}} | |
| {"id": "g065", "set": "general", "part": "core", "topic": "LVM and RAID", "question": "Which lvcreate option gives the size in extents or as a percentage such as 100%FREE?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*l", "--extents"], "case_sensitive": true}} | |
| {"id": "g066", "set": "general", "part": "core", "topic": "LVM and RAID", "question": "Which lvcreate option makes the new logical volume a snapshot of an existing one?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*s", "--snapshot"], "case_sensitive": true}} | |
| {"id": "g067", "set": "general", "part": "core", "topic": "LVM and RAID", "question": "Which file shows the live status of Linux software RAID (md) arrays? Give the path.", "grade": {"any": ["/proc/mdstat"]}} | |
| {"id": "g068", "set": "general", "part": "core", "topic": "LVM and RAID", "question": "Which mdadm option prints detailed information about an assembled array such as /dev/md0?", "grade": {"any": ["--detail", "(^|[\\s'\\\"(=])-[a-zA-Z]*D"], "case_sensitive": true}} | |
| {"id": "g069", "set": "general", "part": "core", "topic": "LVM and RAID", "question": "Which RAID level stripes data across disks with no redundancy?", "grade": {"any": ["raid\\s*-?0\\b", "^\\s*0\\s*$", "level\\s*0\\b"]}} | |
| {"id": "g070", "set": "general", "part": "core", "topic": "LVM and RAID", "question": "What is the minimum number of disks needed for RAID 5?", "grade": {"any": ["(^|\\D)3(\\D|$)", "\\bthree\\b"]}} | |
| {"id": "g071", "set": "general", "part": "core", "topic": "networking", "question": "Give the ss command that lists listening TCP sockets with numeric ports and the owning process.", "grade": {"all": ["(^|[\\s'\\\"(=])-[a-zA-Z]*t", "(^|[\\s'\\\"(=])-[a-zA-Z]*l", "(^|[\\s'\\\"(=])-[a-zA-Z]*n", "(^|[\\s'\\\"(=])-[a-zA-Z]*p"], "case_sensitive": true}} | |
| {"id": "g072", "set": "general", "part": "core", "topic": "networking", "question": "Which ip command shows the routing table?", "grade": {"any": ["\\bip\\s+(-\\S+\\s+)*r(o(u(te?)?)?)?\\b"]}} | |
| {"id": "g073", "set": "general", "part": "core", "topic": "networking", "question": "Give the ip command that adds a default route via 192.168.1.1.", "grade": {"any": ["\\bip\\s+r(oute)?\\s+(add|replace)\\s+(default|0\\.0\\.0\\.0/0)\\s+via\\s+192\\.168\\.1\\.1\\b"]}} | |
| {"id": "g074", "set": "general", "part": "core", "topic": "networking", "question": "Which file lists the DNS name servers used by the traditional resolver? Give the path.", "grade": {"any": ["/etc/resolv\\.conf"]}} | |
| {"id": "g075", "set": "general", "part": "core", "topic": "networking", "question": "Which file sets the order in which name lookups consult sources such as files and DNS? Give the path.", "grade": {"any": ["/etc/nsswitch\\.conf"]}} | |
| {"id": "g076", "set": "general", "part": "core", "topic": "networking", "question": "Which dig query option prints only the resolved values (for example just the IP address), one per line?", "grade": {"any": ["\\+short"]}} | |
| {"id": "g077", "set": "general", "part": "core", "topic": "networking", "question": "On a system using systemd-resolved, which command shows the DNS servers in use per interface?", "grade": {"any": ["\\bresolvectl\\b", "systemd-resolve\\s+--status"]}} | |
| {"id": "g078", "set": "general", "part": "core", "topic": "networking", "question": "Which nmcli command lists all NetworkManager connection profiles?", "grade": {"any": ["nmcli\\s+(-\\S+\\s+)*(c|con|conn|connection)(\\s+(show|s))?(\\s|$)"]}} | |
| {"id": "g079", "set": "general", "part": "core", "topic": "networking", "question": "Which TCP port does an SSH server listen on by default?", "grade": {"any": ["(^|\\D)22(\\D|$)"]}} | |
| {"id": "g080", "set": "general", "part": "core", "topic": "networking", "question": "Which ip command shows each network interface's link state and MAC address?", "grade": {"any": ["\\bip\\s+(-\\S+\\s+)*(l|li|lin|link|a|ad|addr|address)\\b"]}} | |
| {"id": "g081", "set": "general", "part": "core", "topic": "firewall", "question": "Which firewall-cmd option makes a change persist across reloads and reboots?", "grade": {"any": ["--permanent"]}} | |
| {"id": "g082", "set": "general", "part": "core", "topic": "firewall", "question": "Which firewall-cmd option applies the permanent configuration to the running firewall?", "grade": {"any": ["--(complete-)?reload"]}} | |
| {"id": "g083", "set": "general", "part": "core", "topic": "firewall", "question": "Which firewall-cmd option shows everything configured for the default zone (services, ports, rules)?", "grade": {"any": ["--list-all\\b"]}} | |
| {"id": "g084", "set": "general", "part": "core", "topic": "firewall", "question": "Give the ufw command that allows incoming SSH connections.", "grade": {"any": ["ufw\\s+allow\\s+(in\\s+)?(ssh|openssh|22(/tcp)?)\\b"]}} | |
| {"id": "g085", "set": "general", "part": "core", "topic": "firewall", "question": "Which ufw command shows the rules with numbers, so a rule can be deleted by its number?", "grade": {"any": ["status\\s+numbered"]}} | |
| {"id": "g086", "set": "general", "part": "core", "topic": "firewall", "question": "In the iptables filter table, which chain handles packets addressed to the local machine itself?", "grade": {"any": ["\\bINPUT\\b"]}} | |
| {"id": "g087", "set": "general", "part": "core", "topic": "firewall", "question": "Which iptables target discards a packet silently, without sending any reply?", "grade": {"any": ["\\bDROP\\b", "^\\s*[Dd]rop\\b"], "case_sensitive": true}} | |
| {"id": "g088", "set": "general", "part": "core", "topic": "firewall", "question": "Which command prints the complete nftables ruleset?", "grade": {"any": ["nft\\s+list\\s+ruleset"]}} | |
| {"id": "g089", "set": "general", "part": "core", "topic": "firewall", "question": "Which iptables option shows addresses and ports numerically instead of resolving names?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*n", "--numeric"], "case_sensitive": true}} | |
| {"id": "g090", "set": "general", "part": "core", "topic": "firewall", "question": "Which command writes the current iptables rules to standard output in a form iptables-restore can load?", "grade": {"any": ["iptables-save"]}} | |
| {"id": "g091", "set": "general", "part": "core", "topic": "SSH", "question": "Which ssh option forwards a local port to a host and port reachable from the server (local port forwarding)?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*L"], "case_sensitive": true}} | |
| {"id": "g092", "set": "general", "part": "core", "topic": "SSH", "question": "Which ssh option opens a dynamic SOCKS proxy on a local port?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*D"], "case_sensitive": true}} | |
| {"id": "g093", "set": "general", "part": "core", "topic": "SSH", "question": "Which helper command installs your public key into a remote account's authorized_keys file?", "grade": {"any": ["ssh-copy-id"]}} | |
| {"id": "g094", "set": "general", "part": "core", "topic": "SSH", "question": "Which ssh-keygen option selects the key type, for example ed25519?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*t"], "case_sensitive": true}} | |
| {"id": "g095", "set": "general", "part": "core", "topic": "SSH", "question": "In ~/.ssh/config, which directive sets the login name for a Host entry?", "grade": {"any": ["\\bUser\\b"], "case_sensitive": true}} | |
| {"id": "g096", "set": "general", "part": "core", "topic": "SSH", "question": "Which ssh option connects through a jump (bastion) host given on the command line?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*J", "ProxyJump"], "case_sensitive": true}} | |
| {"id": "g097", "set": "general", "part": "core", "topic": "SSH", "question": "Which sshd_config directive restricts SSH login to a listed set of user names?", "grade": {"any": ["AllowUsers"]}} | |
| {"id": "g098", "set": "general", "part": "core", "topic": "SSH", "question": "Which command adds a private key to the running ssh-agent?", "grade": {"any": ["\\bssh-add\\b"]}} | |
| {"id": "g099", "set": "general", "part": "core", "topic": "SSH", "question": "Which file in ~/.ssh stores the host keys of servers the client has connected to?", "grade": {"any": ["known_hosts"]}} | |
| {"id": "g100", "set": "general", "part": "core", "topic": "SSH", "question": "Which sshd_config directive sets the TCP port sshd listens on?", "grade": {"any": ["\\bPort\\b"], "case_sensitive": true}} | |
| {"id": "g101", "set": "general", "part": "core", "topic": "users", "question": "Which usermod options add a user to a supplementary group without removing their other groups?", "grade": {"all": ["(^|[\\s'\\\"(=])(-[a-zA-Z]*a|--append)", "(^|[\\s'\\\"(=])(-[a-zA-Z]*G|--groups)"], "case_sensitive": true}} | |
| {"id": "g102", "set": "general", "part": "core", "topic": "users", "question": "Which command locks a user's password so password logins are refused?", "grade": {"any": ["passwd\\s+(-\\S+\\s+)*(-l|--lock)\\b", "usermod\\s+(-\\S+\\s+)*(-L|--lock)\\b"], "case_sensitive": true}} | |
| {"id": "g103", "set": "general", "part": "core", "topic": "users", "question": "Which command shows or changes password aging and expiry settings for a user?", "grade": {"any": ["\\bchage\\b"]}} | |
| {"id": "g104", "set": "general", "part": "core", "topic": "users", "question": "Which file stores users' password hashes? Give the path.", "grade": {"any": ["/etc/shadow\\b"]}} | |
| {"id": "g105", "set": "general", "part": "core", "topic": "users", "question": "Which command should be used to edit /etc/sudoers safely?", "grade": {"any": ["\\bvisudo\\b"]}} | |
| {"id": "g106", "set": "general", "part": "core", "topic": "users", "question": "In /etc/passwd, which field (counting from 1) holds the user's login shell?", "grade": {"any": ["(^|\\D)7(\\D|$)", "\\bseventh\\b", "\\blast\\b"]}} | |
| {"id": "g107", "set": "general", "part": "core", "topic": "users", "question": "Which useradd option creates the user's home directory?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*m", "--create-home"], "case_sensitive": true}} | |
| {"id": "g108", "set": "general", "part": "core", "topic": "users", "question": "Which command creates a new group?", "grade": {"any": ["\\bgroupadd\\b", "\\baddgroup\\b"]}} | |
| {"id": "g109", "set": "general", "part": "core", "topic": "users", "question": "In /etc/sudoers, which tag lets a user run the listed commands without typing a password?", "grade": {"any": ["NOPASSWD"]}} | |
| {"id": "g110", "set": "general", "part": "core", "topic": "users", "question": "Which command switches to another user with a full login shell (their environment loaded)?", "grade": {"any": ["\\bsu\\s+(-|-l|--login)(\\s|$)", "\\bsudo\\s+(-\\S+\\s+)*-[a-zA-Z]*i"]}} | |
| {"id": "g111", "set": "general", "part": "core", "topic": "packages", "question": "Which dpkg option lists the files installed by a package?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*L", "--listfiles"], "case_sensitive": true}} | |
| {"id": "g112", "set": "general", "part": "core", "topic": "packages", "question": "Which dpkg option finds the installed package that owns a given file?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*S", "--search"], "case_sensitive": true}} | |
| {"id": "g113", "set": "general", "part": "core", "topic": "packages", "question": "Which rpm query finds the package that owns a given file?", "grade": {"any": ["rpm\\s+(-\\S+\\s+)*-[a-zA-Z]*q[a-zA-Z]*f", "rpm\\s+(-\\S+\\s+)*-[a-zA-Z]*f[a-zA-Z]*q", "rpm\\s+-q\\s+--file", "\\b(dnf|yum)\\s+(whatprovides|provides)\\b"], "case_sensitive": true}} | |
| {"id": "g114", "set": "general", "part": "core", "topic": "packages", "question": "Which rpm query lists the files in an installed package?", "grade": {"any": ["rpm\\s+(-\\S+\\s+)*-[a-zA-Z]*q[a-zA-Z]*l", "rpm\\s+(-\\S+\\s+)*-[a-zA-Z]*l[a-zA-Z]*q", "rpm\\s+-q\\s+--list"], "case_sensitive": true}} | |
| {"id": "g115", "set": "general", "part": "core", "topic": "packages", "question": "Which apt-mark subcommand stops a package from being upgraded?", "grade": {"any": ["apt-mark\\s+hold", "^\\s*hold\\s*$"]}} | |
| {"id": "g116", "set": "general", "part": "core", "topic": "packages", "question": "Which apt command removes a package along with its configuration files?", "grade": {"any": ["\\bpurge\\b"]}} | |
| {"id": "g117", "set": "general", "part": "core", "topic": "packages", "question": "Which apt command removes automatically installed dependencies that are no longer needed?", "grade": {"any": ["autoremove"]}} | |
| {"id": "g118", "set": "general", "part": "core", "topic": "packages", "question": "Which dnf command shows past package transactions (installs, updates, removals)?", "grade": {"any": ["\\b(dnf|yum)\\s+history\\b"]}} | |
| {"id": "g119", "set": "general", "part": "core", "topic": "packages", "question": "Which apt command refreshes the package lists from the configured repositories?", "grade": {"any": ["\\bapt(-get)?\\s+update\\b"]}} | |
| {"id": "g120", "set": "general", "part": "core", "topic": "packages", "question": "Which directory holds additional APT repository source files on Debian and Ubuntu? Give the path.", "grade": {"any": ["/etc/apt/sources\\.list\\.d"]}} | |
| {"id": "g121", "set": "general", "part": "core", "topic": "scheduling", "question": "In a user crontab line, how many time and date fields come before the command?", "grade": {"any": ["(^|\\D)5(\\D|$)", "\\bfive\\b"]}} | |
| {"id": "g122", "set": "general", "part": "core", "topic": "scheduling", "question": "Write the crontab time fields that run a job every 15 minutes.", "grade": {"any": ["\\*/15\\s+\\*\\s+\\*\\s+\\*\\s+\\*", "0,15,30,45\\s+\\*\\s+\\*\\s+\\*\\s+\\*"]}} | |
| {"id": "g123", "set": "general", "part": "core", "topic": "scheduling", "question": "Write the crontab time fields for a job that runs at 2:30 AM every day.", "grade": {"any": ["(^|\\s)30\\s+0?2\\s+\\*\\s+\\*\\s+\\*"]}} | |
| {"id": "g124", "set": "general", "part": "core", "topic": "scheduling", "question": "Which special crontab string runs a job once when the system starts?", "grade": {"any": ["@reboot"]}} | |
| {"id": "g125", "set": "general", "part": "core", "topic": "scheduling", "question": "In the crontab day-of-week field, which number(s) mean Sunday?", "grade": {"any": ["(^|\\D)0(\\D|$)", "(^|\\D)7(\\D|$)"]}} | |
| {"id": "g126", "set": "general", "part": "core", "topic": "scheduling", "question": "Which command prints the current user's crontab?", "grade": {"any": ["crontab\\s+(-u\\s+\\S+\\s+)?-l\\b"], "case_sensitive": true}} | |
| {"id": "g127", "set": "general", "part": "core", "topic": "scheduling", "question": "Give the path of the system-wide crontab file whose lines include a user name field.", "grade": {"any": ["/etc/crontab\\b"]}} | |
| {"id": "g128", "set": "general", "part": "core", "topic": "scheduling", "question": "Which systemctl command lists timers and when each will next run?", "grade": {"any": ["list-timers"]}} | |
| {"id": "g129", "set": "general", "part": "core", "topic": "scheduling", "question": "Which command checks a systemd calendar expression such as 'Mon *-*-* 09:00' and shows when it next elapses?", "grade": {"any": ["systemd-analyze\\s+calendar"]}} | |
| {"id": "g130", "set": "general", "part": "core", "topic": "scheduling", "question": "Which crontab variable sets the address that cron mails job output to?", "grade": {"any": ["MAILTO"]}} | |
| {"id": "g131", "set": "general", "part": "core", "topic": "shell", "question": "Which bash special parameter holds the exit status of the last command?", "grade": {"any": ["\\$\\?"]}} | |
| {"id": "g132", "set": "general", "part": "core", "topic": "shell", "question": "Which bash special parameter holds the PID of the most recent background command?", "grade": {"any": ["\\$!"]}} | |
| {"id": "g133", "set": "general", "part": "core", "topic": "shell", "question": "Which bash special parameter holds the number of positional arguments?", "grade": {"any": ["\\$#"]}} | |
| {"id": "g134", "set": "general", "part": "core", "topic": "shell", "question": "Write the redirection that sends both stdout and stderr of a command to out.log (just the redirection).", "grade": {"any": [">\\s*out\\.log\\s+2>&1", "&>\\s*out\\.log", ">&\\s*out\\.log"]}} | |
| {"id": "g135", "set": "general", "part": "core", "topic": "shell", "question": "Which set option makes a bash script exit as soon as a command fails?", "grade": {"any": ["set\\s+-[a-zA-Z]*e", "errexit"], "case_sensitive": true}} | |
| {"id": "g136", "set": "general", "part": "core", "topic": "shell", "question": "Which set option prints each command, after expansion, before running it?", "grade": {"any": ["set\\s+-[a-zA-Z]*x", "xtrace"], "case_sensitive": true}} | |
| {"id": "g137", "set": "general", "part": "core", "topic": "shell", "question": "Which test operator checks that a path exists and is a regular file?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*f"], "case_sensitive": true}} | |
| {"id": "g138", "set": "general", "part": "core", "topic": "shell", "question": "Which test operator is true when a string has zero length?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*z"], "case_sensitive": true}} | |
| {"id": "g139", "set": "general", "part": "core", "topic": "shell", "question": "Which file in the home directory does bash read for interactive non-login shells?", "grade": {"any": ["\\.bashrc"]}} | |
| {"id": "g140", "set": "general", "part": "core", "topic": "shell", "question": "Which bash builtin makes a variable available to child processes?", "grade": {"any": ["\\bexport\\b", "declare\\s+-[a-zA-Z]*x"]}} | |
| {"id": "g141", "set": "general", "part": "core", "topic": "archives", "question": "Give the tar command that creates a gzip-compressed archive backup.tar.gz of the directory data/.", "grade": {"any": ["tar\\s+-?[a-zA-Z]*c[a-zA-Z]*z", "tar\\s+-?[a-zA-Z]*z[a-zA-Z]*c", "--create\\b.*(--gzip|\\s-z\\b)", "(--gzip|\\s-z\\b).*--create"], "case_sensitive": true}} | |
| {"id": "g142", "set": "general", "part": "core", "topic": "archives", "question": "Which tar option lists an archive's contents without extracting it?", "grade": {"any": ["tar\\s+-?[a-zA-Z]*t", "--list"], "case_sensitive": true}} | |
| {"id": "g143", "set": "general", "part": "core", "topic": "archives", "question": "Which tar option selects xz compression?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*J", "--xz", "tar\\s+-?[a-zA-Z]*J"], "case_sensitive": true}} | |
| {"id": "g144", "set": "general", "part": "core", "topic": "archives", "question": "Which tar option changes to another directory, such as /opt, before extracting?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*C", "--directory"], "case_sensitive": true}} | |
| {"id": "g145", "set": "general", "part": "core", "topic": "archives", "question": "Which gzip option keeps the original file instead of deleting it after compression?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*k", "--keep", "(^|[\\s'\\\"(=])-[a-zA-Z]*c", "--stdout"], "case_sensitive": true}} | |
| {"id": "g146", "set": "general", "part": "core", "topic": "archives", "question": "Which rsync option enables archive mode (recursive, preserving permissions, times, symlinks and more)?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*a", "--archive"], "case_sensitive": true}} | |
| {"id": "g147", "set": "general", "part": "core", "topic": "archives", "question": "Which rsync option deletes files at the destination that no longer exist at the source?", "grade": {"any": ["--delete\\b"]}} | |
| {"id": "g148", "set": "general", "part": "core", "topic": "archives", "question": "Which rsync option shows what would be transferred without changing anything?", "grade": {"any": ["--dry-run", "(^|[\\s'\\\"(=])-[a-zA-Z]*n"], "case_sensitive": true}} | |
| {"id": "g149", "set": "general", "part": "core", "topic": "archives", "question": "What does a trailing slash on the source in `rsync -a src/ dest/` change? Answer briefly.", "grade": {"any": ["content"], "reject": ["\\bno difference\\b"]}} | |
| {"id": "g150", "set": "general", "part": "core", "topic": "archives", "question": "Which scp option copies directories recursively?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*r"], "case_sensitive": true}} | |
| {"id": "g151", "set": "general", "part": "core", "topic": "kernel", "question": "Which command sets a kernel parameter at runtime, for example net.ipv4.ip_forward=1?", "grade": {"any": ["\\bsysctl\\b.*\\b[a-z0-9_]+\\.[a-z0-9_.]+=\\S+", "sysctl\\s+(-\\S+\\s+)*-[a-zA-Z]*w", ">\\s*/proc/sys/"]}} | |
| {"id": "g152", "set": "general", "part": "core", "topic": "kernel", "question": "Which directory holds drop-in files for persistent sysctl settings? Give the path.", "grade": {"any": ["/etc/sysctl\\.d"]}} | |
| {"id": "g153", "set": "general", "part": "core", "topic": "kernel", "question": "Which sysctl option loads settings from all the system configuration directories?", "grade": {"any": ["--system"]}} | |
| {"id": "g154", "set": "general", "part": "core", "topic": "kernel", "question": "Which command loads a kernel module and its dependencies?", "grade": {"any": ["\\bmodprobe\\b"]}} | |
| {"id": "g155", "set": "general", "part": "core", "topic": "kernel", "question": "Which command lists the currently loaded kernel modules?", "grade": {"any": ["\\blsmod\\b"]}} | |
| {"id": "g156", "set": "general", "part": "core", "topic": "kernel", "question": "Which directory holds .conf files used to blacklist kernel modules? Give the path.", "grade": {"any": ["/etc/modprobe\\.d"]}} | |
| {"id": "g157", "set": "general", "part": "core", "topic": "kernel", "question": "Which command prints only the running kernel's release, such as 6.8.0-45-generic?", "grade": {"any": ["uname\\s+(-\\S+\\s+)*-[a-zA-Z]*r", "uname\\s+--kernel-release"], "case_sensitive": true}} | |
| {"id": "g158", "set": "general", "part": "core", "topic": "kernel", "question": "Which file shows the command line the kernel was booted with? Give the path.", "grade": {"any": ["/proc/cmdline"]}} | |
| {"id": "g159", "set": "general", "part": "core", "topic": "kernel", "question": "Which sysctl parameter controls how willing the kernel is to swap out memory?", "grade": {"any": ["swappiness"]}} | |
| {"id": "g160", "set": "general", "part": "core", "topic": "kernel", "question": "Which file do you write 1, 2 or 3 to in order to drop the kernel's page cache and/or dentries and inodes? Give the path.", "grade": {"any": ["/proc/sys/vm/drop_caches"]}} | |
| {"id": "g161", "set": "general", "part": "core", "topic": "boot", "question": "Which file holds GRUB settings such as GRUB_TIMEOUT and GRUB_CMDLINE_LINUX? Give the path.", "grade": {"any": ["/etc/default/grub\\b"]}} | |
| {"id": "g162", "set": "general", "part": "core", "topic": "boot", "question": "On Debian and Ubuntu, which command regenerates grub.cfg after you change the GRUB settings?", "grade": {"any": ["update-grub", "grub2?-mkconfig\\s+(-\\S+\\s+)*-o"]}} | |
| {"id": "g163", "set": "general", "part": "core", "topic": "boot", "question": "On RHEL and Fedora, which tool rebuilds the initramfs?", "grade": {"any": ["\\bdracut\\b"]}} | |
| {"id": "g164", "set": "general", "part": "core", "topic": "boot", "question": "On Debian and Ubuntu, which command updates the initramfs of the installed kernel?", "grade": {"any": ["update-initramfs"]}} | |
| {"id": "g165", "set": "general", "part": "core", "topic": "boot", "question": "Which kernel command-line parameter boots a systemd system into rescue mode?", "grade": {"any": ["systemd\\.unit=rescue(\\.target)?", "\\brescue\\b", "\\bsingle\\b"]}} | |
| {"id": "g166", "set": "general", "part": "core", "topic": "boot", "question": "Which systemd target gives the most minimal shell, with only the root filesystem mounted read-only?", "grade": {"any": ["emergency"]}} | |
| {"id": "g167", "set": "general", "part": "core", "topic": "boot", "question": "Which journalctl option selects the previous boot's log? Give the option with its argument.", "grade": {"any": ["-b\\s*-1\\b", "--boot[= ]-1\\b"]}} | |
| {"id": "g168", "set": "general", "part": "core", "topic": "boot", "question": "Which journalctl option lists the boots recorded in the journal?", "grade": {"any": ["--list-boots"]}} | |
| {"id": "g169", "set": "general", "part": "core", "topic": "boot", "question": "In which directory do most distributions keep the kernel image and initramfs files? Give the path.", "grade": {"any": ["(^|\\s)/boot/?(\\s|$|\\W)"]}} | |
| {"id": "g170", "set": "general", "part": "core", "topic": "boot", "question": "Which command shows how much time the last boot spent in the kernel, initrd and userspace?", "grade": {"any": ["systemd-analyze\\s+time", "^\\s*systemd-analyze\\s*$"]}} | |
| {"id": "g171", "set": "general", "part": "core", "topic": "performance", "question": "The three load averages shown by uptime cover which time windows?", "grade": {"all": ["(^|\\D)1(\\D|$)", "(^|\\D)5(\\D|$)", "(^|\\D)15(\\D|$)"]}} | |
| {"id": "g172", "set": "general", "part": "core", "topic": "performance", "question": "Give the free command that shows memory usage in human-readable units.", "grade": {"any": ["free\\s+-[a-zA-Z]*h", "free\\s+--human"], "case_sensitive": true}} | |
| {"id": "g173", "set": "general", "part": "core", "topic": "performance", "question": "Which file shows detailed memory statistics such as MemAvailable and Cached? Give the path.", "grade": {"any": ["/proc/meminfo"]}} | |
| {"id": "g174", "set": "general", "part": "core", "topic": "performance", "question": "Which command prints the number of processing units available to the current process?", "grade": {"any": ["\\bnproc\\b", "_NPROCESSORS_ONLN"]}} | |
| {"id": "g175", "set": "general", "part": "core", "topic": "performance", "question": "Give the iostat command that shows extended per-device statistics such as %util and await.", "grade": {"any": ["iostat\\s+(-\\S+\\s+)*-[a-zA-Z]*x"], "case_sensitive": true}} | |
| {"id": "g176", "set": "general", "part": "core", "topic": "performance", "question": "In vmstat output, which CPU column shows time spent waiting for I/O?", "grade": {"any": ["\\bwa\\b"]}} | |
| {"id": "g177", "set": "general", "part": "core", "topic": "performance", "question": "In interactive top, which key sorts processes by memory usage?", "grade": {"any": ["\\bM\\b", "[Ss]hift\\s*\\+?\\s*[Mm]\\b"], "case_sensitive": true}} | |
| {"id": "g178", "set": "general", "part": "core", "topic": "performance", "question": "Give the lsof command that shows which process is using TCP port 80.", "grade": {"any": ["lsof\\s+(-\\S+\\s+)*-i\\s*(tcp)?:80\\b"]}} | |
| {"id": "g179", "set": "general", "part": "core", "topic": "performance", "question": "Which top-like tool shows disk I/O per process?", "grade": {"any": ["\\biotop\\b", "pidstat\\s+(-\\S+\\s+)*-[a-zA-Z]*d"]}} | |
| {"id": "g180", "set": "general", "part": "core", "topic": "performance", "question": "Which sar option reports CPU utilization?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*u"], "case_sensitive": true}} | |
| {"id": "g181", "set": "general", "part": "core", "topic": "security", "question": "Which command prints the current SELinux mode (Enforcing, Permissive or Disabled)?", "grade": {"any": ["\\bgetenforce\\b", "\\bsestatus\\b"]}} | |
| {"id": "g182", "set": "general", "part": "core", "topic": "security", "question": "Which command resets files to their default SELinux security contexts?", "grade": {"any": ["\\brestorecon\\b"]}} | |
| {"id": "g183", "set": "general", "part": "core", "topic": "security", "question": "Which ls option shows files' SELinux security contexts?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*Z", "--context"], "case_sensitive": true}} | |
| {"id": "g184", "set": "general", "part": "core", "topic": "security", "question": "Which semanage subcommand defines a persistent SELinux file-context rule for a path?", "grade": {"any": ["semanage\\s+fcontext", "^\\s*fcontext\\s*$"]}} | |
| {"id": "g185", "set": "general", "part": "core", "topic": "security", "question": "Give the command that turns on the SELinux boolean httpd_can_network_connect so it survives reboots.", "grade": {"all": ["setsebool", "(^|\\s)-P\\b"], "case_sensitive": true}} | |
| {"id": "g186", "set": "general", "part": "core", "topic": "security", "question": "Which file sets the SELinux mode used at boot? Give the path.", "grade": {"any": ["/etc/selinux/config", "/etc/sysconfig/selinux"]}} | |
| {"id": "g187", "set": "general", "part": "core", "topic": "security", "question": "Which command switches an AppArmor profile to complain mode?", "grade": {"any": ["aa-complain"]}} | |
| {"id": "g188", "set": "general", "part": "core", "topic": "security", "question": "Which command lists loaded AppArmor profiles and the mode of each?", "grade": {"any": ["aa-status", "apparmor_status"]}} | |
| {"id": "g189", "set": "general", "part": "core", "topic": "security", "question": "Which auditd tool searches the audit log for events by type, key or user?", "grade": {"any": ["\\bausearch\\b"]}} | |
| {"id": "g190", "set": "general", "part": "core", "topic": "security", "question": "Give the fail2ban command that shows the sshd jail's status, including banned IPs.", "grade": {"any": ["fail2ban-client\\s+status\\s+sshd"]}} | |
| {"id": "g191", "set": "general", "part": "core", "topic": "time and misc", "question": "Which command sets the system time zone on a systemd system, for example to Europe/Berlin?", "grade": {"any": ["timedatectl\\s+set-timezone"]}} | |
| {"id": "g192", "set": "general", "part": "core", "topic": "time and misc", "question": "Which command sets the hostname persistently on a systemd system?", "grade": {"any": ["hostnamectl\\s+(set-)?hostname"]}} | |
| {"id": "g193", "set": "general", "part": "core", "topic": "time and misc", "question": "Which chronyc command lists the time sources and their state?", "grade": {"any": ["chronyc\\s+(-\\S+\\s+)*sources"]}} | |
| {"id": "g194", "set": "general", "part": "core", "topic": "time and misc", "question": "Which find test matches files modified within the last 24 hours?", "grade": {"any": ["-mtime\\s+-1\\b", "-mtime\\s+0\\b", "-mmin\\s+-1440\\b"]}} | |
| {"id": "g195", "set": "general", "part": "core", "topic": "time and misc", "question": "Which find option limits how many directory levels it descends?", "grade": {"any": ["-maxdepth"]}} | |
| {"id": "g196", "set": "general", "part": "core", "topic": "time and misc", "question": "With find -exec, what ending makes it pass many found files to one command run instead of running it once per file?", "grade": {"any": ["\\{\\}\\s*\\\\?\\+", "(^|\\s)\\+(\\s|$)"]}} | |
| {"id": "g197", "set": "general", "part": "core", "topic": "time and misc", "question": "Which ln option creates a symbolic link instead of a hard link?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*s", "--symbolic"], "case_sensitive": true}} | |
| {"id": "g198", "set": "general", "part": "core", "topic": "time and misc", "question": "Which command shows a file's inode number, size, permissions and access, modify and change times in one listing?", "grade": {"any": ["\\bstat\\b"]}} | |
| {"id": "g199", "set": "general", "part": "core", "topic": "time and misc", "question": "Give the date format argument that prints the date as YYYY-MM-DD.", "grade": {"any": ["\\+%F", "\\+%Y-%m-%d"], "case_sensitive": true}} | |
| {"id": "g200", "set": "general", "part": "core", "topic": "time and misc", "question": "Which command shows the most recent login time of every user account?", "grade": {"any": ["\\blastlog2?\\b"]}} | |
| {"id": "g201", "set": "general", "part": "hard", "topic": "permissions", "question": "Give the four-digit octal mode that sets the setgid bit together with rwxr-x--- on a directory.", "grade": {"any": ["(^|\\D)2750(\\D|$)"]}} | |
| {"id": "g202", "set": "general", "part": "hard", "topic": "permissions", "question": "In a POSIX ACL, which entry caps the effective permissions of named users, named groups and the owning group?", "grade": {"any": ["\\bmask\\b"]}} | |
| {"id": "g203", "set": "general", "part": "hard", "topic": "permissions", "question": "Which chattr attribute, in +x form, makes a file append-only?", "grade": {"any": ["\\+a\\b", "^\\s*a\\s*$"], "case_sensitive": true}} | |
| {"id": "g204", "set": "general", "part": "hard", "topic": "text processing", "question": "Which grep option prints a given number of lines of context after each match?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*A", "--after-context"], "case_sensitive": true}} | |
| {"id": "g205", "set": "general", "part": "hard", "topic": "text processing", "question": "In awk, which built-in variable holds the current record number counted across all input files (not reset per file)?", "grade": {"any": ["\\bNR\\b"], "case_sensitive": true}} | |
| {"id": "g206", "set": "general", "part": "hard", "topic": "processes", "question": "What is the signal number of SIGHUP?", "grade": {"any": ["(^|\\D)1(\\D|$)"]}} | |
| {"id": "g207", "set": "general", "part": "hard", "topic": "processes", "question": "Which file under /proc/<pid>/ lists the process's memory mappings (address ranges, permissions, mapped files)?", "grade": {"any": ["\\bs?maps\\b"]}} | |
| {"id": "g208", "set": "general", "part": "hard", "topic": "systemd", "question": "Which [Service] directive gives a service its own private /tmp and /var/tmp?", "grade": {"any": ["PrivateTmp"]}} | |
| {"id": "g209", "set": "general", "part": "hard", "topic": "systemd", "question": "Which systemctl command prints a unit file together with all of its drop-in overrides?", "grade": {"any": ["systemctl\\s+(--\\S+\\s+)*cat\\b"]}} | |
| {"id": "g210", "set": "general", "part": "hard", "topic": "systemd", "question": "Which [Unit] directive names units to activate when this unit enters the failed state?", "grade": {"any": ["OnFailure"]}} | |
| {"id": "g211", "set": "general", "part": "hard", "topic": "logging", "question": "Which journalctl option filters entries by syslog identifier (the program's tag), for example sshd?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*t", "--identifier"], "case_sensitive": true}} | |
| {"id": "g212", "set": "general", "part": "hard", "topic": "logging", "question": "Which journald.conf setting forwards journal messages to a traditional syslog daemon?", "grade": {"any": ["ForwardToSyslog"]}} | |
| {"id": "g213", "set": "general", "part": "hard", "topic": "filesystems", "question": "Which mount option forbids executing binaries stored on the filesystem?", "grade": {"any": ["\\bnoexec\\b"]}} | |
| {"id": "g214", "set": "general", "part": "hard", "topic": "filesystems", "question": "Which tune2fs option sets the percentage of blocks reserved for the super-user?", "grade": {"any": ["(^|[\\s'\\\"(=])-m\\b"], "case_sensitive": true}} | |
| {"id": "g215", "set": "general", "part": "hard", "topic": "filesystems", "question": "Which mkfs.ext4 option sets the size of each inode in bytes (not the bytes-per-inode ratio)?", "grade": {"any": ["(^|[\\s'\\\"(=])-I\\b"], "case_sensitive": true}} | |
| {"id": "g216", "set": "general", "part": "hard", "topic": "LVM and RAID", "question": "Which lvconvert option merges a snapshot back into its origin logical volume?", "grade": {"any": ["--merge(snapshot)?\\b"]}} | |
| {"id": "g217", "set": "general", "part": "hard", "topic": "LVM and RAID", "question": "Which mdadm option marks a member device of an array as faulty?", "grade": {"any": ["--fail\\b", "mdadm\\s+(\\S+\\s+)*-f\\b"], "case_sensitive": true}} | |
| {"id": "g218", "set": "general", "part": "hard", "topic": "LVM and RAID", "question": "Which command moves allocated physical extents off one physical volume onto others in the same volume group?", "grade": {"any": ["\\bpvmove\\b"]}} | |
| {"id": "g219", "set": "general", "part": "hard", "topic": "networking", "question": "Which ip subcommand shows the neighbour (ARP) table?", "grade": {"any": ["\\bip\\s+(-\\S+\\s+)*n(e(i(gh(bou?r)?)?)?)?\\b"]}} | |
| {"id": "g220", "set": "general", "part": "hard", "topic": "networking", "question": "Which file maps service names such as ssh or http to port numbers? Give the path.", "grade": {"any": ["/etc/services\\b"]}} | |
| {"id": "g221", "set": "general", "part": "hard", "topic": "firewall", "question": "Which iptables match module lets a rule accept packets of already established connections? Give the module name used with -m.", "grade": {"any": ["\\bconntrack\\b", "-m\\s+state\\b", "^\\s*state\\s*$", "--ctstate"]}} | |
| {"id": "g222", "set": "general", "part": "hard", "topic": "firewall", "question": "Which firewall-cmd option adds a rich rule?", "grade": {"any": ["--add-rich-rule"]}} | |
| {"id": "g223", "set": "general", "part": "hard", "topic": "SSH", "question": "Which sshd_config directive sets how often, in seconds, the server sends keepalive messages through the encrypted channel?", "grade": {"any": ["ClientAliveInterval"]}} | |
| {"id": "g224", "set": "general", "part": "hard", "topic": "SSH", "question": "Which ssh_config option lets several sessions to the same host share one network connection?", "grade": {"any": ["ControlMaster", "ControlPersist"]}} | |
| {"id": "g225", "set": "general", "part": "hard", "topic": "SSH", "question": "Which ssh-keygen option removes all keys belonging to a host from known_hosts?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*R"], "case_sensitive": true}} | |
| {"id": "g226", "set": "general", "part": "hard", "topic": "users", "question": "Which /etc/login.defs setting sets the maximum number of days a password may be used?", "grade": {"any": ["PASS_MAX_DAYS"]}} | |
| {"id": "g227", "set": "general", "part": "hard", "topic": "users", "question": "Which file defines the subordinate user ID ranges used by rootless containers? Give the path.", "grade": {"any": ["/etc/subuid\\b"]}} | |
| {"id": "g228", "set": "general", "part": "hard", "topic": "packages", "question": "On Debian and Ubuntu, which command re-runs an installed package's configuration questions?", "grade": {"any": ["dpkg-reconfigure"]}} | |
| {"id": "g229", "set": "general", "part": "hard", "topic": "packages", "question": "Which apt-cache subcommand shows a package's installed and candidate versions and the priority of each source?", "grade": {"any": ["\\bpolicy\\b"]}} | |
| {"id": "g230", "set": "general", "part": "hard", "topic": "packages", "question": "Which directory holds APT pinning (package priority) files? Give the path.", "grade": {"any": ["/etc/apt/preferences\\.d", "/etc/apt/preferences\\b"]}} | |
| {"id": "g231", "set": "general", "part": "hard", "topic": "scheduling", "question": "In a systemd .timer unit, which setting makes a run that was missed while the machine was off happen at the next boot?", "grade": {"any": ["\\bPersistent\\b"]}} | |
| {"id": "g232", "set": "general", "part": "hard", "topic": "scheduling", "question": "In a crontab command field, what does an unescaped % character do?", "grade": {"any": ["newline", "new line", "standard input", "\\bstdin\\b"]}} | |
| {"id": "g233", "set": "general", "part": "hard", "topic": "shell", "question": "Which bash option makes a pipeline fail if any command in it fails, not just the last one?", "grade": {"any": ["pipefail"]}} | |
| {"id": "g234", "set": "general", "part": "hard", "topic": "shell", "question": "Write the bash parameter expansion that gives $var's value, or the word default if var is unset or empty.", "grade": {"any": ["\\$\\{var:[-=]default\\}"]}} | |
| {"id": "g235", "set": "general", "part": "hard", "topic": "shell", "question": "Which bash builtin runs a command when the script exits or receives a given signal?", "grade": {"any": ["\\btrap\\b"]}} | |
| {"id": "g236", "set": "general", "part": "hard", "topic": "archives", "question": "Which rsync option preserves hard links?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*H", "--hard-links"], "case_sensitive": true}} | |
| {"id": "g237", "set": "general", "part": "hard", "topic": "archives", "question": "Which tar option skips files that match a pattern?", "grade": {"any": ["--exclude\\b", "--exclude-from", "(^|[\\s'\\\"(=])-[a-zA-Z]*X"], "case_sensitive": true}} | |
| {"id": "g238", "set": "general", "part": "hard", "topic": "kernel", "question": "Which sysctl parameter sets the system-wide maximum number of open file handles?", "grade": {"any": ["file-max"]}} | |
| {"id": "g239", "set": "general", "part": "hard", "topic": "kernel", "question": "Which modprobe option unloads a module?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*r", "--remove"], "case_sensitive": true}} | |
| {"id": "g240", "set": "general", "part": "hard", "topic": "kernel", "question": "Which directory lists kernel modules for systemd to load at boot? Give the path.", "grade": {"any": ["/etc/modules-load\\.d"]}} | |
| {"id": "g241", "set": "general", "part": "hard", "topic": "boot", "question": "Which kernel command-line parameter mounts the root filesystem read-only at first?", "grade": {"any": ["(^|\\s)ro(\\s|$)"]}} | |
| {"id": "g242", "set": "general", "part": "hard", "topic": "boot", "question": "Which /etc/default/grub variable adds kernel parameters to normal boot entries only, not to recovery entries?", "grade": {"any": ["GRUB_CMDLINE_LINUX_DEFAULT"]}} | |
| {"id": "g243", "set": "general", "part": "hard", "topic": "performance", "question": "Which two vmstat columns show memory swapped in from and out to disk per second?", "grade": {"all": ["\\bsi\\b", "\\bso\\b"]}} | |
| {"id": "g244", "set": "general", "part": "hard", "topic": "performance", "question": "Which pidstat option reports per-process memory usage such as page faults and RSS?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*r"], "case_sensitive": true}} | |
| {"id": "g245", "set": "general", "part": "hard", "topic": "performance", "question": "Which file shows how many interrupts each CPU has handled, per IRQ? Give the path.", "grade": {"any": ["/proc/interrupts"]}} | |
| {"id": "g246", "set": "general", "part": "hard", "topic": "security", "question": "Which tool reads SELinux AVC denials from the audit log and explains why each was denied?", "grade": {"any": ["audit2why", "\\bsealert\\b"]}} | |
| {"id": "g247", "set": "general", "part": "hard", "topic": "security", "question": "Which auditctl option sets a watch on a file such as /etc/passwd?", "grade": {"any": ["(^|[\\s'\\\"(=])-[a-zA-Z]*w"], "case_sensitive": true}} | |
| {"id": "g248", "set": "general", "part": "hard", "topic": "security", "question": "Which fail2ban jail setting sets how long an offending IP stays banned?", "grade": {"any": ["bantime"]}} | |
| {"id": "g249", "set": "general", "part": "hard", "topic": "time and misc", "question": "Give the GNU date command that prints the Unix timestamp 1700000000 as a readable date.", "grade": {"any": ["date\\s+(-\\S+\\s+)*(-d|--date)[= ]?\\s*'?@1700000000"]}} | |
| {"id": "g250", "set": "general", "part": "hard", "topic": "time and misc", "question": "Which chronyc command steps the clock to the correct time immediately instead of slewing it gradually?", "grade": {"any": ["makestep"]}} | |
| {"id": "q01", "set": "showcase", "topic": "fstab", "question": "In /etc/fstab, which mount options does the `defaults` keyword stand for? List them.", "grade": {"all": ["\\brw\\b", "\\bsuid\\b", "\\bdev\\b", "\\bexec\\b", "\\bauto\\b", "\\bnouser\\b", "\\basync\\b"], "reject": ["\\bnoauto\\b", "\\bnofail\\b", "\\buser\\b", "\\bnosuid\\b", "\\bnodev\\b", "\\bnoexec\\b", "\\bsync\\b"]}} | |
| {"id": "q02", "set": "showcase", "topic": "journalctl", "question": "Which journalctl option prints the total disk space used by the journal files?", "grade": {"any": ["--disk-usage"]}} | |
| {"id": "q03", "set": "showcase", "topic": "journalctl", "question": "The journalctl -p option filters log entries by what? One word.", "grade": {"any": ["\\bpriorit"], "reject": ["\\bpid\\b", "process"]}} | |
| {"id": "q04", "set": "showcase", "topic": "logrotate", "question": "Which logrotate command-line option shows what would happen without rotating any logs or updating the state file?", "grade": {"any": ["(^|[\\s'\\\"(=])-d\\b", "--debug"], "reject": ["(^|[\\s'\\\"(=])-v\\b", "(^|[\\s'\\\"(=])-f\\b"]}} | |
| {"id": "q05", "set": "showcase", "topic": "disk usage", "question": "Give a command that prints filesystem statistics (block size, free blocks, free inodes) for the filesystem that holds /var/log.", "grade": {"any": ["\\bstat\\s+(-\\w*f|--file-system)", "\\bdf\\b[^\\n]*\\s-\\w*i"], "reject": ["\\bstatvfs\\b"]}} | |
| {"id": "q06", "set": "showcase", "topic": "NFS mounts", "question": "Is `mountdevpts` a valid NFS mount option? Answer yes or no.", "grade": {"any": ["^\\W*no\\b"]}} | |
| {"id": "q07", "set": "showcase", "topic": "SSH", "question": "What is the sshpass tool used for? Answer in a few words.", "grade": {"any": ["password"], "reject": ["\\bagent\\b"]}} | |
| {"id": "q08", "set": "showcase", "topic": "fsck", "question": "Which e2fsck option automatically repairs (\"preens\") only the problems that are safe to fix without asking?", "grade": {"any": ["(^|[\\s'\\\"(=])-p\\b"], "reject": ["(^|[\\s'\\\"(=])-y\\b", "(^|[\\s'\\\"(=])-f\\b", "(^|[\\s'\\\"(=])-e\\b"]}} | |
| {"id": "q09", "set": "showcase", "topic": "ext4 journaling", "question": "Which ext4 data= mount option journals file data as well as metadata?", "grade": {"any": ["data\\s*=\\s*journal\\b", "^\\W*journal\\W*$"], "reject": ["strict|writeback|ordered"]}} | |
| {"id": "q10", "set": "showcase", "topic": "SSH", "question": "With StrictModes enabled, does sshd refuse public-key login when ~/.ssh has mode 755? Answer yes or no.", "grade": {"any": ["^\\W*no\\b"]}} | |
| {"id": "q11", "set": "showcase", "topic": "fstab", "question": "Give a command that checks /etc/fstab for errors without mounting anything.", "grade": {"any": ["findmnt\\s+(.*\\s)?(--verify|-x)\\b", "mount\\s+(.*\\s)?(-\\w*f\\w*|--fake)\\b"], "reject": ["systemd-analyze"]}} | |
| {"id": "q12", "set": "showcase", "topic": "SSH keys", "question": "Which ssh-keygen option reads a private key file and prints its public key?", "grade": {"any": ["(^|[\\s'\\\"(=])-y\\b"], "reject": ["(^|[\\s'\\\"(=])-l\\b"], "case_sensitive": true}} | |
| {"id": "q13", "set": "showcase", "topic": "tcpdump", "question": "Write a tcpdump filter expression that matches packets with the TCP SYN flag set.", "grade": {"any": ["tcp\\[(tcpflags|13)\\][^\\n]*\\b(tcp-syn|2|0x0?2)\\b"], "reject": ["tcp-flag-syn", "tcp\\.flags"]}} | |
| {"id": "q14", "set": "showcase", "topic": "routing", "question": "What does the file /etc/iproute2/rt_tables define? Answer in a few words.", "grade": {"all": ["table"], "any": ["name", "number", "\\bids?\\b"], "reject": ["default route", "\\barp\\b"]}} | |
| {"id": "q15", "set": "showcase", "topic": "journalctl", "question": "Give the journalctl command that shows log entries for the nginx.service unit.", "grade": {"any": ["journalctl\\s+(.*\\s)?(-u\\s*|--unit[= ])nginx"], "reject": ["_COMM="]}} | |
| {"id": "q16", "set": "showcase", "topic": "SELinux", "question": "An SELinux allow rule grants { open getattr ioctl } on a file type. Which permission must be added so the process can read the file's contents? One word.", "grade": {"any": ["^\\W*read\\b"]}} | |
| {"id": "q17", "set": "showcase", "topic": "NFS mounts", "question": "Which fstab mount option marks a filesystem as needing the network, so it is mounted only after networking is up?", "grade": {"any": ["_netdev"]}} | |
| {"id": "q18", "set": "showcase", "topic": "ext4 journaling", "question": "How many journals does a single ext4 filesystem use? Answer with a number.", "grade": {"any": ["^\\D*\\b(1|one)\\b"], "reject": ["\\b(2|3|two|three)\\b"]}} | |
| {"id": "q19", "set": "showcase", "topic": "systemd", "question": "When you run `systemctl mask` on a unit, what path is the unit linked to?", "grade": {"any": ["/dev/null"]}} | |
| {"id": "q20", "set": "showcase", "topic": "SSH", "question": "Which sshd command-line option prints the effective configuration and exits?", "grade": {"any": ["(^|[\\s'\\\"(=])-T\\b"], "reject": ["(^|[\\s'\\\"(=])-t\\b"], "case_sensitive": true}} | |
| {"id": "q21", "set": "showcase", "topic": "systemd timers", "question": "In a systemd .timer unit, which setting controls how much later than scheduled the timer may fire (default 1min), so wakeups can be batched?", "grade": {"any": ["AccuracySec"], "reject": ["RandomizedDelaySec"]}} | |
| {"id": "q22", "set": "showcase", "topic": "SELinux", "question": "Which values does `setenforce` accept? List them.", "grade": {"any": ["\\b0\\b[^\\n]*\\b1\\b", "\\b1\\b[^\\n]*\\b0\\b", "permissive[^\\n]*enforcing", "enforcing[^\\n]*permissive"], "reject": ["(^|[\\s'\\\"(=])-x\\b", "\\bon\\b", "\\boff\\b"]}} | |
| {"id": "q23", "set": "showcase", "topic": "file attributes", "question": "A file has the immutable attribute (chattr +i). Can root still read its contents? Answer yes or no.", "grade": {"any": ["^\\W*yes\\b"]}} | |
| {"id": "q24", "set": "showcase", "topic": "XFS", "question": "Which tool is used to inspect an inode on an XFS filesystem?", "grade": {"any": ["xfs_db"], "reject": ["debugfs"]}} | |
| {"id": "q25", "set": "showcase", "topic": "systemd", "question": "A systemd service fails with \"Failed at step USER spawning\". Which unit directive most likely names something that does not exist? Give the directive name.", "grade": {"any": ["\\bUser\\b", "\\bGroup\\b"], "reject": ["ExecStart"]}} | |
| {"id": "q26", "set": "showcase", "topic": "systemd", "question": "Does `systemctl list-unit-files` list masked units? Answer yes or no.", "grade": {"any": ["^\\W*yes\\b"]}} | |
| {"id": "q27", "set": "showcase", "topic": "permissions", "question": "With umask 027, what mode does a new regular file get when the program requests 0666? Give the octal mode.", "grade": {"any": ["\\b0?640\\b"]}} | |
| {"id": "q28", "set": "showcase", "topic": "SSH logs", "question": "On RHEL-family systems, which file does rsyslog write sshd authentication messages to by default? Give the path.", "grade": {"any": ["/var/log/secure\\b"]}} | |
| {"id": "q29", "set": "showcase", "topic": "disk usage", "question": "Give an lsof command that lists files which were deleted but are still held open.", "grade": {"any": ["lsof[^\\n]*\\+L\\s*1\\b", "lsof[^\\n]*grep[^\\n]*deleted"], "reject": ["\\+D\\s*/"]}} | |
| {"id": "q30", "set": "showcase", "topic": "journald", "question": "Which journald.conf setting caps the total disk space the persistent journal may use?", "grade": {"any": ["SystemMaxUse"], "reject": ["RuntimeMaxUse", "SystemMaxFileSize", "LogsDirectorySize"]}} | |
| {"id": "q31", "set": "showcase", "topic": "ext4", "question": "Which ext4 mount option controls what happens on a filesystem error (continue, remount-ro or panic)? Give the option name.", "grade": {"any": ["\\berrors\\b"], "reject": ["mount_opt_count"]}} | |
| {"id": "q32", "set": "showcase", "topic": "systemd", "question": "For the unit foo.service, what does the systemd specifier %N expand to?", "grade": {"any": ["^\\W*foo\\W*$", "without\\s+(the\\s+)?(\\.?service\\s+|type\\s+)?(suffix|extension)"], "reject": ["foo\\.service"]}} | |
| {"id": "q33", "set": "showcase", "topic": "logrotate", "question": "Which logrotate directive postpones compressing the previous log file until the next rotation?", "grade": {"any": ["\\bdelaycompress\\b"], "reject": ["compressdelay"]}} | |
| {"id": "q34", "set": "showcase", "topic": "network config", "question": "In Debian's /etc/network/interfaces, which address-family keyword goes on an iface line to configure IPv6?", "grade": {"any": ["\\binet6\\b"], "reject": ["inet ipv6", "dhcp-v6c"]}} | |
| {"id": "q35", "set": "showcase", "topic": "NFS", "question": "Which file does an administrator edit to define the directories an NFS server exports? Give the path.", "grade": {"any": ["/etc/exports(?![a-z])"]}} | |
| {"id": "q36", "set": "showcase", "topic": "inotify", "question": "In inotifywait, which option must be given for the %T format sequence to print a timestamp?", "grade": {"any": ["--timefmt"]}} | |
| {"id": "q37", "set": "showcase", "topic": "mounts", "question": "Give a command that lists the processes using the filesystem mounted at /mnt/data.", "grade": {"any": ["fuser\\s+[^\\n]*-\\w*m", "lsof\\s+[^\\n]*(/mnt/data|\\+f)"], "reject": ["findaccess"]}} | |
| {"id": "q38", "set": "showcase", "topic": "systemd timers", "question": "A systemd service is started by a .timer unit. Which unit should normally be enabled: the timer, the service, or both?", "grade": {"any": ["timer"], "reject": ["\\bboth\\b", "^\\W*(the\\s+)?service\\b"]}} | |
| {"id": "q39", "set": "showcase", "topic": "XFS", "question": "Which xfs_repair option checks the filesystem without modifying it?", "grade": {"any": ["(^|[\\s'\\\"(=])-n\\b"]}} | |
| {"id": "q40", "set": "showcase", "topic": "systemd timers", "question": "In a .timer unit, which directive names the unit to activate when it differs from the timer's own name?", "grade": {"any": ["\\bUnit\\s*=", "^\\W*unit\\W*$"], "reject": ["OnUnit", "Service\\s*="]}} | |
| {"id": "q41", "set": "showcase", "topic": "AppArmor", "question": "In enforce mode, is file access that an AppArmor profile does not mention allowed or denied? One word.", "grade": {"any": ["\\bden(y|ied)\\b", "blocked"], "reject": ["\\ballowed\\b"]}} | |
| {"id": "q42", "set": "showcase", "topic": "users", "question": "Give the command that runs `cat file.log` as the user app_user.", "grade": {"any": ["sudo\\s+(-\\S+\\s+)*-u\\s*app_user\\s+(-\\S+\\s+)*cat", "su\\s+(-\\s+)?app_user\\s+-c", "runuser\\s+-u\\s*app_user"], "reject": ["su\\s+app_user\\s*&&"]}} | |
| {"id": "q43", "set": "showcase", "topic": "systemd timers", "question": "Give an OnCalendar= value that runs a timer every day at midnight.", "grade": {"any": ["\\bdaily\\b", "\\*-\\*-\\*\\s+00:00(:00)?\\b", "(^|=)\\s*00:00(:00)?\\s*$"], "reject": ["\\*-\\*-\\*-01"]}} | |
| {"id": "q44", "set": "showcase", "topic": "mounts", "question": "Which umount option detaches a busy filesystem now and finishes cleanup once it is no longer busy?", "grade": {"any": ["(^|[\\s'\\\"(=])-l\\b", "--lazy", "\\blazy\\b"]}} | |
| {"id": "q45", "set": "showcase", "topic": "permissions", "question": "What does the setgid bit on a directory cause for new files created inside it? Answer briefly.", "grade": {"all": ["group"], "any": ["inherit", "directory", "parent", "same"], "reject": ["privilege", "execut"]}} | |
| {"id": "q46", "set": "showcase", "topic": "SSH", "question": "If sshd_config sets PasswordAuthentication twice (outside any Match block), which one takes effect: the first or the last?", "grade": {"any": ["\\bfirst\\b"], "reject": ["\\blast\\b"]}} | |
| {"id": "q47", "set": "showcase", "topic": "AppArmor", "question": "Write the line that includes the standard base abstraction in an AppArmor profile.", "grade": {"any": ["#?\\s*include\\s+<abstractions/base>"]}} | |
| {"id": "q48", "set": "showcase", "topic": "XFS", "question": "Which mkfs.xfs option enables metadata checksums (CRCs)?", "grade": {"any": ["crc\\s*=\\s*1"], "reject": ["xfs_crc"]}} | |
| {"id": "q49", "set": "showcase", "topic": "systemd timers", "question": "Which timer setting schedules runs relative to when the activated unit was last activated?", "grade": {"any": ["OnUnitActiveSec"], "reject": ["OnBootSec", "\\bOnActiveSec"]}} | |
| {"id": "q50", "set": "showcase", "topic": "SSH", "question": "Which PermitRootLogin value lets root log in with keys but not with a password?", "grade": {"any": ["prohibit-password", "without-password"]}} | |