โ† All RHCSA Flashcard Decks

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
  1. Which command resets a forgotten root password in RHEL 8 by interrupting the boot process and appending 'rd.break' to the kernel line?

    Answer: Editing the GRUB entry at boot

    Appending 'rd.break' to the kernel line in the GRUB editor drops you into an early shell before root mounts, allowing a password reset.

  2. What is the correct SELinux file context type for content served by Apache (httpd)?

    Answer: httpd_sys_content_t

    Files intended to be served by Apache must have the 'httpd_sys_content_t' SELinux type.

  3. Which firewall-cmd option makes a rule survive a system reboot?

    Answer: --permanent

    The '--permanent' flag writes the rule to the persistent firewalld configuration that survives reboots.

  4. Which command sets the default ACL on a directory so that new files inherit specific permissions?

    Answer: setfacl -m d:u:alice:rw /dir

    The 'd:' prefix in setfacl creates a default ACL that new files and subdirectories inherit.

  5. A logical volume needs to grow from 2G to 5G. Which sequence of commands is correct?

    Answer: lvextend -L 5G /dev/vg0/lv0, then resize2fs /dev/vg0/lv0

    lvextend resizes the logical volume, then resize2fs (or xfs_growfs for XFS) expands the filesystem to fill it.

  6. How do you configure a system to use 192.168.1.1 as the DNS server persistently using NetworkManager?

    Answer: nmcli con mod ipv4.dns 192.168.1.1, then restart connection

    nmcli con mod sets the DNS in NetworkManager's connection profile, which persists and rebuilds /etc/resolv.conf on reconnect.

  7. Which command enables a systemd service to start automatically at boot AND starts it immediately?

    Answer: systemctl enable --now svc

    'systemctl enable --now' creates the symlink for boot persistence and starts the service in one command.