Red Hat System Administration I (RH124) – RHEL 9 Quiz Questions and Answers

Answer :
  • df

Explanation :

The 'du' command is used to display the disk usage of a file system in Linux.2. < 2 > Which command is used to mount a file system in Linux?A) mountB) umountC) fdiskD) lsblkAnswer: AExplanation: The 'mount' command is used to mount a file system in Linux.3. < 3 > Which file system type is commonly used in Linux?A) NTFSB) FAT32C) ext4D) HFS+Answer: CExplanation: The ext4 file system type is commonly used in Linux.4. < 4 > Which command is used to create a new file in Linux?A) touchB) mkdirC) cpD) mvAnswer: AExplanation: The 'touch' command is used to create a new file in Linux.5. < 5 > Which command is used to change the ownership of a file in Linux?A) chownB) chmodC) chgrpD) chrootAnswer: AExplanation: The 'chown' command is used to change the ownership of a file in Linux.6. < 6 > Which command is used to search for a file in Linux?A) findB) grepC) locateD) whereisAnswer: AExplanation: The 'find' command is used to search for a file in Linux.
Answer :
  • `/etc/sysconfig/network-scripts/ifcfg-interface`

Explanation :

To configure network interfaces, including static IP addresses using NetworkManager on RHEL systems, Emma needs to modify the appropriate interface configuration file located in the `/etc/sysconfig/network-scripts/` directory. The file is typically named `ifcfg-interface`, where "interface " corresponds to the network interface name.
Answer :
  • bz2

Explanation :

Three tools for compression : -z , --gzip (tar.gz) - it will compress quickly but the size will not reduce much -j. --bzip tar.bz2 it will take more time compared to gzip but it will create small size compared to gzip) -J, --xz tar.xz (it will take long time and it will compressed to the most )
Answer :
  • Open required ports and set up appropriate proxy settings.

Explanation :

To facilitate communication with the Red Hat Customer Portal when behind a firewall, it's essential to open the necessary ports and configure proxy settings if a proxy is being used, ensuring data can travel to and from the Customer Portal without obstruction.
Answer :
  • restart the ssh service on that machine
  • edit the /etc/ssh/ sshd_config con?guration ?le to allow or prohibit users logging in to the system as root. Add below and save and exit PermitRootLogin yes

Explanation :

The OpenSSH server uses the PermitRootLogin con?guration setting in the /etc/ssh/ sshd_config con?guration ?le to allow or prohibit users logging in to the system as root. PermitRootLogin yes With the PermitRootLogin parameter to yes, as it is by default,
Answer :
  • `nmon`

Explanation :

The `nmon` (short for Nigel's Monitor) command provides a comprehensive performance monitoring tool that includes real-time CPU, memory, network, and disk usage statistics for Linux systems, thus enabling effective monitoring of remote servers.---
Answer :
  • df -T

Explanation :

The df -h command shows mounted devices and the amount of disk space currently in use on these devices. The -T option helps in recognizing real file systems (as opposed to kernel interfaces) because it shows the file system type as well.