The Bash shell provides a number of important services for users. This quiz will provide an introduction to those services.
Start Congratulations - you have completed What the Bash Shell Does.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1
Select one thing the Bash shell DOES NOT do.
interpret commands
enable pipelines
set variables
customize user environment
reject POSIX expressions
Question 1 Explanation:POSIX (Portable Operating System Interface for Computer Environments) provides a method for portability and is used by Bash.
Question 2
When you type a command in the shell, the command is interpreted and then executed by the Bash shell.
True
False
Question 3
The Bash shell enables redirection. Which is an example of redirection.
cd /var/www/html && ls -l
uname -r
ls -la > filelist.txt
cd mydocs || mkdir mydocs || cd mydocs
Question 4
What command provides a list of user variables?
echo $VARIABLES
env
echo $SHELL
cat $variables
ls myvar
Question 5
How would you change the history file size from 1000 to 1300?
chage $history=1300
echo $HISTCMD 1300
cp $HISTFILE 1000/1300
HISTFILE=1300
echo $HISTFILESIZE 1300
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
Get Results
There are 5 questions to complete.
List
Return
Shaded items are complete.
1
2
3
4
5
End
Return
You have completed
questions
question
Your score is
Correct
Wrong
Partial-Credit
You have not finished your quiz. If you leave this page, your progress will be lost. All doneNeed more practice!Keep trying!Not bad!Good work!Perfect!
Now that we've officially launched BashShell.net, you will find new Bash Shell tutorials arriving daily. Please be patient as we increase the difficulty of the projects and present more advanced Bash Shell examples over time.
Comments on this entry are closed.