Red Hat Certified System Administrator RHCSA Exam Questions & Answers

Practice 43 free Red Hat Certified System Administrator RHCSA exam questions with answers and community-discussed explanations. Each question has its own page where you can reveal the correct answer and debate it in the comments.

All 43 questions

  1. Q1 Explain the steps required to configure a Red Hat Enterprise Linux 9 system to log all daemon-related messages to a file named…
  2. Q2 On ServerB, configure NTP synchronization using the Chrony service to ensure accurate timekeeping. Verify that the Chrony service is running and that…
  3. Q3 As a newly appointed System Administrator in a RHEL 9 environment, your primary responsibilities include Network Monitoring, Backup, and Restore. However, you…
  4. Q4 On ServerA, create a new user named "Samir" and grant him the ability to execute commands with root privileges using sudo. Ensure…
  5. Q5 How can you enable packet forwarding for IPv4 on a system running Red Hat Enterprise Linux 9? Provide a brief explanation of…
  6. Q6 In Red Hat Enterprise Linux 9, what is the command used to add a new user to the system?
  7. Q7 Using Red Hat Enterprise Linux 9, install the Apache HTTP Server and configure it to retrieve documents from a folder mounted through…
  8. Q8 In Red Hat Enterprise Linux 9, what are the steps required to resize a filesystem partition? Please outline the process, considering the…
  9. Q9 Using Red Hat Enterprise Linux 9, write a command to search for all files within the '/etc' directory that have been modified…
  10. Q10 On test.server.com, configure journald to retain log data between reboots.
  11. Q11 On ServerB, configure the bash history to store the last 1000 commands entered.Requirements:Configure the bash history to retain the last 1000 commands…
  12. Q12 In Red Hat Enterprise Linux (RHEL) 9, which shell is set as the default for system users?
  13. Q13 Using Red Hat Enterprise Linux 9, how would you modify the login shell of the user 'marty' to bash?
  14. Q14 Create a Bash script that configures the Apache web server (httpd) to start automatically upon system boot in Red Hat Enterprise Linux…
  15. Q15 Using Red Hat Enterprise Linux 9 (RHEL 9), perform the following tasks:Create four users: babu, peter, newmen, and david.Assign babu and peter…
  16. Q16 Which of the following commands kills the process with the PID 112 but allows the process to "clean up" before exiting?
  17. Q17 How can you configure a Red Hat Enterprise Linux 9 system (specifically, the 'linux2.lab' server) to prevent direct root logins over SSH?
  18. Q18 On rhel.server.com, compress a directory /usr/bin to the format /home/bin.tar.bz2 using the bzip2 command.
  19. Q19 Using Red Hat Enterprise Linux 9 (RHEL 9), format the logical volume named 'newlv' with the ext4 filesystem. Then, ensure it is…
  20. Q20 In RHEL 9, what command would you use to determine the current utilization of disk space?
  21. Q21 On ServerB, find all files in the /etc directory that are larger than 5MB and copy them to /find/5mfiles.
  22. Q22 On rhel.server.com, as a system administrator on a RHEL 9 system, you are tasked with deploying a static website using Podman in…
  23. Q23 On ServerB, as the root user, create a cron job that deletes empty directories from the /tmp directory at 10 pm on…
  24. Q24 On ServerB, find all regular files owned by the root user in the /usr/ directory and copy these files into the /find/rootfiles/…
  25. Q25 On ServerB, use /dev/sdb to create a new 1G swap partition that takes effect automatically at boot start.
  26. Q26 How can the current directory and its subdirectories be searched for a file named MyFile.xml?
  27. Q27 On ServerB, create a user sam with a UID of 1500, and ensure that he does not have access to any interactive…
  28. Q28 Develop a script suitable for Red Hat Enterprise Linux 9 (RHEL 9) that accomplishes the following tasks:Creates a new user account named…
  29. Q29 Disable user SSH password-less connection requests on ServerB.
  30. Q30 Using Red Hat Enterprise Linux 9, create a cron job that appends the phrase 'These pretzels are making me thirsty!' to the…
  31. Q31 As the root user on a Red Hat Enterprise Linux 9 system, schedule a cron job to execute the disk command 'df…
  32. Q32 On ServerB, ensure NTP sync is configured.
  33. Q33 On ServerA, ensure that boot messages are displayed, not silenced, to aid in troubleshooting.
  34. Q34 Using the relevant utility in Red Hat Enterprise Linux 9, how would you create a 50GB thin-provisioned volume named '1thinpool'?
  35. Q35 How can you configure the systemd journal on a Red Hat Enterprise Linux 9 system to enable persistent logging?
  36. Q36 Develop a script for Red Hat Enterprise Linux 9 that accomplishes the following tasks:Create a new user called 'new_user', ensuring they have…
  37. Q37 How can you unmount a remote filesystem in Red Hat Enterprise Linux 9 using command line tools?
  38. Q38 How can you create a hard link to a file in a Red Hat Enterprise Linux 9 system?
  39. Q39 How to create a local YUM repository using a RHEL 9 ISO image, assuming the image is mounted on either /mnt or…
  40. Q40 Using Red Hat Enterprise Linux 9, create a directory named 'friends' within the /tmp directory. Then, change the directory's ownership to the…
  41. Q41 On ServerB, configure IPv4 packet forwarding to enable the system to forward IPv4 packets between network interfaces. Ensure that this configuration is…
  42. Q42 How can you modify the Bash history settings in Red Hat Enterprise Linux 9 to ensure that it retains the last 1000…
  43. Q43 On ServerB, write a script named “wordcheck.sh” that performs a dictionary lookup to determine if a given word exists in a custom…

More Red Hat certifications

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need