RHCSA Exam 2025 Questions and
Answers
How do you Secure Shell into another system? - --CORRECT ANSWER--ssh
<user>@<host>
How do you execute commands on a remote system via Secure Shell without
actually opening a new shell? - --CORRECT ANSWER--ssh <user>@<host>
<command>
How do you generate a public key and private key file for SSH authentication? - --
CORRECT ANSWER--ssh-keygen
How do you export a public key for SSH authentication on a different machine? - -
-CORRECT ANSWER--ssh-copy-id <user>@<host>
How do you export a *specific* public key for SSH authentication on a different
machine? - --CORRECT ANSWER--ssh-copy-id <user>@<host> -i <key file
path>
If an SSH authentication key has a passphrase, how do you cache that passphrase
on the local machine for passwordless authentication? - --CORRECT ANSWER--
1. eval $(ssh-agent)
....COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 1
,2. ssh-add <key file path>
What is Cockpit? - --CORRECT ANSWER--A server Management Tool
How do you check if a service is running? - --CORRECT ANSWER--systemctl
status <service>
How do you start a service? - --CORRECT ANSWER--systemctl start <service>
How do you enable a service on startup? - --CORRECT ANSWER--systemctl
enable <service>
Which directory contains persistent, system-specific configuration data? - --
CORRECT ANSWER--/etc
Which directory is the top of the system's file hierarchy? - --CORRECT
ANSWER--/
Which directory contains user home directories? - --CORRECT ANSWER--
/home
Which directory contains temporary files? - --CORRECT ANSWER--/tmp
Which directory contains dynamic data, such as for databases and websites? - --
CORRECT ANSWER--/var
Which directory is the administrative superuser's home directory? - --CORRECT
ANSWER--/root
....COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 2
, Which directory contains regular commands and utilities? - --CORRECT
ANSWER--/usr/bin
Which directory contains non-persistent process runtime data? - --CORRECT
ANSWER--/run
Which directory contains installed software programs and libraries? - --CORRECT
ANSWER--/usr
How do you create a directory? - --CORRECT ANSWER--mkdir <directory
name>
How do you copy a file? - --CORRECT ANSWER--cp <old file> <new file>
How do you copy a directory and its contents? - --CORRECT ANSWER--cp -r
<old directory> <new directory>
How do you move (or rename) a file or directory? - --CORRECT ANSWER--mv
<old file> <new file>
How do you remove a file? - --CORRECT ANSWER--rm <file>
How do you remove a directory containing files? - --CORRECT ANSWER--rm -r
<directory>
How do you remove an empty directory? - --CORRECT ANSWER--rmdir
<directory>
....COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 3
Answers
How do you Secure Shell into another system? - --CORRECT ANSWER--ssh
<user>@<host>
How do you execute commands on a remote system via Secure Shell without
actually opening a new shell? - --CORRECT ANSWER--ssh <user>@<host>
<command>
How do you generate a public key and private key file for SSH authentication? - --
CORRECT ANSWER--ssh-keygen
How do you export a public key for SSH authentication on a different machine? - -
-CORRECT ANSWER--ssh-copy-id <user>@<host>
How do you export a *specific* public key for SSH authentication on a different
machine? - --CORRECT ANSWER--ssh-copy-id <user>@<host> -i <key file
path>
If an SSH authentication key has a passphrase, how do you cache that passphrase
on the local machine for passwordless authentication? - --CORRECT ANSWER--
1. eval $(ssh-agent)
....COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 1
,2. ssh-add <key file path>
What is Cockpit? - --CORRECT ANSWER--A server Management Tool
How do you check if a service is running? - --CORRECT ANSWER--systemctl
status <service>
How do you start a service? - --CORRECT ANSWER--systemctl start <service>
How do you enable a service on startup? - --CORRECT ANSWER--systemctl
enable <service>
Which directory contains persistent, system-specific configuration data? - --
CORRECT ANSWER--/etc
Which directory is the top of the system's file hierarchy? - --CORRECT
ANSWER--/
Which directory contains user home directories? - --CORRECT ANSWER--
/home
Which directory contains temporary files? - --CORRECT ANSWER--/tmp
Which directory contains dynamic data, such as for databases and websites? - --
CORRECT ANSWER--/var
Which directory is the administrative superuser's home directory? - --CORRECT
ANSWER--/root
....COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 2
, Which directory contains regular commands and utilities? - --CORRECT
ANSWER--/usr/bin
Which directory contains non-persistent process runtime data? - --CORRECT
ANSWER--/run
Which directory contains installed software programs and libraries? - --CORRECT
ANSWER--/usr
How do you create a directory? - --CORRECT ANSWER--mkdir <directory
name>
How do you copy a file? - --CORRECT ANSWER--cp <old file> <new file>
How do you copy a directory and its contents? - --CORRECT ANSWER--cp -r
<old directory> <new directory>
How do you move (or rename) a file or directory? - --CORRECT ANSWER--mv
<old file> <new file>
How do you remove a file? - --CORRECT ANSWER--rm <file>
How do you remove a directory containing files? - --CORRECT ANSWER--rm -r
<directory>
How do you remove an empty directory? - --CORRECT ANSWER--rmdir
<directory>
....COPYRIGHT ©️ 2025 ALL RIGHTS RESERVED...TRUSTED & VERIFIED 3