Font size
WorksheetsLinux Week 10, 11, 12, 13
Total questions: 110
Worksheet time: 55mins
Which command is used to install a package using RPM?
rpm -i package_name
rpm -install package_name
rpm -setup package_name
rpm -a package_name
What is the function of the yum update command?
Removes outdated packages
Updates all installed packages
Searches for new repositories
Installs a specific package
Which tool is used for package management on Debian-based systems?
rpm
yum
dpkg
zypper
What does the apt-get remove package_name command do?
Deletes package files and configuration
Removes the package but keeps its configuration
Installs a new package
Updates the packag
What is the purpose of the sha256sum command?
To display package details
To calculate the checksum of a file
To install a package
To search for repositories
Which command can be used to manually configure a package on Debian-based systems?
dpkg-setup
dpkg-reconfigure
apt-configure
dpkg-configure
What is the primary use of the zypper command?
Install packages on SUSE-based systems
Update packages on Ubuntu
Manage packages on Red Hat
Configure repositories on Debian
Which of the following commands is used to verify the integrity of a downloaded file?
sha256sum
yum check
rpm -q
apt-cache
What is the role of rpm2cpio?
Extract files from RPM packages
Update RPM packages
Reinstall RPM packages
Remove RPM packages
Which command lists all installed packages in a Debian-based system?
apt-get show
dpkg -l
rpm -qa
yum list installed
What does the md5sum command do?
Installs packages
Verifies file integrity using an MD5 checksum
Updates repositories
Displays system information
Which command is used to add a repository in SUSE Linux?
zypper addrepo
zypper setuprepo
yum addrepo
dpkg addrepo
What is the difference between apt-get remove and apt-get purge?
apt-get remove removes the package and its dependencies, while apt-get purge removes only the package
apt-get remove removes the package, while apt-get purge also removes configuration files
They are the same command
apt-get remove is for Debian, and apt-get purge is for Red Hat
Which command shows detailed information about a package using RPM?
rpm -q
rpm -i
rpm -ivh
rpm -qi
Which package manager is used for Red Hat-based systems?
dpkg
apt-get
yum
zypper
What does the rpm -U command do?
Installs and updates a package
Removes a package
Verifies a package
Queries a package
Which command lists all available packages in the apt-cache?
apt-cache list
apt-cache search
dpkg -l
apt-get show
What does the dpkg -r package_name command do?
Completely removes a package and its configuration
Removes the package but keeps its configuration
Installs a new package
Updates an existing package
What is the main purpose of rpm -qa?
To display system architecture
To list all installed RPM packages
To query available updates
To remove packages
Which command updates all installed packages on SUSE-based systems?
apt-get upgrade
rpm -Uvh
zypper up
dpkg-reconfigure
Which protocol is commonly used by the X Window system for network-based GUI operations?
HTTP
X11
SSH
FTP
What is the main function of a display manager in the X Window system?
Managing network protocols
Configuring hardware drivers
Providing a graphical login interface
Managing file systems
Which file defines the default runlevel in a Debian-derived Linux system?
/etc/profile
/etc/gdm/custom.conf
/etc/inittab
/etc/xorg.conf
What is the primary role of a window manager in the X Window system?
Manage user accounts
Handle graphical login screens
Manage the placement and appearance of windows
Control network access
Which configuration file is commonly used to manually customize the X server?
/etc/profile
/etc/X11/xorg.conf
/etc/gdm/custom.conf
/var/log/Xorg.0.log
What does the startx command do?
Starts the X server and the default graphical environment
Configures hardware drivers for the X server
Restarts the system in runlevel 1
Terminates the X Window system
Which toolkit is commonly used for C++ development in KDE?
GTK+
Qt
Motif
Xlib
What is the function of the fc-cache command?
Start the X server
Configure display managers
Update the font information cache
Reset the X server
What does the acronym WIMP stand for in the context of GUIs?
Windows, Icons, Menus, Pointers
Widgets, Interfaces, Menus, Protocols
Windows, Interactive Mouse Protocol
Widgets, Icons, Menus, Programs
What is the default color depth setting in the xorg.conf file represented as?
The number of bits per pixel
The exponent of the number 2
The maximum resolution supported
The refresh rate of the display
What does the xhost command do?
Manages access control for X server connections
Configures display settings
Restarts the X server
Changes the default runlevel
What component allows X Window applications to run on remote systems?
Xlib
X server
X11-Forwarding
Xauth
What is the primary purpose of the Wayland protocol?
Replace the X server with a modern display system
Configure display monitors
Create font paths for the X server
Manage network connections
Which desktop environment is considered lightweight and ideal for older hardware?
GNOME
KDE
Xfce
Cinnamon
What does the command sudo dpkg-reconfigure gdm do?
Reinstalls the GNOME desktop environment
Allows selecting the default display manager
Removes the gdm package
Updates the X server
Which configuration file is used to customize the GNOME display manager?
/etc/X11/xorg.conf
/etc/inittab
/etc/gdm/custom.conf
/etc/profile
Which environment variable must be set for remote GUI applications?
PATH
HOME
DISPLAY
SHELL
What is the purpose of xauth in the X Window system?
Generates authorization cookies for remote access
Configures video cards
Manages window placement
Updates font paths
Which display manager is the default for Ubuntu-based distributions?
lightdm
gdm
kdm
xdm
What is a benefit of using virtual network computing (VNC)?
It allows graphical desktops to be shared over a network
It replaces the X server
It encrypts all graphical transmissions
It configures multiple monitors
Which tool is used to change the default theme in GNOME?
Tweaks
Themes
Preferences
Appearance
What does the GNOME desktop environment primarily use for its widgets?
Qt
GTK
Xlib
Motif
Which protocol is used by RDP for remote desktop access?
TCP/IP
SSH
X11
RFB
What command is used to install localization packages in KDE on Debian-based systems?
apt-get install kde-i18n-locale-code
dpkg-reconfigure kde
apt-get kde-setup
locale-gen
What does the xdmcp protocol enable?
Securely forwarding graphical sessions
Sharing screens over the network
Managing multiple desktops
Troubleshooting X server errors
What is the purpose of the fc-cache command?
To update font information for the X server
To manage fonts in XDM
To verify font compatibility with GTK
To load fonts into the display manager
What is the primary advantage of GNOME over Xfce?
Better support for transparency and animations
Requires less memory to run
Faster load times
No dependency on X Window
Which log file contains error messages for the X server?
/var/log/Xorg.0.log
/etc/X11/xorg.conf
/var/log/syslog
/home/.xsession-errors
Which configuration file is used to set a custom banner for the gdm display manager?
/etc/gdm/custom.conf
/etc/X11/xorg.conf
/var/log/Xorg.0.log
/etc/profile
What command would an administrator use to install VNC server on a Debian system?
apt-get install vnc4server
yum install vnc-server
dpkg-reconfigure vnc
zypper install vncserver
Which file contains user account details in Linux?
/etc/shadow
/etc/passwd
/etc/login.defs
/etc/group
What is the purpose of the /etc/shadow file?
Stores user passwords in plaintext
Contains encrypted user passwords
Manages user groups
Stores user login history
What command is used to create a new user in Linux?
usercreate
useradd
adduser
newuser
Which command is used to change a user's password?
passwd
chpass
usermod
passwdchange
What is the function of the /etc/skel directory?
Stores default user environment files
Contains user login shells
Manages user session data
Logs user activity
Which command locks a user account?
usermod -L
passwd -l
useradd -lock
passwd -lock
What does the chage command do?
Creates a new user
Changes user account parameters
Modifies password aging policies
Locks user accounts
Which field in /etc/passwd specifies the user’s home directory?
3rd
5th
6th
7th
Which command displays the groups a user belongs to?
groups
id
groupadd
grouplist
What is the default UID range for regular users on Debian-based systems?
0-499
100-999
1000-60000
500-999
Which file defines default user account creation settings?
/etc/group
/etc/skel
/etc/login.defs
/etc/default/useradd
What command changes a user’s home directory?
usermod -d
useradd -home
chuser -home
chdir -u
What does the -m option in the useradd command do?
Deletes the user
Creates the user’s home directory
Locks the user account
Disables the user
What is the purpose of the crontab command?
View system logs
Edit scheduled tasks
Create new users
Lock user accounts
Which field in a crontab entry specifies the command to execute?
1st
3rd
5th
6th
What does the keyword @daily in a crontab entry indicate?
Run every hour
Run every day at midnight
Run every Monday
Run every week
What file stores user-specific crontab jobs?
/etc/crontab
/var/spool/cron/<username>
/etc/cron.d
/home/<username>/cron
What command is used to delete a user?
userdel
userremove
deluser
remuser
What is the purpose of the /etc/group file?
Stores group account information
Logs group activity
Manages group sessions
Stores encrypted passwords
Which command adds a user to a supplementary group?
usermod -G
groupadd -a
useradd -s
usermod -a -G
What does the -r option in userdel do?
Removes a user from all groups
Deletes the user’s home directory
Reassigns user files
Renames the user
What does the -e option in usermod specify?
Expiration date for the user account
Email address for the user
Environment variables for the user
Extended permissions
Which file stores group passwords in encrypted form?
/etc/passwd
/etc/group
/etc/shadow
/etc/gshadow
What is the default shell for new users?
/bin/sh
/bin/bash
/usr/bin/zsh
/usr/bin/fish
Which command schedules a one-time job in Linux?
cron
batch
at
schedule
What does the gpasswd command do?
Adds a user to a group
Changes the group password
Deletes a group
Lists group memberships
Which command displays detailed password information for a user?
passwd -i
chage -l
passwd -a
chage -p
Which command lists all active crontab jobs for a user?
cronlist
crontab -l
cron -v
crontab -e
What does the newgrp command do?
Switches to a new primary group
Deletes the current group
Creates a new group
Modifies group permissions
What is the function of the /etc/default/useradd file?
Stores system-wide user account defaults
Logs user activity
Configures user permissions
Manages temporary user accounts
What command is used to display the current system time?
date
hwclock
timeview
sysclock
Which command sets the system time from the hardware clock?
hwclock --set
hwclock -s
date -s
hwclock --time
What is the hardware clock also known as?
CMOS/BIOS clock
System clock
Epoch clock
UTC clock
What does the timedatectl command primarily manage?
File system configuration
Time and date settings
Network connections
Disk partitions
Which file stores time zone details on Linux systems?
/etc/timezone
/etc/localtime
/etc/clock.conf
/var/timeinfo
What does the chronyd service do?
Configures hardware clocks
Synchronizes time with NTP servers
Monitors log files
Sets up cron jobs
What is the purpose of the ntpdate command?
Display system logs
Set the system time using NTP
Create NTP configuration files
Restart the ntpd daemon
What is the significance of the --utc option in the hwclock command?
Sets the hardware clock to Coordinated Universal Time
Converts the system clock to the local time zone
Synchronizes the system clock to the internet
Displays logs in UTC format
Which tool manages rotating log files in Linux?
journalctl
logrotate
rsyslogd
syslog-ng
What is the default location for most system log files?
/etc/logs
/var/log
/usr/logs
/home/logs
Which command is used to send messages to the system logging facility?
logger
journalctl
syslog
logviewer
Which logging daemon is commonly used on modern Linux systems?
sysklogd
rsyslogd
logwatch
journald
Which command displays logs stored in the systemd journal?
systemctl log
journalctl
logviewer
syslogctl
What is the purpose of the rsyslog.conf file?
Manages time synchronization
Configures system logging behavior
Sets file permissions
Controls user access
Which file is used to define default logrotate settings?
/etc/logrotate.conf
/var/log/rotate
/etc/syslog.conf
/usr/logrotate.conf
What does the --vacuum-time option do in the journalctl command?
Clears logs older than a specified time
Compresses old logs
Displays logs in reverse order
Deletes logs from volatile memory
What is the primary function of the Mail Transfer Agent (MTA)?
Compose emails
Transfer emails between systems
Encrypt emails
Manage user accounts
What is the default location for user mailboxes on Linux systems?
/var/mail
/home/mail
/etc/mail
/usr/mail
What command is used to read emails on a Linux system?
email-read
inbox
fetchmail
Which file configures the rsyslog daemon?
/etc/rsyslog.conf
/var/log/syslog
/usr/rsyslogd.conf
/etc/system.conf
What is the main purpose of the timedatectl list-timezones command?
Display current time
List all available time zones
Set the system clock
Configure NTP servers
Which tool is best for debugging time synchronization issues in NTP?
ntptrace
ntpdebug
ntpconfig
ntpq
What does the /etc/ntp.conf file configure?
Hardware clock
Network Time Protocol (NTP)
Time zones
System logs
What does the stratum field in NTP represent?
The accuracy of a server's time
The location of the NTP server
The delay in milliseconds
The type of NTP service
What command in logrotate compresses rotated log files?
--compress-logs
gzip-log
rotate --gzip
compress
Which logging facility captures cron job outputs?
authpriv
cron
user
Which directory stores persistent system logs in systemd journal?
/var/log/journal
/etc/journal/logs
/usr/log/journal
/run/log/journal
What is the purpose of the systemd-cat command?
Add messages to systemd logs
View log messages
Delete old logs
Compress logs
What directive specifies the time zone in timedatectl?
set-timezone
configure-tz
timezone-config
time-zone-set
Which component synchronizes time in intermittent network environments?
chronyd
ntpdate
timedatectl
rsync
