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 course image
More practice questions

These questions are part of the practice quiz. Start practicing

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

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy