Free 102-500 Exam Braindumps (page: 5)

Page 5 of 41

What keyword is missing from this code sample of a shell script?

____ i in *.txt; do

echo $i

done

  1. for
  2. loop
  3. until
  4. while

Answer(s): A



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

  1. It contains the welcome message that is displayed after login.
  2. It contains security profiles defining which users are allowed to log in.
  3. It contains environment variables that are set when a user logs in.
  4. It contains default application profiles for users that run an application for the first time.

Answer(s): C



Which of the following configuration files should be modified to set default shell variables for all users?

  1. /etc/bashrc
  2. /etc/profile
  3. ~/.bash_profile
  4. /etc/.bashrc

Answer(s): B



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

  1. unset -v FOOBAR;./myscript
  2. set -a FOOBAR="";./myscript
  3. env -u FOOBAR./myscript
  4. env -i FOOBAR./myscript

Answer(s): C



Page 5 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