Final Exam
Linux System Administration Quiz
Test your knowledge of Linux system administration with our comprehensive quiz designed for aspiring system administrators and tech enthusiasts. With 40 challenging questions, this quiz covers topics such as user management, file systems, commands, and system processes.
Whether you're preparing for a certification exam or just want to sharpen your skills, this quiz is the perfect way to assess your understanding of Linux. Key features include:
- A variety of question types.
- Instant feedback on answers.
- Scores to track your progress.
The number of users logged in is in a variable called USERS. How would you test to see if 5 users are logged in?
Test $USERS -a 5
Test $USers -eq 5
Test $USERS,5
Test $USERS = 5
Test -f USERS=5
Given the following script: while [ ! f /tmp/foo ]; do echo -n "." process_data > /tmp/foo done Which of the following are true? (choose two)
Process_data will never be run
/tmp/foo will be removed if it exists
Process_data will be called at most once
The screen will fill with dots
If a file called /tmp/foo exists, process_data won't be run
A conditional that lets you make multiple comparisons with a pattern is called:
Case
Branch
Test
Fanout
If
What is the meaning of $(( $i +1)) ?
This runs the command stored in variable I
1 will be added to the I variable
This will return the value of the first argument to the script
This will return the value of the next argument to the script
If I is 0, the loop will stop
How would you write a test that says "if /tmp/foo is a directory or USERS is greater than 5"?
Test /tmp/foo || $USERS > 5
Test -d /tmp/foo -o $USERS -gt 5
Test -d /tmp/foo | $USERS > 5
Test /tmp/foo -d -o $USERS -gt 5
Test -f /tmp/foo -o $USERS -ge 5
Which of the following is the valid device file name for the first IDE hard drive on the system?
/dev/ide
/dev/sda
/dev/hd1
/dev/hda
The following are valid Linux option styles: (choose three)
DOS slash(/)
GNU long options with two dashes (--)
Traditional Unix with a single dash (-)
BSD Unix without a dash
Which file contains the information passed to the kernel at boot time?
/proc/cmdline
/proc/kargs
/proc/kernel
/proc/kopts
To make changes permanent for kernel parameter files found under /proc/sys, the following file can have entries added to it:
/etc/sysctl.conf
/etc/procctl.conf
/etc/procsys.conf
/etc/sysinfo.conf
To get a list of all packages installed on a system using RPM Packet Manager you can execute:
Rpm -qa
Rpm -qf
Rpm -qi
Rpm -ql
Which of the following would be considered a host?
A network cable
The compouter's hard drive
A printer attached to the network via an IP address
A CDROM
Which of the following commands will allow you to log into the machine server1 with the account name nick?
Ssh nick-server1
Ssh nick@server1
Ssh nick->server1
Ssh nick&server1
Sudo privileges can be used to specify which user can use the sudo command to execute commands as other users. True/False?
True
False
In distributions that do not allow the root user to login directly or via the su command, the installation process automatically configures one user account to be able to use the sudo command to execute commands as if they were executed by the root user. True/False?
True
False
Which of the following commands will display how long the system has been running since the last boot? (choose two)
Who
Id
Uptime
W
Which of the following files contains encrypted user password information?
/etc/group
/etc/usr
/etc/passwd
/etc/shadow
Which of the following files does the groupadd command use to determine the new GID when a GID isn't specified?
/etc/group
/etc/passwd
/etc/usr
/etc/shadow
Which of the following commands, run as root, will prevent the user bob from logging in?
Usermod -d bob
Usermod -D bob
Usermod -l bob
Usermod -L bob
The chmod command can be used on a file by:
The file owner
A user that belongs to the files current group
Only root
The file owner and root
Which option for the chown command can be used to change the owner of a directory and all the files and directories below it?
-r
-R
-f
-a
The user owner of a file will always have the same or higher permissions as "other". True/False?
True
False
{"name":"Final Exam", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of Linux system administration with our comprehensive quiz designed for aspiring system administrators and tech enthusiasts. With 40 challenging questions, this quiz covers topics such as user management, file systems, commands, and system processes.Whether you're preparing for a certification exam or just want to sharpen your skills, this quiz is the perfect way to assess your understanding of Linux. Key features include:A variety of question types.Instant feedback on answers.Scores to track your progress.","img":"https:/images/course7.png"}