100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

RHCSA Exam Study Guide with Complete Solutions

Rating
-
Sold
-
Pages
17
Grade
A+
Uploaded on
28-08-2024
Written in
2024/2025

RHCSA Exam Study Guide with Complete Solutions break-in process - Answer️️ - inserted at the end of the line starting with "linux16" mount -o rw,remount /sysroot chroot /sysroot passwd touch /.autorelabel exit systemctl isolate t 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 ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM 2 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 ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM 3 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/y, then restart crond schedule a one-time job in the future. - Answer️️ -command | at timespec ©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM 4 did you set a password for all the users you just created? go check and see if they're encrypted. - Answer️️ -cat /etc/shadow you want to view something and search it, but not edit it on accident. - Answer️️ -less filename change my timezone. use a big text interface with a list of continents. - Answer️️ -tzselect what's the easiest way to tell if you're already using ntp? - Answer️️ - timedatectl you've got a custom ntp server to add. where do you put it? - Answe

Show more Read less
Institution
RHCSA
Course
RHCSA

Content preview

©SOPHIABENNET@2024/2025 Tuesday, August 20, 2024 10:21 AM


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

Written for

Institution
RHCSA
Course
RHCSA

Document information

Uploaded on
August 28, 2024
Number of pages
17
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
SophiaBennett Howard Community College
View profile
Follow You need to be logged in order to follow users or courses
Sold
140
Member since
1 year
Number of followers
5
Documents
9098
Last sold
2 weeks ago
EXAM GAME-CHANGER

Exam Questions and Answers Section : Study Like a Pro, Study Smart, Study with Sophia.

3.7

26 reviews

5
10
4
5
3
7
2
1
1
3

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions