100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
RHCSA 2. Using Essential Tools – Questions & Answers $9.99   Add to cart

Exam (elaborations)

RHCSA 2. Using Essential Tools – Questions & Answers

 4 views  0 purchase
  • Course
  • RHCSA
  • Institution
  • RHCSA

RHCSA 2. Using Essential Tools – Questions & Answers

Preview 2 out of 11  pages

  • October 24, 2024
  • 11
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • RHCSA
  • RHCSA
avatar-seller
LeCrae
RHCSA 2. Using Essential Tools – Questions & Answers

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 Right Ans - B. Explanation: Answer B shows the correct syntax.
The 2 redirects error messages, and &1 makes sure that the same is done for
STDOUT.

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

b. /etc/bashrc

c. ~/.bash_profile

d. ~/.bashrc Right Ans - A and B. Explanation: /etc/profile is the file that is
processed for all users who are starting a login shell

A user has created a script with the name myscript. He tries to run it using the
command myscript , but it is not started. The user has verified that the script
permissions are set as executable. Which of the following is the most likely
explanation?

a. An internal command is preventing the startup of the script.

b. Users are not allowed to run scripts.

c. The directory that contains the script is not in the PATH.

, d. The script does not have appropriate permissions. Right Ans - C.
Explanation: On Linux, the current directory is not set in the PATH
variable.

You need the output of the command ls to be used as input for the less
command.
Which of the following examples will do that for you?

a. ls > less

b. ls >> less

c. ls >| less

d. ls | less Right Ans - D. Explanation: A pipe is used to process the output of
the first command and use it as input of the second command.

A user wants to remove his complete history. Which of the following
approaches would do that?

a. Remove the ~/.bash_history file and type history -c .

b. Type history -c .

c. Remove the ~/.bash_history file.

d. Type history -c and close the current shell. Right Ans - A. Explanation:
The command history -c removes the in-memory state from
the history file of current history. Remove ~/.bash_history also to make sure
that all history is removed.

Which of the following is not a valid method to repeat a command from
history?

a. Use Ctrl+R and start typing a part of the command.

b. Use ! followed by the first letters in the command.

c. Use ! followed by the number of the command as listed in history.

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 LeCrae. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

85169 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
$9.99
  • (0)
  Add to cart