โ† All Linux Flashcard Decks

System Administration Flashcards

7 cards from real Linux practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 System Administration flashcards as text
  1. Which command displays the current runlevel on a systemd-based Linux system?

    Answer: who -r

    The `who -r` command displays the current runlevel on both SysV and systemd systems.

  2. What does the `/etc/fstab` file control?

    Answer: Filesystem mount points and options at boot

    The `/etc/fstab` file defines how disk partitions and filesystems are mounted automatically at boot.

  3. Which `systemctl` subcommand prevents a service from starting automatically at boot without stopping it if currently running?

    Answer: systemctl disable

    `systemctl disable` removes the service from startup targets without affecting its current running state.

  4. A system has 4GB RAM and no swap. What is the recommended swap size according to Red Hat guidelines for hibernation support?

    Answer: 8GB

    Red Hat recommends swap equal to RAM + square root of RAM for hibernation; for 4GB RAM that rounds up to 8GB.

  5. What is the purpose of the `nice` command in Linux?

    Answer: Adjust process scheduling priority

    `nice` launches a command with a modified scheduling priority (niceness value from -20 to 19).

  6. Which log file on a systemd system would you query to see kernel boot messages?

    Answer: journalctl -k

    `journalctl -k` (or `--dmesg`) displays kernel messages from the current boot stored in the systemd journal.

  7. What does the `umask 022` setting mean for a newly created file?

    Answer: Files are created with permissions 644

    Default file permissions (666) minus umask (022) results in 644 (rw-r--r--) for new files.