NEW
Font size
WorksheetsLinux Quiz
Total questions: 50
Worksheet time: 38mins
Which interpreter executes commands typed as strings?
Shell
Prompt
Command
Option
Which visual cue indicates an interactive shell is waiting for user input?
Shell
Prompt
Command
Option
What is the name of a program to run?
Prompt
Command
Option
Argument
Which part of the command line adjusts the behavior of a command?
Option
Argument
Physical console
Command
Which part of the command line specifies the target that the command should operate on?
Virtual console
Terminal
Option
Argument
How do you re-execute a recent command by matching the command name?
!string
!number
Tab
Ctrl+z
Which shortcut is used to complete commands, filenames, and options?
Tab
Shift
Ctrl
Esc
Which directory contains dynamic configuration data such as FTP and websites?
/usr
/etc
/var
/root
Where are regular user commands and utilities located?
/usr/bin
/usr/sbin
/etc
/usr
Where are system administration binaries for root stored?
/usr/bin
/usr/sbin
/etc
/usr
Where are temporary files stored?
/var
/usr/bin
/tmp
/etc
Which directory contains dynamic, non-persistent application runtime data?
/tmp
/var
/run
/root
Where are installed software programs and libraries stored?
/usr
/usr/bin
/usr/sbin
/run
Which command returns to the previous working directory?
cd -
cd ../..
cd bin
cd ..
Which command moves up two levels from the current directory?
cd ../..
cd bin
cd -
cd
Which command lists the current location in long format, including hidden files?
ls -al
ls -l
ls -l ~
ls -al ~
Which command lists only filenames that contain the letter 'b'?
b
b*
[!b]*
"b"
Which command sends output to a file and errors to a different file?
2>/dev/null
file 2> /dev/null
&>file
file 2>file2
Which command sends output and errors to the same new, empty file?
&>file
&>/dev/null
| tee file
file 2>&1
Which command sends output and errors to the same file while preserving existing content?
| tee file
2>/dev/null
file 2>&1
&>/dev/null
Which file can be modified by the user betty?
rfile1
rfile2
lfile1
lfile2
Which file logs messages related to system startup?
/var/log/secure
/var/log/cron
/var/log/boot.log
/var/log/secure
What does the following image indicate?
An IP address cannot be a network address
This configuration is valid
The gateway is not on the same subnet
An invalid IPv4 address
What does the following image indicate?
Name resolution is not configured
This configuration is valid
The gateway is not on the same subnet
An invalid IPv4 address
Which processor type is required for a specific package?
Changelog
Version
Architecture
Repository
What is a collection of RPM packages and package groups called?
Version
Release
Changelog
Repository
Which method verifies the source and integrity of a package?
GPG signature
Repository
Changelog
Architecture
Which command gracefully stops a virtual machine?
destroy
shutdown
reboot
undefine
Which system provides KVM support on a single machine?
Red Hat Enterprise Linux
Red Hat Enterprise Virtualization
RHEL OpenStack Platform
RHEV-M
Which system provides virtualized redundancy across multiple machines?
RHEL OpenStack Platform
Red Hat Enterprise Linux
Red Hat Enterprise Virtualization
OpenStack in the public cloud
Which system provides private cloud virtualization across multiple machines?
RHEV-M
RHEL OpenStack Platform
virt-manager
CloudForms
Which platform provides public cloud virtualization?
CloudForms
virt-manager
OpenStack in the public cloud
RHEL OpenStack Platform
Which management utility is used for standalone KVM hosts?
virt-manager
Red Hat Enterprise Linux
RHEV-M
CloudForms
Which management utility is used for multiple host virtualization platforms?
RHEV-M
RHEL OpenStack Platform
Red Hat Enterprise Virtualization
OpenStack in the public cloud
Which management utility integrates all virtualization and cloud platforms?
Red Hat Enterprise Linux
OpenStack in the public cloud
CloudForms
virt-manager
Which command displays the list of users currently on the system?
who
w
id
users
Which command shows system information, including the kernel version?
uname -a
systemctl status
lscpu
uptime
Which command displays real-time memory usage?
free -h
top
vmstat
df -h
Which command changes the current user's password?
passwd
usermod
chage
passwd -e
Which command searches for a file by name within a specific directory?
find /home -name "file.txt"
locate file.txt
grep file.txt
whereis file.txt
Which command safely shuts down the system?
halt
shutdown -h now
poweroff
reboot
Which command lists the ports currently in use by services?
netstat -tulnp
ip a
ss -lt
lsof -i
Which command displays the list of groups in the system?
groups
id
whoami
cat /etc/group
Which command modifies file permissions so that only the owner can read it?
chmod 400 file.txt
chown user file.txt
chmod 600 file.txt
chgrp users file.txt
Which command prints a file's contents without opening an editor?
cat file.txt
nano file.txt
echo file.txt
vi file.txt
Which command lists all active services?
systemctl list-units --type=service
service --status-all
chkconfig --list
ps aux
Which command creates a hard link to a file?
ln file1 file2
ln -s file1 file2
cp file1 file2
mv file1 file2
Which command lists all installed packages?
rpm -qa
yum list installed
dpkg --list
apt list --installed
Which command checks network connectivity to an IP or domain?
ping example.com
nslookup example.com
traceroute example.com
dig example.com
Which command displays the list of disks and partitions?
lsblk
df -h
fdisk -l
du -sh
