Linux Final NOS 120 UPDATED ACTUAL QUESTIONS AND CORRECT ANSWERS
, Because Standard Error and Standard Output represent False
the results of command and Standard Input represents
the input required for a command, only Standard Error
and Standard Output can be redirected to/from a file.
True or False?
Before a user-defined variable can be used by processes exported
that run in subshells, that variable must be ___ _.
The alias command can be used to make a shortcut to a True
single command. True or False?
Which of the following files is always executed /etc/profile
immediately after any user logs in to a Linux system and
receives a BASH shell?
Which command could you use to see a list of all set
environment and user-defined shell variables as well as
their current values?
Every if construct begins with if and must be terminated fi
with?
Which of the following will display the message welcome cd /home/user1 && echo "welcome home"
home if the cd /home/user1 command is successfully
executed?
The current value for the HOME variable is displayed by echo ~
which of the following commands? (Choose all that echo $HOME
apply.)
Which of the following file descriptor numbers represents 1
stdout?
Which of the following operators reverses the meaning of !
a test statement?
What would be the effect of using the alias command to When you use the cat command at the command prompt with the intention of
make an alias for the date command named cat in honor viewing a text file, the date appears instead.
of your favorite pet?
How do you indicate a comment line in a shell script? Begin the line with #.
You have redirected Standard Error to a file called Errors. You did not append the Standard Error to the Error file and as a result, it was
You view the contents of this file afterward and notice overwritten when the command was run a second time.
that there are six error messages. After repeating the
procedure, you notice that there are only two error
messages in this file. Why?
, Because Standard Error and Standard Output represent False
the results of command and Standard Input represents
the input required for a command, only Standard Error
and Standard Output can be redirected to/from a file.
True or False?
Before a user-defined variable can be used by processes exported
that run in subshells, that variable must be ___ _.
The alias command can be used to make a shortcut to a True
single command. True or False?
Which of the following files is always executed /etc/profile
immediately after any user logs in to a Linux system and
receives a BASH shell?
Which command could you use to see a list of all set
environment and user-defined shell variables as well as
their current values?
Every if construct begins with if and must be terminated fi
with?
Which of the following will display the message welcome cd /home/user1 && echo "welcome home"
home if the cd /home/user1 command is successfully
executed?
The current value for the HOME variable is displayed by echo ~
which of the following commands? (Choose all that echo $HOME
apply.)
Which of the following file descriptor numbers represents 1
stdout?
Which of the following operators reverses the meaning of !
a test statement?
What would be the effect of using the alias command to When you use the cat command at the command prompt with the intention of
make an alias for the date command named cat in honor viewing a text file, the date appears instead.
of your favorite pet?
How do you indicate a comment line in a shell script? Begin the line with #.
You have redirected Standard Error to a file called Errors. You did not append the Standard Error to the Error file and as a result, it was
You view the contents of this file afterward and notice overwritten when the command was run a second time.
that there are six error messages. After repeating the
procedure, you notice that there are only two error
messages in this file. Why?