sessionIcon

We're open through the holidays to support your upskilling goals — book your session today!

sessionIcon

We're open through the holidays to support your upskilling goals — book your session today!

koenig-logo

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 :
  • 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 :
  • 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 :
  • 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.
Answer :
  • useradd username

Explanation :

The 'useradd' command is used in RHEL systems to create a new user account with default settings. It is important to note that options like 'adduser' may be used in other Linux distributions, but 'useradd' is standard in RHEL.
Answer :
  • It serves as the parent of all directories, hosting essential system files and subdirectories.

Explanation :

The root directory (/) is the topmost directory in the Linux file system hierarchy, containing essential system files and subdirectories. It is the starting point of the directory structure and ensures organized file storage.
Answer :
  • 754

Explanation :

The octal value for "rwxr-xr-- " is 754, where 7 represents read, write, and execute permissions for the owner, 5 represents read and execute permissions for the group, and 4 represents read-only permissions for others.