This quiz covers key concepts of networking in Linux, including variable exporting, command aliases, shell variables, and file execution upon login.
Imported
Validated by running the env command
Exported
Redirected to the BASH shell
Rate this question:
True
False
Rate this question:
/etc/profile
~/.bash_profile
~/.bash_login
~/.profile
Rate this question:
Ls /var
Env
Set
Echo
Rate this question:
End
Endif
Stop
Fi
Rate this question:
Cd /home/user1 && echo “welcome home”
Cat “welcome home” || cd /home/user1
Cd /home/user1 || cat “welcome home”
Echo “welcome home” && cd /home/user1
Rate this question:
Echo HOME=
Echo ~
Echo $HOME
Echo ls HOME
Rate this question:
2
0
1
3
Rate this question:
#!
-o
-a
!
Rate this question:
It cannot be done as there already is an environment variable cat associated with the cat command.
It cannot be done as there already is a command cat on the system.
When you use the cat command at the command prompt with the intention of viewing a text file, the date appears instead.
There is no effect until the alias is imported as it is a user-declared variable.
Rate this question:
There are no comment lines in a shell script.
Begin the line with #!.
Begin the line with !.
Begin the line with #.
Rate this question:
After you open the file and view the contents, the contents are lost.
The system generated different Standard Ouput.
You did not append the Standard Error to the Error file and as a result, it was overwritten when the command was run a second time.
You must specify a new file each and every time you redirect as the system creates the specified file by default.
Rate this question:
True
False
Rate this question:
Nothing is wrong with the command.
The file descriptor was not declared; unless 1 for Standard Ouput or 2 for Standard Error is indicated, the command will fail.
The ls command is one of the commands that cannot be used with redirection; you must use | to pipe instead.
The file listofhostfile will always only contain Standard Error as a file descriptor was not declared.
Rate this question:
Standard Input
Standard Deviation
Standard Ouput
Standard Error
Rate this question:
Read
Sum
Verify
Test
Rate this question:
Not begin with a number
Not begin with a capital letter
Start with a number
Start with an underscore “_”
Rate this question:
It redirects both Standard Error and Standard Ouput to the same location.
It does not accomplish anything.
It redirects Standard Error and Standard Input to the same location.
It appends Standard Ouput to a file.
Rate this question:
The answer is red or blue.
The answer is not red nor blue.
The code would cause an error.
The answer is red or blue. The answer is not red nor blue.
Rate this question:
Quiz Review Timeline (Updated): Mar 22, 2023 +
Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.
Wait!
Here's an interesting quiz for you.