Free 010-160 Exam Braindumps (page: 6)

Page 5 of 21

What keyword is used in a shell script to begin a loop?
(Specify one keyword only, without any additional information.)

  1. for
  2. forloop

Answer(s): A



Which of the following commands creates an archive file work.tar from the contents of the directory ./ work/?

  1. tar --new work.tar ./work/
  2. tar –cf work.tar ./work/
  3. tar –create work.tgz –content ./work/
  4. tar work.tar < ./work/
  5. tar work > work.tar

Answer(s): B



Which of the following keys can be pressed to exit less?

  1. l
  2. x
  3. e
  4. q
  5. !

Answer(s): D



The current directory contains the following file:

-rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh

Given that the file is a valid shell script, how can this script be executed? (Choose two.)

  1. run test.sh
  2. ${test.sh}
  3. cmd ./test.sh
  4. ./test.sh
  5. bash test.sh

Answer(s): D,E






Post your Comments and Discuss LPI 010-160 exam with other Community members:

010-160 Discussions & Posts