100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCSA 2. Using essential tools- Questions and Answers 100% Solved $12.99   Add to cart

Exam (elaborations)

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

 0 view  0 purchase
  • Course
  • RHCSA
  • Institution
  • RHCSA

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

Preview 3 out of 17  pages

  • November 12, 2024
  • 17
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • RHCSA
  • RHCSA
avatar-seller
TheeGrades
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller TheeGrades. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

80796 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.99
  • (0)
  Add to cart