Browse all practice questions for the LPI Linux Essentials (D281 and C851) Practice Exam. Search by topic, open any question and review its full explanation, then test yourself in the practice quiz.

LPI Linux Essentials (D281 and C851) Practice Exam course image
More practice questions

These questions are part of the practice quiz. Start practicing

  • Which option would you use with tar to see a summary of its usage?
  • Which file on a Linux system is modified to set the maximum number of days before a password must be changed?
  • Which command is used to search for files in the filesystem?
  • What does the 'top' command specifically provide?
  • What is the purpose of the 'sudo' command?
  • Which command is used to view running processes in Linux?
  • What does the command whoami display?
  • When you extract files with the tar command, where are they extracted to?
  • Which option can be used with useradd to specify the home directory for a user?
  • Which command is used to create a new directory?
  • What command is used to change the ownership of a file?
  • Which file contains critical configuration information for the boot process?
  • What is the purpose of the /home directory?
  • What is the primary purpose of the Linux kernel?
  • What does the ip address show command report?
  • What command would you use to view the contents of a file?
  • Which command shows the users currently logged into the system?
  • Which command is utilized to update the package index in Debian-based systems?
  • Which command provides a summary of disk space usage on all filesystems?
  • What character is used to represent a home directory in Linux?
  • What is the main configuration file for the GRUB bootloader?
  • What command is used to view the contents of a text file?
  • How can you check the disk usage of a directory in Linux?
  • What is the purpose of the command 'apt dist-upgrade'?
  • What is the primary content of the messages/syslog file?
  • What is the default behavior of tar if no options are specified?
  • What type of messages are found in the secure logs?
  • What does the /var/log/syslog file primarily log?
  • What file permission is denoted by 'r' in Linux?
  • What is the function of the command 'ip link set <interface> <option>'?
  • Which command would you use to modify an existing group?
  • What is a symbolic link in Linux?
  • What information does the ip link show command provide?
  • What file would you modify to change the default shell for a user?
  • Which command would you use to search for a specific string in a file?
  • Which utility is primarily used for configuring TCP/IP settings on Linux and UNIX systems?
  • Why is the file data.txt empty after executing sort data.txt > data.txt?
  • What is the purpose of the /etc/resolver.conf file in Linux?
  • Which command is used to check if a remote host is available?
  • What does the "rm -rf" command do in Linux?
  • Which command is used to modify user accounts?
  • Which command is used to display the status of a specific network interface?
  • What does the command 'tar -z' indicate?
  • What does the 'v' option in the tar command stand for?
  • What command is used to display the current date and time?
  • What does the command 'ifconfig' do?
  • What does the command 'tar -c' do?
  • How do you monitor system resources in real-time?
  • What are environment variables?
  • What is the purpose of 'apt-get' in Linux?
  • Which command is used to display disk usage for the file system?
  • What is the purpose of the 'sudo' command?
  • Which command is used to view memory usage on a system?
  • Which of the following commands is used to show the information about a directory or a symbolic link?
  • What does the route command display in a Linux environment?
  • What is the primary purpose of the dmesg command?
  • What is the purpose of a process' PID?
  • Which log file would you check to troubleshoot printer issues?
  • What is the purpose of the 'f' option in the tar command?
  • What is 'bash scripting'?
  • What command would you use to create an archive using 'tar'?
  • What information is displayed when using the 'apt show' command?
  • What is the purpose of the 'sudo' command?
  • What additional capabilities does the 'top' command offer beyond displaying processes?
  • How do you append text to a file in Linux?
  • Which command provides information about currently running processes?
  • Which command would you use to view detailed information about network interfaces?
  • How can you compress a tar file with gzip upon creation?
  • What does the command 'tar -v' do?
  • What command would you use to display the current working directory?
  • Which of the following commands is used to remove a directory in Linux?
  • What does the command 'tail' do?
  • Which command would be used to view the current working directory?
  • Which command helps you search for a specific package in the repository?
  • Which command allows you to view a file's contents page by page?
  • What command is used to remove a software package in a Debian-based system?
  • What does the command chage -l username display?
  • Which of the following commands would you use to check the current active users in the system?
  • What is the primary purpose of the passwd command?
  • What does the JCPU entry of the w command indicate?
  • What does 'apt autoremove' do?
  • Which command is used to install a specific package?
  • Which command is commonly used to find the IP address of your machine?
  • Which command would you use to add a new user along with specific options for home directory and group?
  • What does the command 'tar -j' indicate?
  • What is the significance of the root user in Linux?
  • What does the 'df' command do?
  • What information can be found in the boot.log file?
  • What command displays the last 10 lines of a file?
  • What does the command 'chmod' do?
  • What command is used to remove a file in Linux?
  • What does the PCPU entry of the w command represent?
  • What is the primary purpose of a 'firewall'?
  • What is the correct statement to be used for comparison in a Linux shell script?
  • Which command can you use to create a new directory?
  • What command is used to create an archive file in Linux?
  • What does the chgrp command do?
  • What do GDM logs primarily contain?
  • What is the function of the command 'echo'?
  • Which of the following commands is used to copy files?
  • What command would you use to change the current working directory?
  • What does sudo do in Linux?
  • Which command helps display current directory in Linux?
  • Which tar option allows you to update an existing archive by adding new files?
  • What is the primary function of the iwconfig command in Linux?
  • Which string should you add to put the date into the prompt of the shell?
  • What is the primary function of the adduser command?
  • What does the iwlist command accomplish?
  • What is the purpose of the 'chmod' command?
  • What defines a Linux distribution?
  • How can you find the current working directory?
  • Which command would you use to list files in the current directory?
  • Which command is used to list files in a directory?
  • Which of the following logs would contain general messages about system activity?
  • What is the primary function of a package manager in Linux?
  • What is a shell in the context of Linux?
  • Which command is used to terminate a running process in Linux?
  • What command would you use to display disk partitions?
  • What does the command 'tar -x' do?
  • What does the command 'tar' primarily do in Linux?
  • Which command would you use to list all currently running processes in Linux?
  • Which file extension is commonly associated with tar archives?
  • Which command is used to view the kernel ring buffer messages?
  • What does the command 'tar -xf archive.tar' do?
  • In which directory would you typically find the user home directories in a Linux system?
  • What is the purpose of the 'grep' command in Linux?
  • What type of logs would you find in the cups/ log?
  • What command would you use to change the current working directory?
  • What does the 'echo' command do?
  • Which command would you use to check the current date and time in Linux?
  • What does the kernel ring buffer record?
  • What does the command usermod accomplish?
  • Which of the following options is used to gzip a file called filename?
  • What is the main purpose of the tar command in Linux?
  • How does the 'apt upgrade' command differ from 'apt dist-upgrade'?
  • What does the command passwd -S username do?
  • What is the use of the 'wget' command?
  • What does the command 'ps aux' do?
  • What functionality does 'apt search' provide?
  • Which of the following directories contain all of the installed kernels on your system and their needed drivers?
  • Which command will remove files from a directory before extracting a tar archive?
  • What command is used to remove an RPM package using the DNF package manager?
  • Which of the following commands can be used to resolve a DNS name to an IP address?
  • What is the function of the 'chmod' command?
  • What is the function of the DNF package manager?
  • What command is used to copy files?
  • What is the function of 'cron' in Linux?
  • What does the 'grep' command do?
  • What is the purpose of the useradd command with options such as -s, -d, and -G?
  • Which command is used to copy files in Linux?
  • Which command installs all available updates for packages?
  • Which of the following is used as a virtual or pseudo filesystem used to interface with the kernel and system as a whole but not with individual processes?
  • What command would be used to remove a file?
  • Which command would you use to view hardware-related messages?
  • Which file would you edit to change GRUB boot parameters?
  • Which command is used to change file permissions in Linux?
  • Which command would you use to list the contents of a tar archive without extracting it?
  • Where is user account information stored in a Linux system?
  • What does the 'mv' command do in Linux?
  • Which option can be used with tail to print the last X bytes of a file to the screen?
  • What command can be used similarly to adduser, including options for shell, home, and groups?
  • How do you remove a file using the command line?
  • Which command would you use to change a user's password?
  • What file would indicate services started via SysV scripts during startup?
  • What is indicated by the output of the `passwd -S` command?
  • Which command is used to copy files in Linux?
  • What is the structure called that defines the file system hierarchy in Linux?
  • Which command can be used to display running processes on a system?
  • Which of the following commands would you use to extract files from a tar archive?
  • What is the purpose of the /etc/fstab file?
  • What is the default shell in most Linux distributions?
  • Which command is used to list files in a directory?
  • What does LPI stand for?
  • What information does the 'who' command provide in a Linux system?
  • What command is equivalent to ifconfig in displaying IP details?
  • What is the purpose of the 'top' command?
  • To view and control processes in real time, which command would you use in Linux?
  • What command is used to create a compressed tar file with bzip2?
  • What is the role of the ifconfig command?
  • What does the grep command do in a Linux environment?
  • What does SSH stand for?
  • Which option is used with the 'free' command to display memory in human-readable format?
  • Are all Linux distributions capable of creating a network connection automatically?
  • Which command is used to check networking settings in a Linux environment?
  • What does the Xorg.0.log file provide information about?
  • What does the deluser command do?
  • What is the function of the command 'ping'?
  • Which command is used to change the ownership of a file in Linux?
  • What is NOT one of the ways that DHCP can be used to deliver IP addresses?
  • What does the command 'apt update' accomplish?
  • Where should temporary files be stored on a Linux system that can be safely deleted during a reboot?
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy