LPI 102-500 Practice Test - Questions Answers, Page 2

List of questions
Question 11

What is the difference between the commands test -e path and test -f path?
Question 12

How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?
Question 13

When the command echo $$ outputs 12942, what is the meaning of 12942?
Question 14

What output will the following command produce? seq 1 5 20
The seq command in Linux is used to generate a sequence of numbers from FIRST to LAST insteps of INCREMENT1. The syntax for the seq command is:seq [OPTION]... LAST or seq [OPTION]... FIRST LAST or seq [OPTION]... FIRST INCREMENT LASTIn this case, the command seq 1 5 20 has three arguments: FIRST = 1, INCREMENT = 5, and LAST= 20. This means that the command will produce numbers from 1 to 20 in steps of 5. Theoutput will be:1 5 10 15The output will not include 20 because it is not a multiple of 5.The output will be printed onseparate lines by default, unless a different separator is specified with the -s option2.Reference:Seq Command in Linux [Explained With Examples]seq Man Page - Linux - SS64.com - SS64 Command line reference
Question 15

Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?
Question 16

Which of the following commands lists all defined variables and functions within Bash?
Question 17

Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?
Question 18

What is the purpose of the file /etc/profile?
Question 19

What command displays all aliases defined in the current shell? (Specify the command without any path information)
Question 20

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.)
Question