RHCSA Set 1 Exam Questions and
Answers
What is the shell in Linux? - Answer -Interface (buffer) between user and kernel (OS)
Interprets user commands
Not part of the kernel (OS), but interacts with the kernel to execute programs, create
files, etc.
3 components of Linux syntax - Answer -command options argument
ex .
ls -l /etc
What is the $PATH command ? - Answer -In Linux, the $PATH variable is an
environment variable that specifies a list of directories where the operating system
should look for executable files when a command is entered in the shell
What is the which command used for ? - Answer -The which command in Linux is used
to locate the executable file associated with a given command or program
ex.
which ls
> /usr/bin/ls
What does the history command reveal ? - Answer -history will show a list of commands
saved in Bash history
What is the ./bash_history file ? - Answer -The ~/.bash_history file in Linux is a hidden
file that stores the command history for the Bash shell. Each time you run a command in
a Bash shell session, that command is recorded in the ~/.bash_history file
What are the two modes of vim? - Answer -Command mode - gives the ability to enter a
command, but not modify the file
input mode - allows the user to change the contents of the file
, What is a shell environment ? - Answer -The shell environment in Linux refers to the set
of variables and settings that define how the shell (command-line interface) behaves.
This includes environment variables, which store information about the system
environment, user preferences, and configuration settings
What are variables ? - Answer -Variables are fixed names that can be assigned to
dynamic values
ex.
$LANG = en_US.UTF-8
What does the env command display ? - Answer -The env command will display an
overview of all variables in the current shell
What is the /etc/profile file ? - Answer -/etc/profile is a generic file that is processed by
all users upon login.
What is the /etc/bashrc file ? - Answer -the /etc/bashrc file is processed when subshells
are started
What is the ~/.bash_profile file ? - Answer -In ~/.bash_profile, User specific login shell
variables can be defined
What is the ~/.bashrc - Answer -In ~/.bashrc file, a user-specific file, sub-shell variables
can be defined
Difference between login shell and subshell - Answer -A login shell is started
immediately upon a user logging in. From the login shell, a user may run scripts, which
will start a subshell of the login shell.
How to use man in Linux ? - Answer -the man command is used to display the manual
pages for various commands, utilities, and system calls
ex. man ls
the manual page for ls will be displayed in the terminal
ex. man -k <keyword>
This will display a list of commands and topics related to the keyword
How would you add a variable for a specific user and set a variable system-wide? -
Answer -To set a variable for a specific user (and all subshells) use the ~/.bashrc file.
To set a variable system-wide use the /etc/bashrc file.
/boot - Answer -contains all files and dirs that are needed to boot the Linux Kernel.
Often mounted on separate device.
The benefits of buying summaries with Stuvia:
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
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
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 millyphilip. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.99. You're not tied to anything after your purchase.