BEST Verified Lpi 010-160 Exam Questions (2023) [Q20-Q42]

Share

BEST Verified Lpi 010-160 Exam Questions (2023) 

The Best Practice Test Preparation for the 010-160 Certification Exam

NEW QUESTION # 20
FILL BLANK
What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any additional information.)

Answer:

Explanation:
for


NEW QUESTION # 21
Which permissions are set on a regular file once thepermissions have been modified with the command chmod 654 file.txt?

  • A. drw-r-xr--
  • B. -rwxrw---x
  • C. -rw-r-xr--
  • D. d-wxr-x--
  • E. -wxr-x--x

Answer: C


NEW QUESTION # 22
Which of the following programs are web servers? (Choose two.)

  • A. Apache HTTPD
  • B. NGINX
  • C. Curl
  • D. Dovecot
  • E. Postfix

Answer: A,B

Explanation:
Explanation


NEW QUESTION # 23
Which of the following commands sorts the output of the commandexport-logs?

  • A. export-logs | sort
  • B. export-logs > sort
  • C. export-logs < sort
  • D. export-logs & sort
  • E. export-logs <> sort

Answer: A


NEW QUESTION # 24
The file script.sh in the current directory contains the following content:
#!/bin/bash echo $MYVAR
The following commands are used to execute this script:
MYVAR=value
./script.sh
The result is an empty line instead of the content of the variable MYVAR. How should MYVAR be set in order to make script.sh display the content of MYVAR?

  • A. env MYVAR=value
  • B. !MYVAR=value
  • C. $MYVAR=value
  • D. export MYVAR=value
  • E. MYVAR=value

Answer: D


NEW QUESTION # 25
Which of the following is a protocol used for automatic IP address configuration?

  • A. SMTP
  • B. NFS
  • C. DHCP
  • D. LDAP
  • E. DNS

Answer: C


NEW QUESTION # 26
How is a new Linux computing instance provisioned in an laaS cloud?

  • A. After buying a Linux distribution, its vendor delivers it to a cloud instance.
  • B. The standard Linux installer has to be run through a remote console.
  • C. A provider-specific configuration file describing the desired installation is uploaded to the cloud provider.
  • D. The installation has to be prepared in a local virtual machine which is then copied to the cloud.
  • E. The cloud hosting organization provides a set of pre-prepared images of popular Linux distributions.

Answer: C


NEW QUESTION # 27
Which of the following commands creates an archive file work.tarfrom the contents of the directory ./
work/?

  • A. tar --new work.tar ./work/
  • B. tar -create work.tgz -content ./work/
  • C. tar work > work.tar
  • D. tar work.tar < ./work/
  • E. tar -cf work.tar ./work/

Answer: E


NEW QUESTION # 28
Which of the following statements are true regarding a typical shell script? (Choose two.)

  • A. It has the executable permission bit set.
  • B. It is located in /usr/local/scripts/.
  • C. It is compiled into a binary file compatible with the current machine architecture.
  • D. It is located in /etc/bash/scripts/.
  • E. It starts with the two character sequence #!.

Answer: A,C


NEW QUESTION # 29
Most commands on Linux can display information on their usage. How can this information typically be displayed?

  • A. By running the command with the option /? or /??.
  • B. By running the command with the option /doc or /documentation.
  • C. By running the command with the option -h or --help.
  • D. By running the command with the option -m or --manpage.
  • E. By running the command with the option ?! or ?=!.

Answer: D


NEW QUESTION # 30
What is true about arecursive directory listing?

  • A. It includes ownership information for the files.
  • B. It includes the permissions of the directory listed.
  • C. It includes the content of sub-directories.
  • D. Itincludes a preview of content for each file in the directory.
  • E. It includes details of file system internals, such as inodes.

Answer: C


NEW QUESTION # 31
Which of the following values could be a process ID on Linux?

  • A. fff3
  • B. /sys/pid/9a14
  • C. 60b503cd-019e-4300-a7be-922f074ef5ce
  • D. /bin/bash
  • E. 0

Answer: E


NEW QUESTION # 32
Which command displays file names only and no additional information?

  • A. ls -lh
  • B. ls -nl
  • C. ls -l
  • D. ls -a
  • E. ls -alh

Answer: D


NEW QUESTION # 33
What is the preferred source for the installation of new applications in a Linux based operating system?

  • A. A CD-ROM disk
  • B. The distribution's package repository
  • C. A retail store
  • D. The vendor's version management system
  • E. The vendor's website

Answer: B


NEW QUESTION # 34
The current directory contains the following file:
-rw-r-r- 1 root exec 24551 Apr 2 12:36 test.sh
The file contains a validshell script, but executing this file using./test.shleads to this error:
bash: ./test.sh: Permission denied
What should be done in order to successfully execute the script?

  • A. The file's extension should be changed from .shto.bin.
  • B. The user executing the script should be added to theexecgroup.
  • C. The script should be run using#!./test. shinstead of./test.sh.
  • D. The execute bit should be set in the file's permissions.
  • E. The SetUID bit should be set in the file's permissions

Answer: D


NEW QUESTION # 35
Which ofthe following commands creates an archive filework.tarfrom the contents of the directory./ work/?

  • A. tar --new work.tar ./work/
  • B. tar -create work.tgz -content ./work/
  • C. tar work > work.tar
  • D. tar work.tar < ./work/
  • E. tar -cf work.tar ./work/

Answer: E


NEW QUESTION # 36
Which of the following tasks can the command passwd accomplish? (Choose two.)

  • A. Change a user's username.
  • B. Create a new user group.
  • C. Lock a user account.
  • D. Change a user's password.
  • E. Create a new user account.

Answer: C,E


NEW QUESTION # 37
Which of the following programs is a graphical editor for vector graphics?

  • A. Inkscape
  • B. NGINX
  • C. Samba
  • D. MySQL
  • E. Python

Answer: A


NEW QUESTION # 38
Which of the following examples shows the general structure of a for loop in a shell script?

  • A. for *.txt ( echo $i )
  • B. for file in *.txt do
    echo $i done
  • C. for *.txt as file => echo $file
  • D. for ls *.txt exec {} \;
  • E. foreach @{file} { echo $i
    }

Answer: B


NEW QUESTION # 39
When typing a long command line at the shell, what can be used to split a command across multiple lines?

Answer:

Explanation:
\


NEW QUESTION # 40
Which of the following directories must be mounted with read and write access if it resides on its own dedicated file system?

  • A. /etc
  • B. /var
  • C. /lib
  • D. /usr
  • E. /opt

Answer: B


NEW QUESTION # 41
What parameter of ls prints a recursive listing of a directory's content? (Specify ONLY the option name without any values or parameters.)

Answer:

Explanation:
lsR


NEW QUESTION # 42
......

010-160 Exam Dumps, Practice Test Questions BUNDLE PACK: https://www.practicevce.com/Lpi/010-160-practice-exam-dumps.html

LPI Linux Essentials Certification 010-160 Sample Questions Reliable: https://drive.google.com/open?id=1TGNI8H0ViYIHfCyZ-ORbZ5yF50IHOU0g