RHCSA Exam Study Guide with
Complete Solutions
break-in process - Answer✔️✔️-rd.break inserted at the end of the line
starting with "linux16"
mount -o rw,remount /sysroot
chroot /sysroot
passwd
touch /.autorelabel
exit
systemctl isolate graphical.target
rename a file - Answer✔️✔️-mv <original> <newname>
execute multiple separate commands in a single line - Answer✔️✔️-<first
command>; <second command>
brace expansion - Answer✔️✔️-touch file{1..9}
output redirection into file - Answer✔️✔️-<command> > <destination>
append output to existing file - Answer✔️✔️-<command> >> <destination>
stdout redirect - Answer✔️✔️-<command> 1> <destination>
stderr redirect - Answer✔️✔️-<command> 2> <destination>
1
, ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM
how can you tell if a user has a non-login shell? - Answer✔️✔️-
/sbin/nologin homedir location in /etc/passwd
how do you impersonate root but log your actions as your current user
account? - Answer✔️✔️-sudo -i
what command would you use to enable, restart, mask a service? -
Answer✔️✔️-systemctl
shows currently logged in users - Answer✔️✔️-w
what would you run to change password expiration policies for an
individual user? - Answer✔️✔️-chage
what would you run to move a single file from one host to another user's
homedir on a remote machine? - Answer✔️✔️-scp <localfile>
user@remotehost:~/
you want to make sure members of the wheel group can run root
commands as themselves (not root.) where do you go? - Answer✔️✔️-visudo
how do you make an alias in bash? - Answer✔️✔️-alias=<command> in
.bashrc in homedir
make a directory. - Answer✔️✔️-mkdir
make an empty file. - Answer✔️✔️-touch
remove a directory and its contents recursively. - Answer✔️✔️-rm rf
2
, ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM
change a directory to be owned by a group. - Answer✔️✔️-chown
:<groupname> <directory>
make a directory collaborative to a group with rwx for owner and group
and no access for others. - Answer✔️✔️-chmod 2770 <file>
make a file with rwxr-x-wx - Answer✔️✔️-chmod 753 <file>
change wd to root filesystem - Answer✔️✔️-cd /
make a child directory and a parent directory in a single command. -
Answer✔️✔️-mkdir -p /<parent>/<child>
add a sticky bit. - Answer✔️✔️-chmod +t <dir>
what's a sticky bit? - Answer✔️✔️-users can't delete files in a directory that
they don't own.
oh no, the network broke. add a new connection. - Answer✔️✔️-nmcli con
and tab your way to victory. don't forget to reload the config after
specifying dns, then enable the interface. or use nmtui. don't forget the
subnet mask in either case or it will for sure break.
show your ip address - Answer✔️✔️-ip addr
schedule an hourly job. - Answer✔️✔️-write the script and put it in
/etc/cron.hourly, then restart crond
schedule a one-time job in the future. - Answer✔️✔️-<command> | at
<timespec>
3