โ† All RHCSA Flashcard Decks

RHCSA Linux System Administration 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 Linux System Administration flashcards as text
  1. Which command creates a physical volume on /dev/sdc for use with LVM?

    Answer: pvcreate /dev/sdc

    pvcreate initializes a block device as an LVM physical volume by writing the PV metadata.

  2. How do you configure a NetworkManager connection to use the static IP 192.168.1.50/24 with gateway 192.168.1.1?

    Answer: nmcli con mod eth0 ipv4.addresses 192.168.1.50/24 ipv4.gateway 192.168.1.1 ipv4.method manual

    nmcli con mod modifies an existing connection profile; ipv4.method manual disables DHCP and applies the static address.

  3. Which directive in /etc/ssh/sshd_config disables root login over SSH?

    Answer: PermitRootLogin no

    PermitRootLogin no is the standard sshd_config directive that prevents root from authenticating via SSH.

  4. A script needs to run as root at reboot via cron. Which crontab time field triggers this?

    Answer: @reboot

    @reboot is a cron shorthand that runs the command once when the cron daemon starts, typically at system boot.

  5. Which command shows the SELinux boolean 'httpd_can_network_connect' and its current value?

    Answer: getsebool httpd_can_network_connect

    getsebool prints the current on/off state of one or more SELinux booleans.

  6. What command archives /etc into /backup/etc.tar.gz while preserving permissions?

    Answer: tar -czpf /backup/etc.tar.gz /etc

    The -p flag tells tar to preserve file permissions and ownership in the archive.

  7. Which command sets the default systemd boot target to multi-user (non-graphical) mode permanently?

    Answer: systemctl set-default multi-user.target

    set-default creates a symlink from /etc/systemd/system/default.target to multi-user.target, persisting across reboots.