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

RHCSA Test Questions & Answers

Rating
-
Sold
-
Pages
41
Grade
A+
Uploaded on
12-11-2024
Written in
2024/2025

RHCSA Test Questions & Answers

Institution
RHCSA
Course
RHCSA











Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
RHCSA
Course
RHCSA

Document information

Uploaded on
November 12, 2024
Number of pages
41
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

RHCSA Test Questions & Answers
you system is going to use as a router for two networks , one network is 192.168.0.0/24 and
anoher network is 192.168.1.0/24.both network IP address has asinged . how will you forward
the packets form one network to another network? Correct Ans-vi /proc/sys/net




Automount two senarios ... 1 nfsdata mount automaticall 2- mount /users/user1 /user/user2
automatically. both are presented from master nfs server. Correct Ans-AUTOMOUNT

2 stpes

=======

/etc/auto.master

first you nee to edit the master confighuratin file (/etc/auto.master) in this file you identify the
mount point from the master remote server ( for instance, /nfsdata )next on the same line you
identify the name of the secondary frile, as all further configuration happens in this secondary
file. the line create could looks as follow

/nfsdata /etc/auto.nfsdata

in the secondary file you put the name of the subdirectory that will be created in the mount
point directory as a relative filename. for instance you start the line with files , to mount
/nfsdata/files . after the name of he subdirectory you specify NFS mount option , as well as
serer and share name to access the NFS share.

Files -rw server2:/nfsdata

LAB1 configuring direct and indeirect maps to mount NFS shares

---------------------------------------

1- install autofs

,yum install -y autofs

2-check the remote NFS master server is providing the mountpoints

showmount -e server2.example.com

3- create a mapping file in /etec/auto.master

/nfsdata /etc/auto.nfsdata

4- create aa file /etc/auto.nfsdata

files 192.168.55.150:/data

the system will create the automatically files folder and nfsdata

the system will create /nfsdata automatically on the system.

you need to do

cd /nfsdata/files

-------

mount the user directory from nfs server

in /etc/export file you have entery of

/users

in users you have already user1 and user2 directory

you have already /users exported

1- go to /etc/auto.master and add

/users /etc/auto.users

2- go to the /etc/auto.users

* -rw server2:/users/&

systemctl autofs restart

,cd /users/user1 ---> to check if it is working or not

------------------------------------------------------




change the letter in vi from a file Correct Ans-Type :%s/ox/OX/g.




how to remove user from group Correct Ans-gpasswd -d username groupname




Vim

1- how to set the line numbers

2- how to copy paste the line Correct Ans-:set num

go to the line and yy and go to the new line and do p




find command: find path search option action

1- search a file

2- search the files names started with *usb

3-find files smaller than 1MB in size in the root user's home directory

4-find the files larger than +40M

5-find the file in root with the ownership set to user and owning group set to any group other
than

6- to search for directories by the ame src n /usr at a maximum of two subdirectory

7- find the file in the /etc directory that were modified -mtime more than the +sign 2000 dats
ago

, 8- find files in the /var/log directoru that have been modified (-mmin int eh past
100min Correct Ans-1- find . -name file01 -print

2-fine /dev -name *usb

3- find ~ -size -1M

4- find / -size +40M

5- find / daemon -not -group user1

6- find /usr -maxdepth 2 -type d -name src

7- find /etc -mtime +2000

8-find files in the /var/log -mmin -100




how to delete the ACL enteries set Correct Ans-setfacl -x u:user200 acliuser1

setfacl -b acluser1 ----> deletes the ACLs




1- view hisotry of failed user login attempt

2-report recent user login attmepts Correct Ans-1-lastb

2-lastlog




how to modify the prompt Correct Ans-export PS1="< $LOGNAME on $ (hostname) in \
$PWD"




how to control the user access for at and corn Correct Ans-at.allow
/at.denay/cron.allow/cron.deny just enter the username here per line.

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.
TheeGrades NEWCASTLE UNIVERSITY
View profile
Follow You need to be logged in order to follow users or courses
Sold
98
Member since
1 year
Number of followers
5
Documents
13139
Last sold
2 weeks ago
THEEGRADES

Ace Your Exams with Premium Study Guides! Unlock your full potential with our expertly crafted revision materials. Whether you're prepping for exams, quizzes, or looking to solidify your understanding, we've got you covered. Our study guides, summaries, and test banks are designed to simplify complex topics and enhance your knowledge retention. What We Offer: Comprehensive Summaries: Key points made easy for quick revision. Test Banks: Practice with real exam-like questions. Exam Prep Guides: Focused content to boost your scores. Instant Access: Download and start studying immediately! Don’t just study harder—study smarter! Excel in your exams with our trusted materials. You are Welcome. SUCCESS!!!

Read more Read less
3.3

24 reviews

5
9
4
4
3
3
2
1
1
7

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