Question: Question 1 ( 7 . 6 points ) Listen Review the BASH code and selec t the best answer to call the value of hobby?
Question points
Listen
Review the BASH code and selec t the best answer to call the value of hobby?
hobby"swimming"
Question options:
echo $Hobby
echo "hobby"
echo $swimming
echo $hobby
Question points
Listen
What does the following command do in BASH? ps u rtest more
Question options:
Prints out the the results of the ps command for the user rtest one screen at a time.
Writes a file called rtestMore.
Prints out the the results of the ps command for the user rtest and includes all processes from all users.
Prints out more details for the user rtest from the ps command.
Question points
Listen
What is the difference between echo $myArray@ and echo $myArray in your BASH script?
Question options:
For Loop Example with will echo individually each values
For Loop Exampe with @ will echo only once all the values
For Loop Example with @ will echo individually each values
For Loop Example with @ or will echo individually each values
Question points
Listen
What command in BASH should you use to find additional information for the command ls
Question options:
help ls
man ls
help man ls
ls is not a valid command in BASH..
Question points
Listen
What command do you type in BASH on a Linux system to retrive all basic system information?
Question options:
uname all
uname
systemInfo
uname a
Question points
Listen
What command do you need to type in BASH to remove the value of the variable $mypet. You just typed mypetfish.
Question options:
unset $mypet
unset $fish
unset mypet
unset fish
Question points
Listen
Which BASH command will print out all entires to the screen within the array superUsers
Question options:
echo $superUsers
echo $superUsers@
echo $superUsersadmin "admin "admin
All of the answers are correct.
Question points
Listen
What command should you type to define a comment in your code when writing a BASH script?
Question options:
#
$
Question points
Listen
What is the correct syntax to retrive the first key of an array called exploits in BASH?
Question options:
echo explots
echo $explots
echo explots
echo $explots
Question points
Listen
How do you retrive the Bash Array size? Array length
Question options:
echo "myArray contain $#myArray elements"
echo "myArray contain $#myArray elements"
echo "myArray contain $#myArray elements"
echo "myArray contain $#myArray elements"
Question points
Listen
What command should you type to view the recent commands you typed in terminal on a Linux OS
Question options:
last
history
man history
All of the answers are correct.
Question points
Listen
What BASH command will generate an array called superUsers in BASH?
Question options:
superUseradmin "admin "admin
superUseradmin "admin "admin
superUseradmin "admin "admin
None of the answers listed are correct.
Question points
Listen
What command should you use to search for the process ID of the application Firefox in BASH?
Question options:
ps u whoami grep firefox
ps user grep firefox
ps u whoami grep firefox
ps u whoami grep "firefox"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
