Exercises
Put your Ubuntu system administration knowledge to the test. This quiz covers essential Linux administration tasks, including updating APT package lists, creating users, checking kernel versions, managing /etc/fstab, adjusting process priority, configuring environment variables, adding software repositories, restarting DHCP services, scheduling cron jobs, and listing enabled startup services. Ideal for students, aspiring Linux administrators, DevOps learners, and anyone preparing for Ubuntu or Linux system administration assessments.
Answer the questions below and check the explanation for each answer.
0/10 answered
Auto audio on: the next questions will be read aloud when you click Continue.
The correct command to update the list of available packages and their versions on Ubuntu is sudo apt-get update. This command retrieves the latest package information from the software repositories specified in the system, allowing users to see the most recent updates and versions available.
The useradd command is commonly used in Linux systems to add a user to the system. While adduser is a more user-friendly script that may be available on some distributions, the standard Linux command is useradd.
The correct command to view the current system's kernel version is uname -r. The uname command in Linux is used to print system information, and the -r option specifically displays the kernel release, which is the kernel version number. Option 1 and Option 3 are incorrect because kernel --version is not a valid command and lshw -c kernel does not exist.
The /etc/fstab file is used to define how disk partitions, filesystems, or remote filesystems should be mounted into the system's filesystem. It provides a mechanism for automatically mounting filesystems at boot time and specifies options for each mount point, such as read/write permissions and filesystem type.
To modify the priority of a running process, the renice command is used. The renice command allows you to change the priority of a running process identified by its PID. In this case, the correct command is renice -n -19 -p 12345, where -n -19 sets the process to a very high priority (since lower values mean higher priority) and -p specifies the PID.
System-wide environmental variables in Ubuntu are typically set in the /etc/environment file. This file is used to set up a system-wide environment for all users and not just for one specific shell.
To add a new repository to the system's software sources on a Debian-based Linux system, you typically edit the /etc/apt/sources.list file. This file contains a list of the repositories that are used by the apt package management system. You can also add repository files with the .list extension in the /etc/apt/sources.list.d directory for specific repositories or custom configurations.
If you've made changes to the DHCP configuration, you would need to restart the isc-dhcp-server service. This service is responsible for providing DHCP services in a network, and any changes in its configuration require a restart for them to take effect.
The correct cron expression for scheduling a job to run daily at 5 am is 0 5 * * *. The cron format represents: minute (0), hour (5), day of month (*), month (*), and day of week (*). This means the job will execute at 5:00 am every day of the month and every day of the week.
The command systemctl list-unit-files --type=service --state=enabled specifically lists all service unit files that are enabled, which means they are configured to start at system boot. Option 1 lists all service unit files regardless of their state, and Option 2 reports the status of all services but does not focus only on startup-enabled ones.

Free CourseOperating Systems and Systems Programming
38h48m
26 exercises

Free CourseOperating System
16h53m
42 exercises

Free CourseHome Networking 101
1h50m
4 exercises

Free CourseBasic Commands in Linux
2h15m
6 exercises

Free CourseComputer operating systems
6h00m
23 exercises

Free CourseHardware and Network full course
20h08m
23 exercises

Free CourseLinux command line tutorial
25h01m
40 exercises

Free CourseUbuntu Linux training
4h06m
33 exercises
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks