LabSim Exam

Two users should have identical settings, yet one is having problems with the display on his screen and you suspect there is a difference in their environment variables. Which command will display all the environment variables?
1) print
2) echo
3) display
4) env

4) env

Which command will display all the environment variables on the system?


You want the directory /sbin/special to always be a part of the PATH. You always want to keep all the current entries in your PATH statement. Which of the following commands would you use?
1) PATH=$PATH:$/sbin/special
2) PATH=PATH&/sbin/special
3) PATH=/sbin/special
4) PATH=$PATH:/sbin/special

4) PATH=$PATH:/sbin/special

What line must you add to /etc/profile to make sure /sbin/custom is always part of the PATH, but also keep all the current entries in the PATH statement? (enter the commands as if at the command prompt)

PATH=$PATH:/sbin/custom:export PATH

You need to set the COMP variable to the value 1745. Which command will set the variable so it is available to other shell programs?
1) COMP=1745
2) set COMP=1745
3) set COMP to 1745
4) export COMP=1745

4) export COMP=1745

You recently used the HOST=FS4 command. What command should you use to make the environment variable to apply to all child sessions?
1) env HOST
2) unset HOST
3) set HOST
4) export HOST

4) export HOST

Which of the following presents the greatest security risk?
1) The system has a large file named core.
2) The second field for every user in the /etc/passwd file is x.
3) There are several disabled user accounts.
4) The PATH statement includes . (period).

4) The PATH statement includes . (period).

Which of the following commands will configure the shell to retain 300 recently-used commands in the ~/.bash_history file for multiple shell sessions?
2) BASH=300


Which environment variable affects the number of past commands used in the current shell session?


You want to view the number of commands your HISTSIZE environment variable is set to save. You don't want to have to scroll through all the environment variables. Which command shows you the value for the HISTSIZE variable?
1) cat /etc/profile I grep "HISTSIZE"
3) cat $HISTSIZE
4) echo $HISTSIZE

4) echo $HISTSIZE

Which command shows the value of the environmental variable currently set for the terminal?
1) echo $TERM
2) echo TERM
3) echo %TERM%
4) echo %TERM

1) echo $TERM

Which of the following statements best describes the PATH environment variable?
1) It specifies the filename where past commands are stored.
2) It contains the directory prefixes used to search for programs and files.
3) It contains the path of the current working directory.
4) It specifies the characters the shell uses to indicate normal user ($), root user (#) and similar items.

2) It contains the directory prefixes used to search for programs and files.

Which command will display only the environment variables applied to child sessions?


Please allow access to your computer’s microphone to use Voice Recording.

Having trouble? Click here for help.

We can’t access your microphone!

Click the icon above to update your browser permissions and try again


Reload the page to try again!


Press Cmd-0 to reset your zoom

Press Ctrl-0 to reset your zoom

It looks like your browser might be zoomed in or out. Your browser needs to be zoomed to a normal size to record audio.

Please upgrade Flash or install Chrome
to use Voice Recording.

For more help, see our troubleshooting page.

Your microphone is muted

For help fixing this issue, see this FAQ.

Star this term

You can study starred terms together

Voice Recording