Lpi 102-500 LPI Level 1 Online Training
Lpi 102-500 Online Training
The questions for 102-500 were last updated at Nov 22,2024.
- Exam Code: 102-500
- Exam Name: LPI Level 1
- Certification Provider: Lpi
- Latest update: Nov 22,2024
Which command makes the shell variable named VARIABLE visible to subshells?
- A . export $VARIABLE
- B . export VARIABLE
- C . set $VARIABLE
- D . set VARIABLE
- E . env VARIABLE
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
- A . ~/.bashconf
- B . ~/.bashrc
- C . ~/.bashdefaults
- D . ~/.bash_etc
- E . ~/.bash_profile
Which command allows you to make a shell variable visible to subshells?
- A . export $VARIABLE
- B . export VARIABLE
- C . set $VARIABLE
- D . set VARIABLE
- E . env VARIABLE
What is the purpose of the file /etc/profile?
- A . It contains the welcome message that is displayed after login.
- B . It contains security profiles defining which users are allowed to log in.
- C . It contains environment variables that are set when a user logs in.
- D . It contains default application profiles for users that run an application for the first time.
Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)
- A . The user issuing the command must be in the group script.
- B . The script file must be found in the $PATH.
- C . The script file must have the executable permission bit set.
- D . The script must begin with a shebang-line (#!) that points to the correct interpreter.
- E . The file system on which the script resides must be mounted with the option scripts.
Which of the following words is used to restrict the records that are returned from a SELECT query based on a supplied criteria for the values in the records?
- A . LIMIT
- B . FROM
- C . WHERE
- D . IF
Which of the following configuration files should be modified to set default shell variables for all users?
- A . /etc/bashrc
- B . /etc/profile
- C . ~/.bash_profile
- D . /etc/.bashrc
Which of the following commands lists all defined variables and functions within Bash?
- A . env
- B . set
- C . env -a
- D . echo $ENV
When the command echo $$ outputs 12942, what is the meaning of 12942?
- A . It is the process ID of the echo command.
- B . It is the process ID of the current shell.
- C . It is the process ID of the last command executed.
- D . It is the process ID of the last command which has been placed in the background.
How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?
- A . unset -v FOOBAR;./myscript
- B . set -a FOOBAR="";./myscript
- C . env -u FOOBAR./myscript
- D . env -i FOOBAR./myscript