Browse all practice questions for the Red Hat Certified Systems Admin (RHCSA) EX200 Practice Exam. Search by topic, open any question and review its full explanation, then test yourself in the practice quiz.

Red Hat Certified Systems Admin (RHCSA) EX200 Practice Exam course image
More practice questions

These questions are part of the practice quiz. Start practicing

  • Which command sequence lists all repositories (enabled and disabled) and installs a package with a repository disabled for that operation?
  • How do you create a symbolic link named latest to a file /var/log/app/2024-01.log?
  • Which approach extends an existing logical volume lv_home by 20G and then grows the filesystem accordingly, depending on the filesystem type?
  • Which command sequence creates a new LVM physical volume on /dev/sdb1 and then creates a volume group named vg_data using that PV?
  • What is the maximum number of primary partitions supported by a GPT partition table?
  • Which statement best describes how cron access is controlled on a Linux system?
  • Which redirection appends standard error messages to an existing file?
  • Which command creates a hard link named linkname to a file named file?
  • Which command configures the system to boot directly into a graphical target by default?
  • Which command prints a long listing showing both file permissions and ownership?
  • Which systemd target represents the graphical user interface environment?
  • In tar, what is the meaning of the options -c -v -f?
  • Which command displays the current kernel version?
  • After expanding the underlying block device, which command grows the XFS filesystem mounted at /mnt/mydir?
  • Which command would update the kernel about newly added partitions without rebooting?
  • Which command can be used to display information about kernel packages, including installed and available kernels?
  • To enable NFS client networking on Red Hat 7, which packages should be installed?
  • Which command initialises /dev/sdb1 as a physical volume for LVM?
  • Which path would you read to obtain CPU information from the proc filesystem?
  • Which manual page describes unit configuration files and their locations?
  • Default ACL permissions are mainly used for what purpose?
  • Which command adds an existing user to a specified group?
  • What is SFTP and what is a common command to retrieve a file from a remote server?
  • Which command redirects standard error to a file, overwriting existing content?
  • Which command adds a new group to the system?
  • Which command lists the boot-time impact of each service in order of time spent?
  • How would you mount a new filesystem entry from /dev/vg_data/lv_backups to /mnt/backups and ensure it mounts at boot?
  • Which command reveals detailed information about the kernel package in yum?
  • Which commands generate and view a filesystem label and UUID for a block device?
  • Which command would restart the SSH daemon to apply configuration changes?
  • Which command lists all service unit files and shows whether they are enabled or disabled?
  • Which command removes the default ACL entries from a directory named dir1?
  • Which file-system attribute prevents deletion of files in a directory that is world-writable?
  • Which command lists all yum repositories, including both enabled and disabled?
  • Which command searches for the string 'error' recursively under /var/log with case-insensitive matching and line numbers?
  • What is the maximum disk size for a GPT-based partition?
  • Which of the following is the correct pause-resume signal pair for a stopped process?
  • What is the effect of the sticky bit on a directory in terms of deletion rights?
  • Which command deletes a user and their home directory?
  • How do you configure a systemd timer to run a job every day at 2am?
  • Which command creates a volume group named battlestar from the physical volumes /dev/xvdf1 and /dev/xvdg1?
  • Which command is used to recursively grant the group read and write permissions and also execute permissions on directories when using the -R option?
  • Which of the following describes the command find / -mtime -3?
  • Which command would you use to verify if httpd will start automatically on boot?
  • Which commands will temporarily set SELinux to permissive mode and verify the current mode?
  • Which file is primarily edited to configure sudo privileges when using visudo?
  • In Red Hat firewall-cmd, which sequence of commands would enable the http service in the public zone and apply the changes permanently?
  • Which chmod command sets owner read/write/execute and group/others read/execute on a file named secret.txt?
  • Which pair of commands pauses and resumes a background job respectively?
  • Which command adds the Fedora EPEL repository for yum?
  • Which command searches a repository for files provided by a specific package?
  • Which command would you use to check the size of a mounted filesystem after resizing?
  • Which command downloads the nano package as an RPM using yumdownloader?
  • Which command sets the default target for system at boot?
  • Which command sets the default boot target?
  • Which command removes all permissions for others on a file named file1?
  • What do scp and sftp refer to?
  • Which command shows current active swap spaces?
  • Which command shows all available target unit files on the system?
  • Which command shows the LABEL and UUID for a block device?
  • In virt-install, which option makes the VM display headless (no GUI)?
  • Which pair of commands is used to manage access control lists on a file?
  • Which utility is used to modify Access Control List entries on Linux files?
  • Which command shows a manual page for a command?
  • What does the command pkill -t pts/0 do?
  • As the root user, which command lists all processes running as root and displays their names?
  • Which file contains information about partitions the OS is reading?
  • Which file system is best used with LVM volumes?
  • Which command kills all of the processes associated with the terminal pts/0?
  • Which command is used to verify the integrity of an installed package and its files against the package database?
  • In the chage command, what do the -M and -W options control?
  • Which command creates a file named testfile containing 20 data blocks of 1024 kilobytes each from /dev/urandom?
  • Which redirection appends standard error to an existing file?
  • Which command would search for the string 'error' in all log files under /var/log and show matching lines with context?
  • Which command displays available systemd unit types?
  • Which pgrep flag inverts the match, showing processes that do not match the pattern?
  • How do you freeze a cron job for maintenance and re-enable after the maintenance window?
  • Which command creates a symbolic link named linkname pointing to target?
  • Which DNF command removes packages that are no longer required by any installed package?
  • Which statement correctly describes a hard link?
  • To view the full set of coreutils commands, which command should you use?
  • Which sequence creates an XFS filesystem on /dev/sdXn and mounts it with noatime, updating /etc/fstab?
  • Which command would force a system to reboot into rescue mode from a non-graphical environment?
  • How would you ensure a non-root user can log in via SSH using key-based authentication, and disable password authentication?
  • In pkill, which option targets processes based on the owning user?
  • Which syntax redirects both standard output and standard error to a file, leaving no output on screen?
  • In regular expressions, what does the ? quantifier indicate?
  • Which command would you use to verify if a service is enabled to start at boot?
  • Which option prints lines that do not match the given pattern?
  • Which redirection sends standard error to standard output so both streams share the same destination?
  • Which command would search for a file named motd under the /etc directory?
  • Which commands would you use to examine boot logs and identify boot failures, and which command helps check a failed service?
  • Which statement correctly describes the purpose of 'setfacl --remove-default dir1'?
  • Which command enables a service to start at boot and also starts it immediately, and then allows you to verify its enabled state and status?
  • Which tool provides a real-time, text-based view of system resource usage and processes in Linux?
  • To check whether a service is configured to start automatically at boot (enabled) without starting it, which command would you use?
  • What is the purpose of the updatedb command?
  • What is the correct order of tasks for creating an LVM for the first time?
  • Which command would accurately create a 19 G logical volume named galactica in the battlestar volume group using /dev/xvdf1?
  • Which command sequence creates a new user with a home directory and adds it to the wheel group, then prompts to set a password?
  • Which command would you use to create a GPT partition label on a disk?
  • Which grub boot option is used to drop into an initramfs debug shell during recovery?
  • Which command creates a new volume group named vg_data using the device /dev/sdb1?
  • Which tool(s) would you use to manage GPT-based partitions?
  • Which command lists processes owned by a given user with their PIDs and names?
  • Which statement about the apropos command is accurate?
  • Which command isolates the system into rescue mode?
  • Which command shows the chrony sources used by the NTP service and helps verify configuration changes?
  • Which command starts the at daemon on a systemd-based Linux system?
  • To permit root login over SSH by editing sshd_config and reloading SSH, which actions are performed?
  • Which command would terminate all SSH sessions for a given user?
  • Which command ensures new files created in a directory inherit the directory's group ownership by setting the setgid bit?
  • Which command permanently enables an SELinux boolean to allow httpd to read user content?
  • Which statement about SFTP best describes its functionality?
  • Which commands retrieve a network interface's IP address and its default gateway using iproute2?
  • Which sequence correctly describes creating a new logical volume on new disks using LVM, including preparing disks, PVs, VG, LV, and filesystem, then mounting?
  • Which command lists the active state of all loaded service units?
  • Which yum command, when given the proper argument, displays all packages installed by yum on the system?
  • Where are systemd unit files typically located?
  • What is the purpose of the SIGCONT signal?
  • Which command sets the sticky bit on a directory such as /shared?
  • Which command forces the kernel to reread partition tables after disk changes?
  • Which statement about cp and ACL rules is true?
  • Which sequence creates a new partition on a disk with a GPT label and a 1 GiB ext4 partition, then formats the partition as ext4?
  • Which systemd command lists boot-time details per service?
  • Which command initializes a device as a new physical volume for LVM?
  • To support SMB/CIFS networking between servers on Red Hat 7, which package group is commonly installed?
  • Which command changes the niceness (priority) of a running process?
  • Which command initially prepares a disk to be used by LVM by creating a new physical volume on /dev/sdb1?
  • In the permission expression g+rwX, what does the capital X signify?
  • Which command lists the contents of a tar archive?
  • Which command shows that the nano package is installed by querying installed packages and filtering for nano?
  • Which commands display disk I/O statistics and help identify top I/O wait processes (assuming iotop is installed)?
  • Which command helps locate the binary, source, and manual page locations for a given command?
  • What is the maximum number of primary partitions supported by MBR?
  • Which command isolates the system into the graphical.target?
  • Which sequence correctly creates an XFS filesystem on /dev/battlestar/galactica, creates the mount point, and mounts it at /mnt/mydir?
  • Which commands verify disk space usage and identify directories consuming the most space?
  • Which command can be used to reboot the system?
  • What is the purpose of the command 'yum repolist all'?
  • After adding a service to a firewall, which command reloads the firewall to apply changes?
  • Which filesystem is the default in Red Hat installations?
  • Which NMCLI command creates a Ethernet connection named eth0 with IP 192.168.1.50/24, gateway 192.168.1.1, and sets the DNS server to 8.8.8.8, then brings the connection up?
  • Which command lists hidden Yum groups?
  • Which chrony command shows the currently tracked sources and their statuses?
  • What command enables httpd to start on boot?
  • What are the three load-average time intervals shown by uptime?
  • Which command pattern would select lines that do not start with the letters l, i, n, u, or x?
  • Which command is used to assign a swap signature to a device?
  • Which command installs virtualization related groups using yum groupinstall with multiple group names?
  • What does the command (while true; do echo -n 'Infinite Loop' >> ~/output.file; sleep 1; done) & do?
  • What is the function of the ACL mask during permission evaluation?
  • Which command verifies the integrity of a package and its dependencies on an RPM-based system?
  • Which command locks a user account without deleting it?
  • Which command lists dependencies for the network target?
  • Which command sets the hostname permanently to a new value?
  • Which command configures a new host to use NTP for time synchronization?
  • Which command lists all currently loaded service units?
  • Which command would set a user's password to expire in 90 days and warn 7 days before expiration?
  • Which command shows the currently mounted filesystems including their mount points?
  • Which commands reconfigure SELinux to enforcing mode and verify the current mode?
  • Which command checks if httpd is configured to start automatically on boot?
  • Which command creates a new physical volume suitable for LVM on a disk such as /dev/xvdf1?
  • Which command lists all failed service units?
  • Which command permanently sets an SELinux boolean value?
  • In tar, what does the -v option do when used with -c to create an archive?
  • Which command lists all available time zones on the system?
  • What is the primary purpose of the iostat command in Linux?
  • Which approach configures log rotation to run daily and keep 14 rotated logs?
  • Which command sequence installs the latest available package and updates the system to satisfy dependencies on RHEL 8/9?
  • Which numeric value represents SIGHUP when using kill commands?
  • Where is the file that lists all groups on a Linux system?
  • Which file contains the list of users allowed to run cron jobs on a Linux system?
  • Which command updates the locate database used by the locate utility?
  • Which command shows all service unit files and their enabled/disabled state?
  • Which command extends the logical volume /dev/battlestar/galactica by +20G?
  • Which package provides the locate command on most systems?
  • Which command prints the kernel version, suitable for scripting?
  • Which pair of signals correspond to immediate termination and graceful shutdown respectively?
  • Which statement best describes a local file system?
  • Which command locates all files with the setuid bit set on a Linux system?
  • In package management output, what does the dash '-' symbol indicate?
  • Which command lists the active state of all loaded service unit configuration files?
  • Which command displays information about a swap device?
  • Which command filters the system journal for a specific service and shows entries from the last hour?
  • How do you set a system-wide umask for all users?
  • Which command shows the current default firewall zone?
  • Which command creates a new volume group using a physical volume?
  • Which virt-install command creates a KVM virtual machine with a headless display and a 2GB RAM allocation, 20GB disk, and a CD-ROM OS image?
  • Which command removes all ACL entries from a file named file1?
  • What information does the w command display?
  • In yum output, what does a dash '-' symbol indicate about a package?
  • What does tar -xzvf do?
  • What is the correct order to remove a logical volume and its physical volumes?
  • Which command shows the current ACLs on a file?
  • Which command shows swap devices currently enabled on the system?
  • Which command identifies which package provides a given file, with example /bin/ls?
  • Which command changes the group ownership of a file or directory recursively?
  • Which of the following repository contents correctly adds a local repo at /etc/yum.repos.d/myrepo.repo with baseurl http://repo.example/pub?
  • Which service is typically required to support RPC-based access for mounting NFS shares on a Red Hat 7 system?
  • Where are standard documentation files typically stored on a Linux system?
  • Which form redirects both standard output and standard error to the same file in a Bash shell?
  • Which command creates a new user with the comment field 'Sam Brown' and username sbrow?
  • Where are the anacron job configurations typically located?
  • After editing the /etc/chrony.conf, which command applies the changes?
  • Which statement best describes SCP?
  • Which method is described for gaining access to a system by bypassing normal login via the boot process?
  • In fstab, which option disables the update of file access times?
  • In regular expressions, what does the + quantifier indicate?
  • Which command shows the status of system time synchronization?
  • Which file exposes CPU information in Linux?
  • Which command sets an ACL that gives user alice read permission on a file currently with 644 permissions?
  • Which approach enables a user to run any command without a password in sudo?
  • You’ve increased the size of the /dev/battlestar/galactica LVM volume. It is mounted at /mnt/mydir; which command would you issue for OS and FS to recognize the increase?
  • How do you display all SELinux context for a file and restore default contexts if needed?
  • You are extending a logical volume. To do this, you have to add the /dev/xvdj device to the volume group "battlestar". Which command would you issue to accomplish this task?
  • Which file is edited to configure automatic mounting of filesystems at boot?
  • Which command would you use to extend a logical volume by 5G?
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy