Exam Details

  • Exam Code
    :010-150
  • Exam Name
    :Entry Level Linux Essentials Certificate of Achievement
  • Certification
    :Linux Essentials
  • Vendor
    :Lpi
  • Total Questions
    :80 Q&As
  • Last Updated
    :May 11, 2024

Lpi Linux Essentials 010-150 Questions & Answers

  • Question 41:

    Which of the following statements may be used to access the second command line argument to a script?

    A. "$ARG2"

    B. $1

    C. "$2"

    D. "$1"

    E. '$2'

  • Question 42:

    Which of the following commands will output all of the lines that contain either the string Fred or fred? (Choose TWO correct answers.)

    A. grep -v fred data_file

    B. grep '[f]red' data_file

    C. egrep fred data_file

    D. grep '[Ff]red' data_file

    E. grep -i fred data_file

  • Question 43:

    What keyword is missing from the following segment of the shell script?

    for i in *; _____

    cat $i

    done

    A. do

    B. then

    C. enod

    D. fi

    E. run

  • Question 44:

    Why is the file data.txt empty after executing sort data.txt > data.txt?

    A. Because, if data.txt is empty now, it must have been empty before.

    B. Because sort cannot sort text files, only binary files.

    C. Because sort detects that both files are the same.

    D. Because the file gets truncated before sort is executed.

  • Question 45:

    Which commands will archive /home and its content to /mnt/backup? (Choose TWO correct answers.)

    A. cp -ar /home /mnt/backup

    B. mv /home /mnt/backup

    C. sync -r /home /mnt/backup

    D. tar -cf /mnt/backup/archive.tar /home

    E. copy -r /home /mnt/backup

  • Question 46:

    How could one search for the file foo.txt under the directory /home?

    A. search /home -file foo.txt

    B. search /home foo.txt

    C. find /home -file foo.txt

    D. find /home -name foo.txt

    E. find /home foo.txt

  • Question 47:

    What is the output of the following command?

    tail -n 20 test.txt

    A. The first 20 lines of test.txt.

    B. The last 20 lines of test.txt omitting the blank lines.

    C. The last 20 lines of test.txt with line numbers.

    D. The last 20 lines of test.txt including blank lines.

  • Question 48:

    How is it possible to determine if an executable file is a shell script which is read by Bash?

    A. The r bit is set.

    B. The file must end with .sh.

    C. The first line starts with #!/bin/bash.

    D. /bin/bash has to be run in debug mode.

    E. Scripts are never executable files.

  • Question 49:

    Which of the following commands can be used to view a file and do search operations within it while viewing the contents?

    A. less

    B. find

    C. grep

    D. report

    E. see

  • Question 50:

    Which function does a shell program serve?

    A. It provides a graphical environment.

    B. It is responsible for establishing a connection to another computer.

    C. It receives user commands and executes them.

    D. It is responsible for logging a user into the system.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Lpi exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 010-150 exam preparations and Lpi certification application, do not hesitate to visit our Vcedump.com to find your solutions here.