Try Before You Buy

Download a free sample of any of our exam questions and answers

  • 24/7 customer support, Secure shopping site
  • Free One year updates to match real exam scenarios
  • If you failed your exam after buying our products we will refund the full amount back to you.

[Q35-Q53] Certification Training for 010-160 Exam Dumps Test Engine [2023]

Share

Certification Training for 010-160 Exam Dumps Test Engine [2023]

Dec 28, 2023 Step by Step Guide to Prepare for 010-160 Exam


The Lpi 010-160 exam is ideal for individuals who are interested in pursuing a career in the IT industry, particularly in the field of Linux system administration. Linux Essentials Certificate Exam - version 1.6 certification provides a solid foundation in Linux and open-source software and can be used as a stepping stone to more advanced certifications such as LPIC-1 and LPIC-2. 010-160 exam is also suitable for anyone who wants to learn more about Linux and open-source software and wants to validate their knowledge.

 

NEW QUESTION # 35
What are the differences between hard disk drives and solid state disks? (Choose two.)

  • A. Hard disks have a motor and moving parts, solid state disks do not.
  • B. Solid state disks provide faster access to stored data than hard disks.
  • C. Solid state disks can store many times as much data as hard disk drives.
  • D. Hard disks can fail due to physical damage, while solid state disks cannot fail.
  • E. /dev/sdais a hard disk device while /dev/ssdais a solid state disk.

Answer: A,B


NEW QUESTION # 36
Which of the following commands adds thedirectory/new/dir/to thePATHenvironment variable?

  • A. export PATH=/new/dir: PATH
  • B. export PATH=/new/dir: $PATH
  • C. export $PATH=/new/dir: $PATH
  • D. PATH=/new/dir: PATH
  • E. $PATH=/new/dir: $PATH

Answer: B


NEW QUESTION # 37
What is the UID of the user root?

  • A. 0
  • B. 1
  • C. 2
  • D. 3
  • E. 4

Answer: A

Explanation:
Explanation/Reference:


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

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

Answer: C


NEW QUESTION # 39
Which statements about the directory /etc/skel are correct? (Choose two.)

  • A. The files from the directory are copied to the home directory of the new user when starting the system.
  • B. The directory contains the global settings for the Linux system.
  • C. The files from the directory are copied to the home directory of a new user when the account is created.
  • D. The directory contains a default set of configuration files used by the useradd command.
  • E. The personal user settings of root are stored in this directory.

Answer: C,D


NEW QUESTION # 40
Which of the following taroptions handle compression? (Choose two.)

  • A. -g
  • B. -z2
  • C. -z
  • D. -j
  • E. -bz

Answer: C,D


NEW QUESTION # 41
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: D


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

  • A. It includes the permissions of the directory listed.
  • B. It includes ownership information for the files.
  • 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 # 43
Running the commandrm Downloadsleads to the following error:
rm: cannot remove 'Downloads/': Is a directory
Which of the following commands can be used instead to removeDownloads, assumingDownloadsis empty? (Choose two correct answers.)

  • A. dir -r Downloads
  • B. rmdir Downloads
  • C. rem Downloads
  • D. rm -r Downloads
  • E. undir Downloads

Answer: B,D

Explanation:
Explanation
To remove a directory, you need to use a command that can delete directories, not just files. The rm command can only remove files by default, unless you use the -r option, which stands for recursive. This option tells rm to delete the directory and all of its contents, including subdirectories and files. The rmdir command can also remove directories, but only if they are empty. If the directory contains any files or subdirectories, rmdir will fail and display an error message. Therefore, the correct commands to remove Downloads, assuming it is empty, are rmdir Downloads and rm -r Downloads. The other commands are either invalid or do not work on directories. References:
* Linux Essentials - Linux Professional Institute (LPI), section 2.3.1
* LPI Linux Essentials Study Guide: Exam 010 v1.6, 3rd Edition, chapter 4, page 93.


NEW QUESTION # 44
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 # 45
Which of the following commands can be used to resolve a DNSname to an IP address?

  • A. host
  • B. query
  • C. iplookup
  • D. dnsname
  • E. dns

Answer: A


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

Answer:

Explanation:
\


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

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

Answer: A,E

Explanation:
Explanation


NEW QUESTION # 48
What are the differences between hard disk drives and solid state disks? (Choose two correct answers.)

  • A. Hard disks have a motor and moving parts, solid state disks do not.
  • B. Solid state disks provide faster access to stored data than hard disks.
  • C. Solid state disks can store many times as much data as hard disk drives.
  • D. Hard disks can fail due to physical damage, while solid state disks cannot fail.
  • E. /dev/sdais a hard disk device while /dev/ssdais a solid state disk.

Answer: A,B


NEW QUESTION # 49
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. !MYVAR=value
  • B. env MYVAR=value
  • C. MYVAR=value
  • D. export MYVAR=value
  • E. $MYVAR=value

Answer: D

Explanation:
Explanation
The reason why the script.sh does not display the content of the variable MYVAR is that the variable is not exported to the environment of the script. When a script is executed, it runs in a separate process that inherits the environment variables from the parent process, but not the shell variables. A shell variable is a variable that is defined and visible only in the current shell session, while an environment variable is a variable that is exported to the environment and visible to all processes that run in that environment1.
To make a shell variable an environment variable, we need to use the export command. The export command takes a shell variable name and adds it to the environment of the current shell and any subshells or processes that are created from it2. For example, to export the variable MYVAR with the value value, we can use:
export MYVAR=value
This will make the variable MYVAR available to the script.sh when it is executed, and the script will print the value of MYVAR as expected. Alternatively, we can also use the export command with the -n option to remove a variable from the environment, or with the -p option to list all the environment variables2.
The other options are not valid ways to set MYVAR as an environment variable. The !MYVAR=value option is not a valid syntax for setting a variable in bash. The env MYVAR=value option will run the env command with the MYVAR=value argument, which will print the environment variables with the addition of MYVAR=value, but it will not affect the current shell or the script.sh3. The MYVAR=value option will set MYVAR as a shell variable, but not as an environment variable, so it will not be visible to the script.sh1. The
$MYVAR=value option will try to set the variable whose name is the value of MYVAR to the value value, which is not what we want4. References:
* Linux Essentials Exam Objectives, Version 1.6, Topic 103.1, Weight 2
* Linux Essentials Certification Guide, Chapter 3, Page 51-52
* env(1) - Linux manual page
* Bash Variables - LinuxConfig.org


NEW QUESTION # 50
Which of the following types of bus can connect hard disk drives with the motherboard?

  • A. The RAM bus
  • B. The NUMA bus
  • C. The CPU bus
  • D. The Auto bus
  • E. The SATA bus

Answer: E


NEW QUESTION # 51
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 Explanation The keyword for is used in a shell script to begin a loop that iterates over a list of items or a range of numbers.
The syntax of the for loop is as follows:
for <var> in <list> do <commands> done
The variable <var> is assigned to each element of the <list> in turn, and the <commands> are executed for each iteration. The <list> can be a sequence of words, numbers, filenames, or other values. If the <list> is omitted, the for loop will iterate over the positional parameters ($1, $2, ...). The do and done keywords mark the beginning and the end of the loop body, respectively. The for loop is one of the three types of loops in shell scripting, along with the while and until loops. References: 1: Looping Statements |Shell Script - GeeksforGeeks 1 2: unix - Shell script "for" loop syntax - Stack Overflow 2 3: For Loop Shell Scripting - javatpoint 3


NEW QUESTION # 52
What information is stored in/etc/passwd? (Choose three correct answers.)

  • A. The user's storage space limit
  • B. The username
  • C. The numerical user ID
  • D. The encrypted password
  • E. The user\s default shell

Answer: B,C,E

Explanation:
Explanation
The /etc/passwd file is a plain text-based database that contains information for all user accounts on the system. It is owned by root and has 644 permissions. The file can only be modified by root or users with sudo privileges and readable by all system users. Each line of the /etc/passwd file contains seven comma-separated fields, representing a user account. The fields are as follows:
* Username: The string you type when you log into the system. Each username must be a unique string on the machine. The maximum length of the username is restricted to 32 characters.
* Password: In older Linux systems, the user's encrypted password was stored in the /etc/passwd file. On most modern systems, this field is set to x, and the user password is stored in the /etc/shadow file.
* User ID (UID): The user identifier is a number assigned to each user by the operating system to refer to a user. It is used by the kernel to check for the user privileges and grant access to system resources. The UID 0 is reserved for the root user and cannot be assigned to any other user.
* Group ID (GID): The user's group identifier number, referring to the user's primary group. When a user creates a file, the file's group is set to this group. Typically, the name of the group is the same as the name of the user. User's secondary groups are listed in the /etc/group file.
* User ID Info (GECOS): This is a comment field. This field contains a list of comma-separated values with the following information: User's full name or the application name, Room number, Work phone number, Home phone number, Other contact information.
* Home directory: The absolute path to the user's home directory. It contains the user's files and configurations. By default, the user home directories are named after the name of the user and created under the /home directory.
* Login shell: The absolute path to the user's login shell. This is the shell that is started when the user logs into the system. On most Linux distributions, the default login shell is Bash.
Therefore, the correct answers are B, C, and E. The user's storage space limit (A) is not stored in the
/etc/passwd file, but in the /etc/quota file. The encrypted password (D) is not stored in the /etc/passwd file, but in the /etc/shadow file. References:
* Linux Essentials Topic 104: The Linux Operating System, section 104.4: Runlevels and Boot Targets.
* Linux Essentials Topic 106: Security and File Permissions, section 106.1: Basic security and identifying user types.
* Linux Essentials Topic 106: Security and File Permissions, section 106.2: Creating users and groups.
* Understanding the /etc/passwd File | Linuxize
* Understanding the /etc/passwd File - GeeksforGeeks
* passwd(5) - Linux manual page - man7.org
* Understanding /etc/passwd file in Linux - DEV Community


NEW QUESTION # 53
......


The LPI 010-160 is a foundational-level certification exam developed for individuals who want to build a career with Linux. Passing this test basically validates the candidate's knowledge regarding the Linux command line and Linux operating system. There are no strict prerequisites for this exam, but candidates should be familiar with Free and Open Source Software (FOSS). Basic understanding of open source applications is important too.

 

Ultimate Guide to Prepare 010-160 Certification Exam for LPI Linux Essentials: https://www.validexam.com/010-160-latest-dumps.html

LPI Linux Essentials 010-160 Real Exam Questions and Answers FREE Updated: https://drive.google.com/open?id=1cd27PrWU0MbcdDQKnvRX-C9EOUqlSJ1N