Lpi 102-500 LPI Level 1 Online Training
Lpi 102-500 Online Training
The questions for 102-500 were last updated at Dec 24,2024.
- Exam Code: 102-500
- Exam Name: LPI Level 1
- Certification Provider: Lpi
- Latest update: Dec 24,2024
CORRECT TEXT – (Topic 1)
Which directory in /etc is used to keep a sample copy of files and directories for when a new user has a home directory created? (Please provide the full path)
When the command echo $ outputs 1, which of the following statements is true?
- A . It is the process ID of the echo command.
- B . It is the process ID of the current shell.
- C . It is the exit value of the command executed immediately before echo.
- D . It is the exit value of the echo command.
What output will the following command produce?
seq 1 5 20
- A . 1 6 11 16
- B . 1 5 10 15
- C . 1 2 3 4
- D . 2 3 4 5
- E . 5 10 15 20
What output will the command seq 10 produce?
- A . A continuous stream of numbers increasing in increments of 10 until stopped.
- B . The numbers 1 through 10 with one number per line.
- C . The numbers 0 through 9 with one number per line.
- D . The number 10 to standard output.
CORRECT TEXT – (Topic 1)
What word is missing from the following SQL statement?
insert into tablename ________(909, ‘text’);
(Please specify the missing word using lower-case letters only.)
What is the difference between the commands test -e path and test -f path?
- A . They are equivalent options with the same behaviour.
- B . The -f option tests for a regular file. The -e option tests for an empty file.
- C . Both options check the existence of the path. The -f option also confirms that it is a regular file.
- D . The -f option tests for a regular file. The -e option tests for an executable file.
After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?
- A . A B
- B . A B C
- C . A C
- D . B C
- E . C B A
Which of the following is the best way to list all defined shell variables?
- A . env
- B . set
- C . env -a
- D . echo $ENV
CORRECT TEXT
By default, the contents of which directory will be copied to a new user’s home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)
How is a display manager started?
- A . It is started by a user using the command startx.
- B . It is started like any other system service by the init system.
- C . It is started by inetd when a remote hosts connects to the X11 port.
- D . It is started automatically when a X11 user logs in to the system console.