Free 101-500 Exam Braindumps
LPIC-1 System Administrator Exam 101, Part 1 of 2, version 5.0 Questions 81–85 (page: 18)

Updated On: 10-Feb-2026

Which of the following commands displays the contents of a gzip compressed tar archive?

  1. gzip archive.tgz | tar xvf -
  2. tar ztf archive.tgz
  3. gzip -d archive.tgz | tar tvf -
  4. tar cf archive.tgz

Answer(s): B



Which grep command will print only the lines that do not end with a / in the file foo?

  1. grep'/$' foo
  2. grep '/#' foo
  3. grep -v '/$' foo
  4. grep -v '/#' foo

Answer(s): C



Which of the following commands is used to change options and positional parameters for a running Bash?

  1. history
  2. set
  3. bashconf
  4. setsh
  5. envsetup

Answer(s): B



Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

  1. sed '/bob/Bob' letter > newletter
  2. sed s/bob/Bob/ letter < newletter
  3. sed's/bob/Bob' letter > newletter
  4. sed 's/bob/Bob/g' letter > newletter
  5. sed 's/bob, Bob/' letter > newletter

Answer(s): D



From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

  1. source /usr/local/bin/runme.sh
  2. . /usr/local/bin/runme.sh
  3. /bin/bash /usr/local/bin/runme.sh
  4. /usr/local/bin/runme.sh
  5. run /usr/local/bin/runme.sh

Answer(s): A,B



Viewing page 18 of 51
Viewing questions 86 - 90 out of 246 questions


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

AI Tutor AI Tutor 👋 I’m here to help!