CCTC - Linux actual
Exam questions and
answers 2025 latest
update.
rbash - answer restricted bash shell
/etc/shells - answer location of shells
sh - answer bourne shell, very first iteration of shells for UNIX
$SHELL - answer environment variable to display current shell
being used
$BASH - answer environment variable to display location of
/bin/bash
/dev/null - answer data dump location on the machine
2 - answer file descriptor for stderr
2>/dev/null - answer send all errors to /dev/null
ps --forest - answer shows, in a tree format, the processes and
their parents/children
,which - answer gives the user the path to the executable
whatis - answer gives the user more information about a file
file - answer gives the user the file type of a file
{1..10} - answer brace expansion in the bash shell
$BASH_ENV - answer holds the name of the file to source when a
script is run
Login shell - answer interactive shell created when authenticating
onto a machine
Non-login shell - answer native shell not requiring the start of
/etc/profile because no remote authentication is completed
Non-interactive shell - answer essentially a script.sh, can't interact
with it.
sh, bash, dash, csh, zsh, ksh, tcsh, rbash - answer what are the
different types of shells?
root - answer what user is ALWAYS logged into the system?
0:0 - answer what is the EUID/GUID of root?
, /etc/profile, /etc/bash.bashrc, ~/.bash_profile, ~/.bash_login,
~/.profile, ~/.bashrc - answer what files are called during bash
initialization?
shopt login_shell, echo $- - answer how can you check if you are in
a login shell
redirect input, output, and pipe - answer what do '<', '>', and '|', do
on the command line?
2> - answer how do you redirect stderr
tab completion, command history, brace expansion - answer What
are some features of BASH?
alias - answer bash command to create an alias
unalias - answer bash command to remove an alias
env - answer bash command to show working environment
set - answer bash command to show more detailed output of the
working environment
function - answer bash starting line of script to create a function
hash - answer database to show the bash shell recently accessed
commands
find -exec <cmd> {} \; - answer find command to execute a
command on whatever "find" finds
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 GUARANTEEDSUCCESS. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $14.99. You're not tied to anything after your purchase.