Quiz: Automation and Fun
Test your understanding of task automation, cron, and terminal customization.
1. What is cron used for?
- Measuring time precisely
- Scheduling recurring tasks to run automatically
- Recording audio
- Creating chronological logs
Show Answer
The correct answer is B. Cron is a time-based job scheduler that runs commands or scripts automatically at specified intervals. It's perfect for backups, maintenance tasks, and any recurring automation.
Concept Tested: Cron Daemon
See: Chapter 24 - Cron
2. In the cron expression 30 4 * * 1, when does the job run?
- Every 30 minutes on the 4th
- At 4:30 AM every Monday
- At 4:30 PM every day
- Every 30 seconds at 4 AM
Show Answer
The correct answer is B. The format is: minute (30), hour (4), day-of-month (), month (), day-of-week (1=Monday). So this runs at 4:30 AM every Monday.
Concept Tested: Cron Syntax
3. What does ANSI color code \e[31m produce?
- Bold text
- Red text color
- 31 spaces
- Error message
Show Answer
The correct answer is B. ANSI escape codes control terminal formatting. \e[31m (or \033[31m) sets text color to red. Use \e[0m to reset to default. Colors range from 30-37 for foreground.
Concept Tested: ANSI Color Codes
4. What is neofetch?
- A network testing tool
- A command that displays system info with ASCII art
- A file downloader
- A news reader
Show Answer
The correct answer is B. Neofetch displays system information (OS, kernel, CPU, memory, etc.) alongside a colorful ASCII art logo of your distribution. It's popular for screenshots and rice (customization showcases).
Concept Tested: Neofetch
5. What does the cowsay command do?
- Plays cow sounds
- Displays a message with ASCII art of a cow
- Counts words
- Manages dairy inventory
Show Answer
The correct answer is B. cowsay takes text input and displays it in a speech bubble from an ASCII cow. It's completely useless and absolutely delightful. Try cowsay "Hello" or pipe it with fortune | cowsay.
Concept Tested: Cowsay
See: Chapter 24 - Cowsay
6. What does the sl command do?
- Lists files (typo for ls)
- Shows an animated steam locomotive
- Sleeps for a duration
- Signs you out
Show Answer
The correct answer is B. sl displays an animated ASCII steam locomotive crossing your terminal. It was created to "punish" users who mistype ls. You can't stop it easily, which is part of the joke!
Concept Tested: Sl Command
7. What is figlet used for?
- Creating figure diagrams
- Generating large ASCII text banners
- Managing fig files
- Calculating figures
Show Answer
The correct answer is B. Figlet creates large ASCII art text banners from input text. Try figlet "HELLO" to see your text rendered in big blocky letters. Different fonts create different styles.
Concept Tested: Figlet
See: Chapter 24 - Figlet
8. What does the PS1 variable control?
- PostScript printing
- The appearance of your shell prompt
- Process security level 1
- PlayStation integration
Show Answer
The correct answer is B. PS1 (Prompt String 1) defines what your command prompt looks like. You can include username, hostname, current directory, colors, git branch, and more. Customize it in your .bashrc.
Concept Tested: Terminal Customization
9. What is the purpose of system logging?
- Slowing down the system
- Recording events for troubleshooting and monitoring
- Logging into websites
- Creating wooden logs
Show Answer
The correct answer is B. System logs record events, errors, and activities. They're essential for troubleshooting problems, security monitoring, and understanding system behavior. Use journalctl to view systemd logs.
Concept Tested: Logging Tasks
See: Chapter 24 - Logging
10. What does apt moo display?
- Monthly Operating Overview
- An ASCII cow (Easter egg in apt)
- Software updates
- Memory Out Of bounds error
Show Answer
The correct answer is B. apt moo is a classic Linux Easter egg that displays an ASCII cow. It's one of many fun hidden features in Linux software. Try apt moo moo for another variation!
Concept Tested: Linux Easter Eggs