RHCSA (Red Hat Certified System Administrator) Exam — Questions and Answers
Question 1: What is the default behavior of the 'drop' zone in firewalld?
- Forwards all traffic to the default zone
- Silently drops all incoming traffic with no response (Correct answer)
- Accepts all traffic from trusted sources only
- Rejects all traffic with an ICMP error
Correct answer: Silently drops all incoming traffic with no response
The drop zone discards all incoming packets without sending any rejection message back to the sender.
Question 2: A system administrator needs to install the `nginx` package specifically from the 'epel' repository, which is configured but currently disabled. Which command should be used to perform the installation in a single step?
- dnf install nginx --repo=epel
- dnf install nginx --from-repo epel
- dnf repository-install epel nginx
- dnf install nginx --enablerepo=epel (Correct answer)
Correct answer: dnf install nginx --enablerepo=epel
The `--enablerepo` option tells dnf to temporarily enable the specified repository for the current transaction. This is the standard method for installing a package from a repository that is configured but not enabled by default. The other options use incorrect syntax for this operation.
Question 3: What `firewall-cmd` command permanently allows SSH traffic through the firewall?
- iptables -A INPUT -p tcp --dport 22 -j ACCEPT
- firewall-cmd --add-port=22/tcp
- firewall-cmd --zone=public --open-service ssh
- firewall-cmd --permanent --add-service=ssh && firewall-cmd --reload (Correct answer)
Correct answer: firewall-cmd --permanent --add-service=ssh && firewall-cmd --reload
Using `--permanent` with `--add-service=ssh` and then `--reload` ensures the SSH rule survives reboots.
Question 4: You want to create a logical volume using 100% of the free space in vg0. Which command achieves this?
- lvcreate --full -n lv0 vg0
- lvcreate -l 100%FREE -n lv0 vg0 (Correct answer)
- lvcreate -L 100% -n lv0 vg0
- lvcreate -l 100FREE -n lv0 vg0
Correct answer: lvcreate -l 100%FREE -n lv0 vg0
The -l 100%FREE syntax tells lvcreate to use all remaining free extents in the volume group.
Question 5: Which command will grant the user `auditor` read-only access to the file `/var/log/secure` without changing the file's owner or primary group permissions?
- usermod -aG root auditor
- setfacl -m u:auditor:r-- /var/log/secure (Correct answer)
- chmod o+r /var/log/secure
- chown auditor /var/log/secure
Correct answer: setfacl -m u:auditor:r-- /var/log/secure
The `setfacl` command is used to set Access Control Lists (ACLs), which provide a more granular permission system than standard Unix permissions. The `-m u:auditor:r--` option modifies the ACL to specifically grant the user 'auditor' read-only (`r--`) permissions on the file, without affecting the base owner, group, or other permissions.
Question 6: What does the sticky bit do when set on a directory?
- Only the file owner or root can delete files within the directory (Correct answer)
- The directory cannot be renamed by non-owners
- Files in the directory cannot be executed
- All files inherit the directory's group ownership
Correct answer: Only the file owner or root can delete files within the directory
The sticky bit prevents users from deleting files they don't own inside a shared directory.
Question 7: Which nmcli command assigns the IP address 192.168.1.50/24 to connection 'eth0'?
- nmcli dev mod eth0 ipv4.addr 192.168.1.50/24
- nmcli con set eth0 ip4 192.168.1.50/24
- nmcli con add eth0 ipv4.addresses 192.168.1.50/24
- nmcli con mod eth0 ipv4.addresses 192.168.1.50/24 (Correct answer)
Correct answer: nmcli con mod eth0 ipv4.addresses 192.168.1.50/24
nmcli con mod modifies an existing connection; ipv4.addresses sets the static IP with prefix.
Question 8: Which configuration file defines system-wide resource limits (e.g., max open files) for PAM-authenticated sessions?
- /etc/pam.d/common-session
- /etc/security/limits.conf (Correct answer)
- /etc/sysctl.conf
- /etc/systemd/system.conf
Correct answer: /etc/security/limits.conf
/etc/security/limits.conf sets per-user and per-group limits enforced by the pam_limits module at login.
Question 9: A system administrator recently ran several `dnf` updates and installations. To troubleshoot a new issue, they need to see a detailed list of what packages were installed, updated, or removed in the most recent transaction. Which command provides this specific information?
- dnf history
- dnf log last
- dnf history info last (Correct answer)
- dnf history list
Correct answer: dnf history info last
`dnf history` by itself lists all transactions with their IDs. To see the specific details of a transaction, such as which packages were altered, you use `dnf history info <ID>`. The keyword `last` is a convenient alias for the most recent transaction ID.
Question 10: A sysadmin has created a logical volume and now needs to make it usable by the operating system. What are the next two essential steps after using `lvcreate`?
- D. Run `vgextend` on the LV, then mount it.
- B. Mount the LV, then create a filesystem on it.
- A. Create a filesystem on the LV, then mount it. (Correct answer)
- C. Add the LV to `/etc/fstab`, then run `pvcreate` on it.
Correct answer: A. Create a filesystem on the LV, then mount it.
After a logical volume is created with `lvcreate`, it is just a raw block device. The next step is to create a filesystem on it using a command like `mkfs.xfs` or `mkfs.ext4`. Once the filesystem exists, the logical volume can be mounted to a directory to make it accessible for storing files.
Question 11: A user account named `testuser` exists. A system administrator needs to add this user to the `wheel` supplementary group and also change their login shell to `/usr/bin/zsh`. Which of the following commands accomplishes both tasks in a single operation?
- groupmod -a wheel testuser && usermod -s /usr/bin/zsh testuser
- usermod -G wheel -s /usr/bin/zsh testuser
- useradd -aG wheel -s /usr/bin/zsh testuser
- usermod -aG wheel -s /usr/bin/zsh testuser (Correct answer)
Correct answer: usermod -aG wheel -s /usr/bin/zsh testuser
The command `usermod -aG wheel -s /usr/bin/zsh testuser` is correct. `usermod` is used to modify an existing user. The `-aG` flags append (`-a`) the user to a supplementary group (`-G`). It is critical to use `-a` to avoid removing the user from other supplementary groups. The `-s` flag sets the new login shell. `useradd` is for creating new users. Omitting `-a` with `-G` would replace the user's supplementary group list entirely.
Question 12: Which command displays the dependency tree for the `sshd.service` unit?
- systemctl status sshd.service --tree
- systemctl list-dependencies sshd.service (Correct answer)
- journalctl -u sshd.service --tree
- systemctl show sshd.service --deps
Correct answer: systemctl list-dependencies sshd.service
`systemctl list-dependencies` shows all units that a given unit depends on in a tree format.
Question 13: After installing the `httpd` package, a system administrator wants to list all the files that were placed on the system as part of that specific package. Which of the following commands is used for this purpose?
- dnf show httpd --files
- rpm -qf httpd
- rpm -ql httpd (Correct answer)
- dnf list-files httpd
Correct answer: rpm -ql httpd
The `rpm` command is the underlying package manager and is ideal for querying the local RPM database about installed packages. The `-q` flag is for query, and `-l` lists the files owned by the specified package. The other commands are either syntactically incorrect or perform different functions.
Question 14: Which command lists all cron jobs for the current user?
- crontab -v
- crontab -r
- crontab -l (Correct answer)
- crontab -e
Correct answer: crontab -l
`crontab -l` lists the current user's scheduled cron jobs without opening an editor.
Question 15: A user reports they cannot delete a file they own inside the `/tmp` directory, even though the directory permissions appear to be `drwxrwxrwt`. What is the most likely reason for this issue?
- The file has an immutable attribute set with `chattr`.
- The user's umask is preventing the deletion.
- The Sticky Bit is set on the `/tmp` directory, preventing users from deleting files they do not own. (Correct answer)
- The user does not have write permissions on the file itself.
Correct answer: The Sticky Bit is set on the `/tmp` directory, preventing users from deleting files they do not own.
The 't' at the end of the permission string `drwxrwxrwt` indicates that the sticky bit is set. When the sticky bit is set on a directory, it restricts file deletion. Only the file's owner, the directory's owner, or the root user can delete or rename files within that directory, regardless of who has write permissions on the directory itself. This is a common security measure for public directories like `/tmp`.
Question 16: An administrator runs 'rpm -V httpd' and sees 'S.5....T. /etc/httpd/conf/httpd.conf'. What does the '5' indicate?
- File size has changed
- MD5 checksum differs from the package (Correct answer)
- SELinux context differs
- File permissions differ
Correct answer: MD5 checksum differs from the package
In rpm -V output, '5' means the MD5 checksum (digest) of the file differs from what the package recorded at install time.
Question 17: Which file stores the mapping of file paths to SELinux contexts used by restorecon?
- /etc/selinux/config
- /var/lib/selinux/contexts.db
- /etc/selinux/targeted/contexts/files/file_contexts (Correct answer)
- /etc/sysconfig/selinux
Correct answer: /etc/selinux/targeted/contexts/files/file_contexts
The file_contexts file under the policy directory contains all path-to-context mappings that restorecon and matchpathcon reference.
Question 18: Which SELinux boolean allows Apache to connect to a network database like MariaDB?
- httpd_can_network_connect (Correct answer)
- httpd_enable_cgi
- httpd_use_nfs
- httpd_can_network_relay
Correct answer: httpd_can_network_connect
httpd_can_network_connect permits Apache to initiate outbound TCP connections, including to database ports.
Question 19: A user wants to set an ACL so that user 'alice' has read-only access to /data/report.txt. Which command is correct?
- getfacl -m u:alice:r /data/report.txt
- setfacl -x u:alice:r /data/report.txt
- chmod u:alice:r /data/report.txt
- setfacl -m u:alice:r /data/report.txt (Correct answer)
Correct answer: setfacl -m u:alice:r /data/report.txt
setfacl -m modifies (adds/changes) an ACL entry; u:alice:r grants read to alice.
Question 20: What is the primary difference between SELinux's 'enforcing' and 'permissive' modes?
- Permissive mode completely disables SELinux, while enforcing mode enables it.
- Enforcing mode blocks and logs policy violations, while permissive mode only logs them without blocking. (Correct answer)
- Enforcing mode logs denials but allows actions, while permissive mode blocks and logs actions.
- There is no functional difference; permissive is just an alias for enforcing.
Correct answer: Enforcing mode blocks and logs policy violations, while permissive mode only logs them without blocking.
In 'enforcing' mode, SELinux actively enforces the security policy, meaning it will both log the AVC denial and block the disallowed action. In 'permissive' mode, SELinux does not enforce the policy; it allows the action to proceed but still logs the AVC denial message. This makes permissive mode a useful tool for troubleshooting and policy development.
Question 21: What is the purpose of the 'object_r' role seen in file SELinux contexts like 'system_u:object_r:httpd_sys_content_t:s0'?
- It means the file is owned by system processes
- It is a placeholder role used for filesystem objects since roles apply only to subjects (Correct answer)
- It indicates the object belongs to the root role
- It grants the object read-only access
Correct answer: It is a placeholder role used for filesystem objects since roles apply only to subjects
Roles are meaningful only for subjects (processes); object_r is the conventional placeholder role for all filesystem objects.
Question 22: On a Linux computer, which of the following files is used to initialize a system-wide environment?
- tc/group
- /etc/profile (Correct answer)
- /etc/syslog.conf
- /etc/startup
Correct answer: /etc/profile
The file used to initialize a computer-wide environment on a Linux computer is /etc/profile. <br> <br> The /etc/profile file is a system-wide initialization script that is executed during the login process for all users on the system. It sets up the environment variables and executes commands that need to be run for every user's shell session.
Question 23: What is the effect of running 'dnf install @Base' on a RHEL system?
- Installs the Base module stream
- Installs the Base environment group of packages (Correct answer)
- Installs all available packages
- Installs only the base kernel package
Correct answer: Installs the Base environment group of packages
The @ prefix indicates an environment group; 'dnf install @Base' installs the Base environment group as defined in the repository metadata.
Question 24: Which port does SSH use by default?
- 23
- 2222
- 22 (Correct answer)
- 21
Correct answer: 22
SSH operates on TCP port 22 by default, though this can be changed in `sshd_config` for security.
Question 25: A user needs to edit /etc/sudoers safely. Which command should they use?
- visudo (Correct answer)
- nano /etc/sudoers
- vi /etc/sudoers
- sudo edit /etc/sudoers
Correct answer: visudo
`visudo` locks the file and validates syntax before saving, preventing a broken sudoers file.
Question 26: Which command verifies that a container image will run correctly as a systemd service by checking the generated unit file before enabling it?
- systemctl verify container_name
- podman generate systemd --name container_name (Correct answer)
- podman service --check container_name
- podman inspect --systemd
Correct answer: podman generate systemd --name container_name
'podman generate systemd --name' outputs the unit file content to stdout so you can review it before placing it in the systemd directory.
Question 27: How do you mount the host directory '/data' to '/mnt/data' inside a Podman container?
- podman run --bind /data:/mnt/data nginx
- podman run -m /data:/mnt/data nginx
- podman run --mount-dir /data:/mnt/data nginx
- podman run -v /data:/mnt/data nginx (Correct answer)
Correct answer: podman run -v /data:/mnt/data nginx
The '-v host_path:container_path' (volume) flag bind-mounts a host directory into the container.
Question 28: Which command shows active SSH connections to the local system?
- who -s
- ss -tnp | grep :22 (Correct answer)
- sshd --list
- netstat -ssh
Correct answer: ss -tnp | grep :22
`ss -tnp` lists TCP socket connections and filtering for `:22` shows active SSH sessions with their PIDs.
Question 29: What command verifies the syntax of the SSH server configuration file without restarting the service?
- sshd -t (Correct answer)
- sshdconfig -v
- systemctl verify sshd
- sshd --check
Correct answer: sshd -t
`sshd -t` parses the configuration file and reports syntax errors without starting or restarting the daemon.
Question 30: What is the default password aging maximum number of days set for a new user created with useradd on RHEL?
- 90
- 60
- 99999 (Correct answer)
- 30
Correct answer: 99999
By default, useradd sets PASS_MAX_DAYS to 99999, effectively meaning the password never expires.
Question 31: What does 'semanage permissive -a httpd_t' do?
- Disables SELinux policy for the Apache binary
- Logs all httpd_t actions without enforcing any
- Sets the entire system to permissive mode
- Puts only the httpd_t domain into permissive mode while the rest of the system remains enforcing (Correct answer)
Correct answer: Puts only the httpd_t domain into permissive mode while the rest of the system remains enforcing
Per-domain permissive mode lets a single type run unrestricted and log denials without affecting the enforcement of other domains.
Question 32: A script requires JAVA_HOME to be set for all users at login. Which file is the best place to define this environment variable system-wide?
- /etc/environment.d/java.conf
- ~/.bashrc
- /etc/profile.d/java.sh (Correct answer)
- /etc/bashrc
Correct answer: /etc/profile.d/java.sh
Files in /etc/profile.d/ with a .sh extension are sourced for all users during login, making it the standard place for system-wide environment variables.
Question 33: Which file on RHEL must be updated to allow the new SSH port through the SELinux policy?
- /etc/ssh/selinux.conf
- semanage port -a -t ssh_port_t -p tcp NEWPORT (Correct answer)
- /etc/selinux/ssh_ports
- setsebool -P ssh_port NEWPORT
Correct answer: semanage port -a -t ssh_port_t -p tcp NEWPORT
You use `semanage port -a -t ssh_port_t -p tcp <port>` to add the new port to the SELinux SSH port type policy.
Question 34: Which of the following commands correctly creates a bzip2-compressed tar archive named `backup.tar.bz2` containing the contents of the `/home/user/data` directory?
- tar -czf backup.tar.bz2 /home/user/data
- tar -xjf backup.tar.bz2 /home/user/data
- tar -cvf backup.tar.bz2 /home/user/data
- tar -cjf backup.tar.bz2 /home/user/data (Correct answer)
Correct answer: tar -cjf backup.tar.bz2 /home/user/data
The correct command is `tar -cjf backup.tar.bz2 /home/user/data`. The `-c` flag is for creating an archive. The `-j` flag specifies bzip2 compression. The `-f` flag is used to specify the output archive filename. The `-z` flag is for gzip compression, `-x` is for extracting, and omitting a compression flag like `-j` or `-z` would create an uncompressed archive.
Question 35: You are TestGeeks Inc.'s network administrator. The business's network is built on Linux. You're interested in discovering who owns the /etc/inittab file. Which command from the list below will you use to complete the task?
- pm -e /etc/inittab
- rpm -qf /etc/inittab (Correct answer)
- rpm -i /etc/inittab
- rpm -qa /etc/inittab
Correct answer: rpm -qf /etc/inittab
rpm -qf /etc/inittab is correct because the -qf (query file) option tells RPM to report which installed package owns a given file. The -i flag installs a package, -e erases one, and -qa lists all packages rather than performing a file-to-package ownership lookup.
Question 36: How do you use SCP to copy a local file to a remote host's `/tmp` directory?
- ssh user@host cp localfile /tmp/
- rsync localfile user@host:/tmp/
- scp localfile user@host:/tmp/ (Correct answer)
- scp user@host:/tmp/ localfile
Correct answer: scp localfile user@host:/tmp/
`scp source user@host:destination` securely copies files over SSH; the colon separates the host from the remote path.
Question 37: A user account named 'tempuser' is no longer needed, and a sysadmin has been tasked with removing the account along with its home directory and mail spool. Which command will achieve this?
- userdel -r tempuser (Correct answer)
- usermod -L tempuser
- rm -rf /home/tempuser
- userdel tempuser
Correct answer: userdel -r tempuser
The `userdel` command is used to delete a user account. By default, it does not remove the user's home directory. The `-r` option must be used to also remove the user's home directory and mail spool. `usermod -L` would lock the account, not delete it. Simply using `rm -rf` on the home directory would leave the user account entry in files like `/etc/passwd` and `/etc/shadow`.
Question 38: Which command lists all currently active SELinux boolean values along with their descriptions?
- getsebool -a
- sestatus -b
- semanage boolean -l (Correct answer)
- seinfo --bool
Correct answer: semanage boolean -l
semanage boolean -l shows each boolean, its current and default state, and a human-readable description.
Question 39: Which command lists all containers, including stopped ones, in Podman?
- podman containers show
- podman list --all
- podman ps -a (Correct answer)
- podman ps
Correct answer: podman ps -a
'podman ps -a' shows all containers regardless of state; without '-a' only running containers are shown.
Question 40: After making several changes to the permanent firewalld configuration, a sysadmin wants to activate them. What is the key difference between running `firewall-cmd --reload` and `systemctl restart firewalld`?
- There is no functional difference; both commands achieve the same outcome.
- `--reload` keeps existing stateful connections alive, while `restart` drops all active connections. (Correct answer)
- `--reload` applies both runtime and permanent rules, while `restart` only applies permanent rules.
- `--reload` only applies new rules, while `restart` applies new rules and removes old ones.
Correct answer: `--reload` keeps existing stateful connections alive, while `restart` drops all active connections.
The `firewall-cmd --reload` command loads the permanent configuration into the running firewall without losing the state information of current network connections. In contrast, `systemctl restart firewalld` stops and then starts the entire daemon, which will drop all active connections as the stateful firewall information is lost. For applying new permanent rules without interrupting service, `--reload` is the preferred method.
Question 41: What does the 'cut -d: -f1' command do when applied to /etc/passwd?
- Extracts the first field using colon as delimiter (Correct answer)
- Removes the first colon from each line
- Cuts the first character of each line
- Extracts the first line of the file
Correct answer: Extracts the first field using colon as delimiter
cut -d: -f1 uses colon as the field delimiter and extracts field number 1, which is the username in /etc/passwd.
Question 42: Which command is used to make a temporary, non-persistent change to an SELinux boolean value?
- setsebool -P httpd_can_sendmail on
- semanage boolean -m --on httpd_can_sendmail
- setsebool httpd_can_sendmail on (Correct answer)
- getsebool httpd_can_sendmail on
Correct answer: setsebool httpd_can_sendmail on
The `setsebool` command is used to change the value of an SELinux boolean. When used without the `-P` flag, the change is temporary and will revert to the default setting upon reboot. The `-P` flag makes the change persistent. `getsebool` is used to view booleans, not set them. `semanage boolean` is an alternative for persistent changes.
Question 43: A web administrator moves a new website's content from their home directory to `/srv/www/content` using the `mv` command. Standard file permissions are correct, but the website is returning '403 Forbidden' errors. An `ls -Z` on the content reveals the context `unconfined_u:object_r:user_home_t:s0`. Which command will fix the context issue for the existing files and ensure new files created in that directory get the correct context?
- semanage fcontext -a -t httpd_sys_content_t "/srv/www/content(/.*)?" && restorecon -Rv /srv/www/content (Correct answer)
- chcon -R -t httpd_sys_content_t /srv/www/content
- setenforce 0
- chmod -R 755 /srv/www/content
Correct answer: semanage fcontext -a -t httpd_sys_content_t "/srv/www/content(/.*)?" && restorecon -Rv /srv/www/content
Moving files (`mv`) preserves the original SELinux context (`user_home_t`), which httpd cannot read by default. The `semanage fcontext` command permanently adds a rule for the `/srv/www/content` directory and its contents to have the `httpd_sys_content_t` type. The subsequent `restorecon -Rv` command applies this newly defined rule to the existing files and directories. `chcon` would only provide a temporary fix that would not survive a system relabel. `setenforce 0` disables SELinux, which is a security risk and not the proper solution. `chmod` only affects standard Linux permissions, not the SELinux context.
Question 44: What is the correct SELinux file context type for content served by Apache (httpd)?
- httpd_config_t
- httpd_exec_t
- httpd_sys_content_t (Correct answer)
- httpd_var_run_t
Correct answer: httpd_sys_content_t
Files intended to be served by Apache must have the 'httpd_sys_content_t' SELinux type.
Question 45: After creating a new systemd unit file at `/etc/systemd/system/custom.service`, a system administrator tries to start it but receives an error that the unit is not found. Which command must be run first for systemd to recognize the new unit file?
- systemctl refresh-units
- systemctl restart systemd
- systemctl enable custom.service
- systemctl daemon-reload (Correct answer)
Correct answer: systemctl daemon-reload
Whenever a systemd unit file is added, modified, or deleted on the filesystem, the `systemctl daemon-reload` command must be executed. This command instructs the systemd manager to rescan its configuration directories and reload the unit files from disk, making it aware of any changes.
Question 46: A DNF module stream is enabled but you want to switch to a different stream. What must you do first?
- dnf module switch <module>
- dnf module reset <module> (Correct answer)
- dnf module remove <module>
- dnf module disable <module>
Correct answer: dnf module reset <module>
You must run 'dnf module reset <module>' to clear the active stream before enabling a different one.
Question 47: Which command permanently adds the 'http' service to the 'public' firewalld zone?
- firewall-cmd --zone=public --add-service=http --permanent (Correct answer)
- firewall-cmd --zone=public --add-service=http
- firewall-cmd --add-service=http --zone=public --save
- firewall-cmd --permanent --zone=public --open-service=http
Correct answer: firewall-cmd --zone=public --add-service=http --permanent
The --permanent flag writes the rule to the zone configuration file so it persists across reloads.
Question 48: After noticing a file has extended ACLs, indicated by a `+` sign in the `ls -l` output, a system administrator wants to completely remove all ACL entries and revert to standard POSIX permissions. Which command should be used?
- setfacl -k /path/to/file
- chmod 755 /path/to/file
- setfacl -x /path/to/file
- setfacl -b /path/to/file (Correct answer)
Correct answer: setfacl -b /path/to/file
The `setfacl` command with the `-b` (or `--remove-all`) option is the correct way to strip all extended ACL entries from a file or directory, leaving only the base permissions for the owner, group, and others. The `+` sign in the `ls -l` output will disappear after this command is successfully executed.
Question 49: A logical volume needs to grow from 2G to 5G. Which sequence of commands is correct?
- pvcreate, then lvcreate
- vgextend, then lvresize
- lvextend -L 5G /dev/vg0/lv0, then resize2fs /dev/vg0/lv0 (Correct answer)
- lvreduce -L 5G /dev/vg0/lv0, then e2fsck
Correct answer: lvextend -L 5G /dev/vg0/lv0, then resize2fs /dev/vg0/lv0
lvextend resizes the logical volume, then resize2fs (or xfs_growfs for XFS) expands the filesystem to fill it.
Question 50: Which command would you use to add port 8888 to the http_port_t SELinux type so Apache can listen on it?
- chcon -t http_port_t :8888
- setsebool httpd_use_port 8888
- semanage port -a -t http_port_t -p tcp 8888 (Correct answer)
- semanage fcontext -a -t http_port_t -p tcp 8888
Correct answer: semanage port -a -t http_port_t -p tcp 8888
semanage port -a adds a port-to-type mapping; without it, Apache is denied the bind permission on non-standard ports.
Question 51: For Perfect Solutions Inc., you are a network administrator. The business's network is built on Linux. A Linux server's configuration file has to be changed. Which of the aforementioned tools will you employ to complete the task?
- MS Word
- NMAP
- GZIP
- VI (Correct answer)
Correct answer: VI
On a Linux computer, users may create, change, and store files using the VI, a visual interactive text editor. It operates in the below modes: <br> Command: This is the command's default mode. In this mode, several commands can modify the opened text. <br> Text entry: In this mode, users can type straight into the text screen area.
RHCSA (Red Hat Certified System Administrator) Exam
The RHCSA (Red Hat Certified System Administrator) Exam exam validates essential knowledge and skills required for certification or licensure in this field.
Exam Rules
- You can skip questions and return to them later
- Flag questions for review before submitting
- No feedback shown until you submit the entire exam
- Unanswered questions count as wrong — answer everything
- 10 pretest questions are mixed in and don't affect your score
- Timer auto-submits when time runs out
- Your progress is auto-saved every 30 seconds
Practice questions written with AI assistance and published by Nathan Beja, founder of Practice Test Geeks. They are not real exam questions. Exam facts are checked against the official sources linked below. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- redhat.com — Test delivery, retake policy, score release, renewal, score validity, exam information · verified Dec 2026