Question
Assuming var1=10 (var1 is a variable), which of the following will NOT show var1=10 on the screen? Question 1 options: echo var1=$var1 echo 'var1=$var1' echo
Assuming var1=10 (var1 is a variable), which of the following will NOT show var1=10 on the screen?
Question 1 options:
echo var1=$var1 | |
echo 'var1=$var1' | |
echo "var1=$var1" | |
printf var1=$var1 |
Save
Question 2 (0.1 points)
Which character is used to continue a command to the next line?
Question 2 options:
\ | |
/ | |
+ | |
> |
Save
Question 3 (0.1 points)
Which command is used to accept user input from keyboard?
Question 3 options:
read | |
get | |
accept | |
input |
Save
Question 4 (0.1 points)
Which of the following about command alias is NOT correct?
Question 4 options:
An alias can be removed | |
alias is a Shell Built-in command | |
alias name can be the same as the original command name | |
The original command cannot be reached until the alias is removed |
Save
Question 5 (0.1 points)
Which of the following is a NOT valid shell for Linux
Question 5 options:
bash | |
csh | |
ash | |
sh |
Save
Question 6 (0.1 points)
Which of the following is not a Shell Built-in?
Question 6 options:
cd | |
dir | |
type | |
export |
Save
Question 7 (0.2 points)
Which of the following is NOT the correct way to get the number of all subdirectories?
Question 7 options:
ls -al | grep d | wc -l | |
ls -Fa | grep / | wc-l | |
ls */ .*/ -d | wc -l | |
ls -la | grep ^d | wc -l |
Save
Question 8 (0.2 points)
Which of the following use of channel reroute symbol (syntax) is incorrect?
Question 8 options:
cat | |
cat 2> file1 | |
cat >> file1 | |
read |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started