The file script.sh in the current directory contains the following content:
#!/bin/bash echo $MYVAR
The following commands are used to execute this script:
MYVAR=value
./script.sh
The result is an empty line instead of the content of the variable MYVAR. How should MYVAR be set in order to make script.sh display the content of MYVAR?
Answer : E
Running the command rm Downloads leads to the following error:
rm: cannot remove 'Downloads/': Is a directory
Which of the following commands can be used instead to remove Downloads, assuming Downloads is
empty? (Choose two correct answers.)
Answer : B, E
What is the purpose of the PATH environment variable?
Answer : A
What command displays manual pages? (Specify ONLY the command without any path or parameters.)
See Below Explanation:
Answer : A
Most commands on Linux can display information on their usage. How can this information typically be displayed?
Answer : E
When typing a long command line at the shell, what single character can be used to split a command across multiple lines?
See Below Explanation:
Answer :
Members of a team already have experience using Red Hat Enterprise Linux. For a small hobby project, the team wants to set up a Linux server without paying for a subscription. Which of the following Linux distributions allows the team members to apply as much of their Red Hat Enterprise Linux knowledge as possible?
Answer : D