RHCSA EX200 Flashcards
7 cards from real RHCSA practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 RHCSA EX200 flashcards as text
Which command creates a new physical volume on /dev/sdc for use with LVM?
Answer: pvcreate /dev/sdc
'pvcreate' initializes a disk or partition with LVM metadata, making it a physical volume.
You need to schedule a one-time task to run in 30 minutes. Which command should you use?
Answer: at now + 30 minutes
'at' schedules one-time jobs; 'now + 30 minutes' specifies the execution time relative to the current time.
Which command permanently changes the SELinux context of /srv/web to httpd_sys_content_t and updates the policy database?
Answer: semanage fcontext -a -t httpd_sys_content_t '/srv/web(/.*)?' && restorecon -Rv /srv/web
semanage fcontext adds a persistent policy rule; restorecon applies it, making the change survive a 'restorecon' or relabel.
Which /etc/fstab field controls the order of filesystem checks at boot?
Answer: Field 6 (pass)
The sixth field (pass) controls fsck order: 0=skip, 1=root first, 2=other filesystems checked after root.
A user must be able to run '/usr/bin/systemctl restart httpd' as root without a password. Which sudoers entry achieves this?
Answer: alice ALL=(root) NOPASSWD: /usr/bin/systemctl restart httpd
The sudoers syntax is 'user host=(runas) options: command'; NOPASSWD before the colon disables password prompting for that command.
Which command displays the disk usage of each subdirectory under /home, sorted by size, in human-readable format?
Answer: du -sh /home/* | sort -h
'du -sh' summarizes each directory's size in human-readable format, and 'sort -h' sorts by human-readable size.
How do you configure a container to start automatically when the host system boots using systemd under a rootless podman setup?
Answer: Generate a systemd unit with 'podman generate systemd', place it in ~/.config/systemd/user/, and run 'systemctl --user enable'
Rootless podman uses user-level systemd units; 'podman generate systemd' creates the unit, and 'systemctl --user enable' enables it with loginctl linger for persistence.