0
0
Linux CLIscripting~20 mins

Why sysadmin skills manage production servers in Linux CLI - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Production Server Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why is monitoring important for sysadmins managing production servers?
Which of the following best explains why sysadmins must monitor production servers continuously?
ATo detect and fix issues before they affect users
BTo increase the server's CPU speed automatically
CTo reduce the number of users accessing the server
DTo disable all network connections during peak hours
Attempts:
2 left
💡 Hint
Think about how problems can impact users if not caught early.
💻 Command Output
intermediate
2:00remaining
Output of checking disk space on a production server
What is the output of this command on a Linux production server?
df -h /
Linux CLI
df -h /
AError: command not found
B
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 10G 1G 9G 10% /tmp
C
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 100G 90G 5G 95% /home
D
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 50G 20G 28G 42% /
Attempts:
2 left
💡 Hint
The command shows disk usage for the root directory.
🔧 Debug
advanced
2:00remaining
Identify the error in this script for restarting a service
What error will this script produce when run on a production server?
#!/bin/bash
service apache2 restart
if [$? -eq 0]; then
echo "Restart successful"
else
echo "Restart failed"
fi
Linux CLI
#!/bin/bash
service apache2 restart
if [$? -eq 0]; then
echo "Restart successful"
else
echo "Restart failed"
fi
AService apache2 not found error
BSyntaxError: missing space after '[' in if condition
CNo output, script exits silently
DRestart successful printed always
Attempts:
2 left
💡 Hint
Check the syntax of the if statement.
🚀 Application
advanced
2:00remaining
Automate backup of configuration files on production server
Which script correctly copies all '.conf' files from /etc to /backup/configs with date suffix?
Amkdir -p /backup/configs/$(date +%Y%m%d) && cp /etc/*.conf /backup/configs/$(date +%Y%m%d)/
Bcp /etc/*.conf /backup/configs/backup_$(date +%Y%m%d)/
Ccp /etc/*.conf /backup/configs/$(date +%Y%m%d)
Dcp /etc/*.conf /backup/configs/backup_date
Attempts:
2 left
💡 Hint
Ensure the backup directory exists before copying.
🧠 Conceptual
expert
2:00remaining
Why is automation critical for managing production servers?
Which reason best explains why sysadmins use automation scripts in production environments?
ATo replace all human sysadmins completely
BTo make servers run faster by using scripts
CTo reduce manual errors and speed up repetitive tasks
DTo prevent all security attacks automatically
Attempts:
2 left
💡 Hint
Think about how automation helps with consistency and efficiency.