Browse all practice questions for the Linux Professional Institute (LPI) 101-500 Practice Test. Search by topic, open any question and review its full explanation, then test yourself in the practice quiz.

Linux Professional Institute (LPI) 101-500 Practice Test 2026 - Free LPI 101-500 Practice Questions and Study Guide course image
All questions

These questions are part of the practice quiz. Start practicing

  • How can you view your login history in a Linux system?
  • A faulty kernel module is causing issues with a network interface card. Which action ensures it is not loaded automatically on boot?
  • What type of files are typically found in the /boot directory other than the Linux kernel images?
  • Which file stores user account information in Linux?
  • Which command is used to change the group owner of a file?
  • Which command is used to stop a running process in Linux?
  • What command is used to copy a file in Linux?
  • What distinguishes a hard link from a symbolic link in Linux?
  • What command would you use to check the integrity of a filesystem?
  • How can you create a symbolic link to a file in Linux?
  • What file do you need to edit to configure network interfaces in a Debian-based system?
  • What is the role of the /etc/shadow file?
  • Which command do you use to change the ownership of a file in Linux?
  • How do you show the properties of a file?
  • Which command displays the current working directory?
  • How many fields are typically found in a syntactically correct line of /etc/fstab?
  • How can you view a file’s content page by page?
  • Which command is most commonly used for changing a user's password in Linux?
  • Which of the following is true when a file system, which is neither listed in /etc/fstab nor known to the system, is mounted manually?
  • How do you create a backup of a file?
  • Which command is used to install all packages in a specified yum group?
  • What does the 'ps' command display?
  • Which command provides a detailed usage report for various commands previously executed?
  • What is the purpose of the 'grep' command?
  • What command would you use to list all files and directories in the current directory?
  • How do you terminate a running process in Linux?
  • How would you display all environment variables in your shell?
  • What does the uname -r command do?
  • How can you renaming a file in Linux?
  • What type of filesystem is generally recommended for use in servers requiring high performance?
  • Which command is used to view the current running processes in Linux?
  • How can you schedule a command to run at a specific time?
  • Which chown command changes the ownership to dave and the group to staff on a file named data.txt?
  • Which of the following commands is used to remove a package in Ubuntu?
  • Which command is typically used to update package lists in Debian-based systems?
  • Which files are typically found in the /boot/ file system?
  • What command would you use to view the last 10 lines of a file?
  • Which command is used to search for a string within files in Linux?
  • What command installs all packages belonging to the group 'admintools' using yum?
  • What does the command 'pwd' stand for?
  • What is true regarding UEFI firmware?
  • Which command is used to change the current working directory?
  • Which command is used to create a new user in a Linux system?
  • What does the command `echo "Hello" > greeting.txt` do?
  • What is the full path to the directory containing configuration files for additional yum repositories?
  • Which type of file system is created by mkfs when it is executed with the block device name only and without any additional parameters?
  • Which command would you use to copy files in Linux?
  • How can you view system logs in a Linux environment?
  • What does the 'chmod' command do?
  • What command can check disk space usage in Linux?
  • Which command would you use to find out which Linux distribution you are using?
  • Immediately after deleting 3 lines of text in vi, which command will insert the deleted content below the current line?
  • Which command is used to install packages in Debian-based systems?
  • Which command is used to display the first few lines of a text file?
  • What is the purpose of the `rsync` command?
  • How can you display the current working directory in Unix-like systems?
  • What is the primary function of the 'sync' command?
  • Which command can be used to compare two files line by line?
  • Which command can be used to display system uptime?
  • Which command is used to view the contents of a file in Linux?
  • What is the function of 'grep -i' command?
  • What does the 'netstat -tuln' command specifically display?
  • What does the command grep do?
  • How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?
  • When is the content of the kernel ring buffer reset?
  • In Linux, which file system type is commonly used for USB drives?
  • What is a common use of the 'top' command?
  • How can you check the file type of a file in Linux?
  • How can you display line numbers while viewing a file in Linux?
  • Which command changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?
  • How can you display contents of a file page by page in Linux?
  • Which command would you use to remove a file in Linux?
  • What is the primary purpose of the top command in Linux?
  • What is the first program the Linux kernel starts at boot time when using System V init?
  • Which command allows you to list all files in a directory in Linux?
  • Which command ensures new files created within the directory sales are owned by the group sales?
  • Which command is used to remove files in Linux?
  • Which command installs GRUB 2 into the master boot record on the third hard disk?
  • What output will be displayed when the user fred executes echo 'fred $USER'?
  • How can you monitor disk activity in Linux?
  • How do you find the configuration file for a service in Linux?
  • Which files exist in a standard GRUB 2 installation?
  • How do you check the current kernel parameters in a Linux system?
  • In Debian package management, which command helps to resolve and fix broken dependencies?
  • What is a key feature of the `apt` package management system?
  • Which command can you use to check memory usage in a Linux system?
  • How do you navigate to the parent directory in a Linux file system?
  • What is the purpose of the chmod command?
  • What option to find is useful when filenames contain spaces for redirecting output to xargs?
  • Which file from the /proc/ file system contains a list of all currently mounted devices?
  • What command is used to monitor system performance in real-time?
  • Which command can be used to search for a specific text within files?
  • What does the command 'chmod' do in Linux?
  • What does the command 'uname -a' display?
  • Which statements are true about the boot sequence of a PC using a BIOS?
  • What is the primary function of the tar command in Linux?
  • What does LVM stand for in Linux?
  • How do you create a symbolic link to a file?
  • Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel?
  • Which command can be used to change the default shell for a user?
  • In Linux, which of the following symbols represents the home directory of a user?
  • Which command is used to display the disk usage of files and directories?
  • What command is used to compress files using gzip?
  • How can you execute a script in Linux?
  • What does the 'umask' command do?
  • What is the significance of the 'g+s' option when changing the permissions of a directory?
  • Which program runs a command in specific intervals and refreshes the display of the program's output?
  • What does the `hostname` command do?
  • Which directories on a 64 bit Linux system typically contain shared libraries?
  • What command is used to create a new user account in Linux?
  • What is the function of the `.bashrc` file?
  • Which of the following commands is used to search for files by name?
  • What command could you use to change the current directory in Linux?
  • How do you switch to another user in the terminal?
  • Which command lists all users currently logged into the system?
  • Which command lists all currently installed packages using RPM package management?
  • What does the 'chattr' command do?
  • What does the 'top' command do in Linux?
  • Which command can be used to generate a file list from a directory?
  • What is the purpose of the 'chmod' command?
  • What does the command mount --bind do?
  • Which command can be used to check the status of a service?
  • Which of the following options is NOT used as a method to identify partitions for mounting?
  • Which command is used to set the SetUID permission on the executable /bin/foo?
  • Which command would you use to check the version of the kernel currently running?
  • Which regular expression turns the input stream into the output stream with .bak extension?
  • Which partition type is used for Linux swap spaces when partitioning hard disk drives?
  • How do you search for a command based on its description?
  • What is the primary purpose of the ldd command in Linux?
  • What does the ps aux command display?
  • Which command would help you check if a specific port is open on your server?
  • Which statements are correct when comparing Linux containers with traditional virtual machines?
  • Which command checks for available updates in an Ubuntu system?
  • Which command displays the currently running processes in Linux?
  • What is the purpose of the sudo command?
  • What does the 'rm' command do?
  • How would you display the current working directory in a terminal?
  • What does the mount command do in a Linux system?
  • What does the command 'top' do in Linux?
  • Which command would you use to view the content of a compressed archive?
  • Which of the following options can be used to identify the intended partition for mounting instead of supplying an explicit device in /etc/fstab?
  • How do you list all files including hidden files in a directory?
  • Which command installs all packages with a name ending with the string foo?
  • How do you display manual pages for a command in Linux?
  • How can you find the location of a binary executable?
  • What is the process ID number of the init process on a System V init based system?
  • Which command is used to list all files, including hidden files, in a directory?
  • What does the command 'ls -a' show?
  • Which daemon handles power management events on a Linux system?
  • How can you show the available disk space on all mounted filesystems?
  • What is the default shell in most Linux distributions?
  • What does the 'tail -f' command do?
  • Which command changes all CR-LF line breaks in the text file userlist.txt to Linux standard LF line breaks?
  • Which file contains user account information in Linux?
  • Which filesystem type supports journaling?
  • A Debian package creates several files during its installation. Which command searches for packages owning the file /etc/debian_version?
  • What command would you use to check disk usage of files and directories?
  • In compliance with the FHS, where are man pages found?
  • When should you use the -r option with the rm command?
  • What command is used to display disk usage in human-readable format?
  • How can you confirm active network interfaces in Linux?
  • How can you display the contents of a text file in the terminal?
  • Which command is used to create a new user account in Linux?
  • Which command must be entered in vi to save the current file as filea.txt?
  • What command can you use to search for files by name in Linux?
  • What do runlevels define in Linux?
  • What command is used to display the contents of a file in Linux?
  • Which command is used to list the contents of a directory in Linux?
  • Which command is used to create a new directory in Linux?
  • How do you create a new directory in Linux?
  • Which command would you use to list the contents of a specific directory?
  • In addition to cat /proc/self/mounts, which other command can be used to display all currently mounted filesystems?
  • How can you compress a directory using the tar command?
  • Which command is used to display the current directory in Linux?
  • What is the purpose of the 'sudo' command?
  • What is the purpose of the /etc/fstab file in Linux?
  • Which command would you use to copy a file in Linux?
  • What file does the `ls` command command output to when redirected to a file?
  • Which file defines the network locations for the Debian package manager to download software packages?
  • How can you access the system log files in Linux?
  • What does 'ls -l' command provide in Linux?
  • How do you change file permissions in Linux?
  • What command would you use to download files from the internet?
  • Which command is used to display the current working directory?
  • What dpkg option ensures that configuration files are removed when a package is uninstalled?
  • What does the df command display?
  • What does the command 'chmod 755 filename' do?
  • What command allows you to view running services on a Linux system?
  • Which properties of a Linux system should be changed when a virtual machine is cloned?
  • What is the command to update package lists in Debian-based systems?
  • Which command can be used to display all currently mounted filesystems?
  • Which command is used to count the number of lines in a file?
  • What is contained on the EFI System Partition?
  • What is the primary purpose of the Linux kernel?
  • How do you check the status of a service?
  • Which command is appropriate for deleting a directory along with its contents?
  • What is the purpose of the 'chmod' command?
  • What command is used to display the current working directory?
  • Which command would you use to view active processes in a Linux system?
  • What is the purpose of the `scp` command?
  • What command can be used to install missing dependencies for a failed local Debian package installation?
  • What command is used to extract files from a compressed archive?
  • What is a shell in Linux?
  • Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group, and are not accessible at all for everyone else?
  • Which command can you use to find the current path of a command in Linux?
  • Which command is used to change file permissions in Linux?
  • What file contains the boot parameters for the Linux kernel during system startup?
  • What does the `pwd` command stand for?
  • Which command can be used to check disk usage of directories?
  • How can you ensure a command runs repeatedly at set intervals?
  • Which command displays the current disk space usage for all mounted file systems?
  • What is the function of the 'tar' command?
  • Which command installs the GRUB boot files into the currently active file system?
  • In which mode does the system operate when set to runlevel 3?
  • What configuration file is responsible for controlling user login settings in Linux?
  • For creating an alias for a command in Linux, which file typically gets edited?
  • What does the command 'tar -czvf' do?
  • Which command displays the output of the foo command on the screen and writes it to /tmp/foodata?
  • Which command can be used to change file permissions in Linux?
  • How do you view environment variables in a Linux shell?
  • What command is used to remove a directory and its contents?
  • What are valid reasons not to use hard links?
  • What command is used to display the current user's ID?
  • What is the primary function of the `cron` service in a Linux environment?
  • What command can be used to clear the kernel ring buffer?
  • What is the purpose of the vi editor in Linux?
  • How do you enable verbose mode for command output?
  • What command lets you view the manual for other commands?
  • How do you install a package using the RPM package manager?
  • What does the command `chmod 755 filename` accomplish?
  • What does the ps command do in Linux?
  • What utility is used to check for and repair errors in an ext2/ext3/ext4 filesystem?
  • What is the purpose of the find command?
  • Which command is used to update the database that is used by the locate command?
  • What is the function of the 'sudo' command?
  • Which command can be used to copy files in Linux?
  • What does the 'ps' command do in Linux?
  • Which command will list the contents of a directory in long format?
  • What information does the 'df' command provide?
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy