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.

Ace the LPI 101-500 Test 2026 – Launch Your Linux Journey with Confidence! course image
More practice questions

These questions are part of the practice quiz. Start practicing

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

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy