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

RHCSA 2. Using essential tools- Questions and Answers 100% Solved

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

RHCSA 2. Using essential tools- Questions and Answers 100% Solved

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
17
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

RHCSA 2. Using essential tools- Questions and
Answers 100% Solved

Bash allows for the creation of a different environment in the login shell and in the subshell but
to synchronize settings; by default the subshell settings are included when entering a login shell.
Correct Ans-Describe the differencies between login shells and subshells




Messages in '/etc/motd' display after a user has successfully logged in to a shell.

(Notice that users in a graphical environment do not see its contents after a graphical

login.) Using '/etc/motd' can be a convenient way for system administrators to inform users.
Correct Ans-How to display a login message to users who successfully logged in into a shell ?




Another way to send information to users is by using /etc/issue.




The contents of this file display before the user logs in. This provides an excellent means of
specifying specific login instructions to users who are not logged in yet. Correct Ans-How to
display a login message to users before they login into a shell ?




To find information in man pages, you can search the mandb database by using

'apropos' or 'man -k' . (they are equivalent)



If the database is current, getting access to the information

you need is easy. Just type 'man -k' , followed by the keyword you want to search for.

,This command looks in the summary of all man pages that are stored in the mandb database.
Correct Ans-How to find the correct man page ?




If the man database isn't up to date update it by executing the 'mandb' command as root
without any arguments.



It will see whether new man pages have been installed and update the man database
accordingly. Correct Ans-How to update the man database ?




Apart from the information that you'll find in man, another system provides help about
command usage. This is the info system.




Most commands are documented in man, but some commands are documented only in the info
system. If that is the case, the "see also" section of the man page of that command will tell you
that "The full documentation for ... is maintained as a Texinfo manual."



If that happens, you can read the Info page using the command 'pinfo' or 'info' . Both
commands work, but

in pinfo , special items such as menu items are clearly indicated, which is why using pinfo is
recommended.




Info pages are organized like web pages, which means that they are organized in a hierarchical
way. To browse

, through that hierarchy, type 'n' to go to the next page, 'p' to go to the previous page, or 'u' to
move up in the hierarchy. Correct Ans-Describe the info command

B. Explanation: Answer B shows the correct syntax. The 2 redirects error messages, and &1
makes sure that the same is done for STDOUT. Correct Ans-Which of the following enables
you to redirect standard output as well as

errors to a file?




a. 1&2> file



b. 2>&1 file




c. >1&2 file



d. 1>2& file




A and B. Explanation: /etc/profile is the file that is processed for all users who are starting a
login shell Correct Ans-You are looking for a variable that is set in a bash login shell for all
users.

Which of the following files is the most likely location where this variable is

set? (Choose two.)



a. /etc/profile

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

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