LPI Linux Essentials 010-160 Sample Questions

  1. Home
  2. LPI Linux Essentials 010-160 Sample Questions
LPI Linux Essentials 010-160 Sample Questions

The Linux Professional Institute (LPI), the world’s first neutral certification body, offers the LPI Linux Essentials 010-160 certification. Individuals, government institutions, and even industries around the world benefit from Linux’s open-source technology. LPI’s major goal is to make open source skills certification available to as many people as possible. The article provides a list of LPI Linux Essentials 010-160 Sample Questions that cover core exam topics including –

  • The Linux Community and a Career in Open Source
  • Finding Your Way on a Linux System
  • The Power of the Command Line
  • The Linux Operating System
  • Security and File Permissions

Advanced Sample Questions

What is the default shell in Linux?

  • a. C shell
  • b. Korn shell
  • c. Bash shell
  • d. Z shell

Answer: c. Bash shell

Explanation: The Bash shell is the default shell in most Linux distributions, including popular ones like Ubuntu, Debian, and CentOS. While other shells like the C shell, Korn shell, and Z shell are available, Bash is the most widely used and supported.

Which command can be used to display the contents of a directory in Linux?

  • a. ls
  • b. cd
  • c. pwd
  • d. rm

Answer: a. ls

Explanation: The ls command is used to display the contents of a directory in Linux. It shows a list of files and directories in the current directory by default, or you can specify a different directory by providing the path as an argument.

Which file system is commonly used in Linux?

a. NTFS

b. FAT32

c. HFS+

d. ext4

Answer: d. ext4

Explanation: ext4 is a widely used file system in Linux. It is the default file system in many Linux distributions and is optimized for performance, reliability, and scalability.

What is the purpose of the crontab command in Linux?

  • a. To schedule and automate tasks
  • b. To manage user accounts and passwords
  • c. To edit configuration files
  • d. To install and update software packages

Answer: a. To schedule and automate tasks

Explanation: The crontab command is used to schedule and automate tasks in Linux. It allows you to specify commands or scripts to run at specific times or intervals, making it useful for tasks like backups, system maintenance, and data processing.

Which command can be used to view the contents of a file in Linux?

  • a. vi
  • b. cat
  • c. cp
  • d. mv

Answer: b. cat

Explanation: The cat command is used to view the contents of a file in Linux. It displays the contents of a file on the terminal screen, and you can use options like -n to display line numbers, or -b to display line numbers for non-blank lines only.

What is the purpose of the chmod command in Linux?

  • a. To change the ownership of a file or directory
  • b. To view the contents of a file
  • c. To modify the permissions of a file or directory
  • d. To create a new file or directory

Answer: c. To modify the permissions of a file or directory

Explanation: The chmod command is used to modify the permissions of a file or directory in Linux. It allows you to change who can read, write, and execute the file or directory, and in what ways.

Which command can be used to create a new directory in Linux?

  • a. mkdir
  • b. touch
  • c. cp
  • d. mv

Answer: a. mkdir

Explanation: The mkdir command is used to create a new directory in Linux. It allows you to specify the name and location of the new directory, and you can use options like -p to create nested directories if they don’t already exist.

Which command can be used to compress and archive files in Linux?

  • a. gzip
  • b. tar
  • c. zip
  • d. compress

Answer: b. tar

Explanation: The tar command is used to compress and archive files in Linux. It allows you to group multiple files or directories into a single archive file, which can then be compressed using a compression utility like gzip or bzip2.

Which command can be used to display the IP address of a Linux system?

  • a. ipconfig
  • b. ifconfig
  • c. ping
  • d. traceroute

Answer: b. ifconfig

Explanation: The ifconfig command is used to display the IP address of a Linux system. It provides information about the network interfaces on the system, including their IP addresses, netmasks, and other configuration details.

What is the purpose of the df command in Linux?

  • a. To display the contents of a directory
  • b. To view system logs and messages
  • c. To manage user accounts and passwords
  • d. To display the available disk space on a file system

Answer: d. To display the available disk space on a file system

Explanation: The df command is used to display the available disk space on a file system in Linux. It shows the total, used, and available space on each file system, as well as the percentage of space used.

Basic Sample Questions

Q1)What’s the difference between a hard disc drive and a solid-state drive? (Select two.)

  1. Solid state discs do not have a motor or moving parts, whereas hard discs have.
  2. Hard discs can fail as a result of physical damage, but solid state drives cannot.
  3. Solid state discs can hold many times the amount of data that traditional hard disc drives can.
  4. A hard disc device is /dev/sda, but a solid state disc is /dev/ssda.
  5. Solid state discs are faster than hard discs at accessing stored data.

Correct Answer: Solid state discs do not have a motor or moving parts, whereas hard discs have; Solid state discs are faster than hard discs at accessing stored data.

Q2) Reverse DNS assigns IP addresses to hostnames. On a DNS server, how is the name of the IP address 198.51.100.165 stored?

  1.  In the A record for 165.100.51.198.ipv4.arpa.
  2.  In the PTR record for 165.100.51.198.in-addr.arpa.
  3.  In the RNAME record for 198-51-100-165.rev.arpa.
  4.  In the ARPA record for 165.100.51.198.rev.
  5.  In the REV record for arpa.in-addr.198.51.100.165.

Correct Answer: In the PTR record for 165.100.51.198.in-addr.arpa.

Q3) Which of the following bus types connects hard disc drives to the motherboard?

  1. The RAM bus
  2.  The NUMA bus
  3. The CPU bus
  4. The SATA bus
  5. The Auto bus

Correct Answer: The SATA bus

Q4) A team’s members have already worked with Red Hat Enterprise Linux. The team wishes to put up a Linux server without paying a membership for a tiny hobby project. Which of the following Linux distributions allows members of the team to put as much of their Red Hat Enterprise Linux knowledge to use as possible?

  1. Ubuntu Linux LTS
  2. Raspbian
  3. Debian GNU/Linux
  4. CentOS
  5. openSUSE

Correct Answer: CentOS

Q5)To resolve a DNS name to an IP address, use which of the following commands?

  1.  dnsname
  2.  dns
  3.  query
  4.  host
  5.  iplookup

Correct Answer: host

Q6)What exactly is the dmesg command? (Select two.)

  1. It traces the execution of a command and displays each step taken by the programme.
  2. It transmits messages to all current user sessions’ command lines.
  3. It shows the contents of the ring buffer in the Linux kernel.
  4. All new messages recorded to the system journal are immediately output.
  5. It’s possible that earlier data isn’t visible because it’s been overwritten by current data.

Correct Answer: It displays the content of the Linux kernel’s ring buffer;  It might not display older information because it was overwritten by newer information.

Q7) Which of the following results might be the result of the last command?

  1.  1 ls 2 cat text.txt 3 logout
  2.  Password for user last changed at Sat Mar 31 16:38:57 EST 2018
  3.  Last login: Fri Mar 23 10:56:39 2018 from server.example.com
  4.  EXT4-fs (dm-7): mounted filesystem with ordered data mode. Opts: (null)
  5.  root tty2 Wed May 17 21:11 – 21:11 (00:00)

Correct Answer: root tty2 Wed May 17 21:11 – 21:11 (00:00)

Q8) Which permissions are put on a typical file after using the command chmod 654 file.txt to change the permissions?

  1. drw-r-xr–
  2.  d””wxr-x–
  3. “”wxr-x–x
  4. “”rwxrw—x
  5.  -rw-r-xr–

Correct Answer: -rw-r-xr–

Q9) What is the truth about a file’s owner in LPI Linux Essentials 010-160?

  1.  Each file is owned by exactly one user and one group.
  2.  The owner of a file always has full permissions when accessing the file.
  3.  The user owning a file must be a member of the file’s group.
  4.  When a user is deleted, all files owned by the user disappear.
  5.  The owner of a file cannot be changed once it is assigned to an owner.

Correct Answer: Each file is owned by exactly one user and one group.

Q10) On the /tmp/ directory, which of the following permissions are set?

  1.  rwxrwxrwt
  2.  ——rwX
  3.  rwSrw-rw-
  4.  rwxrwS—
  5.  r-xr-X–t

Correct Answer: rwxrwxrwt

Q11) Which command creates the user’s home directory with default configuration files and adds the new user tux?

  1. defaultuser tux
  2.  useradd “”m tux
  3. usercreate tux
  4. useradd “”o default tux
  5. passwd “”a tux

Correct Answer: useradd “”m tux

Q12) Which of the tar alternatives below supports compression? (Select two.)

  1.  -bz
  2.  -z
  3.  -g
  4.  -j
  5.  -z2

Correct Answer:  -z;-j

Q13)Which of the following commands builds the work.tar archive file from the contents of the./work/ directory?

  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

Correct Answer: tar “”cf work.tar ./work/

Q14)Which of the following keys can be pressed to depart with the least amount of effort?

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

Correct Answer: q

Q15)Which of the following commands will sort the output of the export-logs command?

  1. export-logs < sort
  2. export-logs > sort
  3. export-logs & sort
  4. export-logs | sort
  5. .export-logs <> sort

Correct Answer: export-logs | sort

Q16) Which of the following commands will look in the /home directory for the file foo.txt?

  1.  search /home “”file foo.txt
  2.  search /home foo. txt
  3.  find /home “” file foo.txt
  4.  find /home “”name foo.txt
  5.  find /home foo.txt

Correct Answer: find /home “”name foo.txt

Q17)What is the definition of a Linux distribution in LPI Linux Essentials 010-160?

  1.  The Linux file system as seen from the root account after mounting all file systems.
  2. A bundling of the Linux kernel, system utilities and other software.
  3. The set of rules which governs the distribution of Linux kernel source code.
  4. An operating system based on Linux but incompatible to the regular Linux kernel.
  5. A set of changes to Linux which enable Linux to run on another processor architecture.

Correct Answer:  bundling of the Linux kernel, system utilities and other software.

Q18) In Red Hat-based Linux systems, which package management tool is used?

  1.  portage
  2.  rpm
  3.  apt-get
  4.  dpkg
  5.  packagectl

Correct Answer: rpm

Q19) Which of the following apps is a vector graphics graphical editor in LPI Linux Essentials 010-160?

  1. Python
  2.  NGINX
  3.  Samba
  4.  Inkscape
  5.  MySQL

Correct Answer: Inkscape

Q20)What is the location of the Raspberry Pi’s operating system in LPI Linux Essentials 010-160?

  1. On the master device attached to the Raspberry Pi’s IDE bus.
  2. On a read only partition on the Raspberry Pi’s firmware, next to the BIOS.
  3. On a removable SD card which is put into the Raspberry Pi.
  4. On a Linux extension module connected to the Raspberry Pi’s GPIO pins.
  5. On rewritable flash storage which is built into the Raspberry Pi.

Correct Answer: On a removable SD card which is put into the Raspberry Pi.

LPI Linux Essentials 010-160 free practice test
Menu