Free 102-500 Exam Braindumps (page: 4)

Page 4 of 41

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

  1. alias, alias -p
  2. alias -p

Answer(s): B



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

  1. The user issuing the command must be in the group script.
  2. The script file must be found in the $PATH.
  3. The script file must have the executable permission bit set.
  4. The script must begin with a shebang-line (#!) that points to the correct interpreter.
  5. The file system on which the script resides must be mounted with the option scripts.

Answer(s): B,C,D



What output will the following command sequence produce?

echo '1 2 3 4 5 6' | while read a b c; do

echo result: $c $b $a;

done

  1. result: 3 4 5 6 2 1
  2. result: 1 2 3 4 5 6
  3. result: 6 5 4
  4. result: 6 5 4 3 2 1
  5. result: 3 2 1

Answer(s): A



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

  1. env
  2. set
  3. env -a
  4. echo $ENV

Answer(s): B



Page 4 of 41



Post your Comments and Discuss LPI 102-500 exam with other Community members:

LinuxGuy commented on April 25, 2021
Purchase process quick and smooth, with EXM, PDF and APK file formats provided for test prep
SINGAPORE
upvote