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

LPI Linux Essentials Practice Exam course image
More practice questions

These questions are part of the practice quiz. Start practicing

  • What script is typically executed when a user logs out of a shell session?
  • In the vi editor, which key combination exits insert mode?
  • What does the command 'echo' do?
  • How can you view the processes currently running on a Linux system?
  • What is the purpose of the Linux Essentials certification?
  • What does the 'mv' command do?
  • What is the purpose of the 'df' command?
  • Which bash startup file is executed for non-login interactive shells?
  • Who is the founder of the GNU project?
  • What file system type is commonly used for Linux partitions?
  • What do we call a collection of files and directories in Linux?
  • What does the command `unset VARIABLE_NAME` do in bash?
  • In a man page, what section contains related man pages or other resources?
  • What can you do if you get an invalid command error when trying to execute a copied script?
  • What is the purpose of the command 'ls'?
  • What command would you use to disable a second network interface in Linux?
  • In a Linux environment, what does the tilde (~) character represent?
  • If you suspect a router is down preventing access to an email server, which command can test connectivity?
  • To view the kernel ring buffer and check for newly added hardware, which command should you use?
  • What is the default file permission for a newly created file for the user?
  • What is the purpose of the 'kill' command?
  • Which command is used to view the contents of a text file in the terminal?
  • Which file is commonly used for user account management in Linux?
  • Is it possible to build an email server for an organization with around 200 employees using a Linux system?
  • Which command is used to create a new directory?
  • What command would you use to view the current directory paths in Linux?
  • Which command will send the output of the 'who' command to a text file?
  • Which section of a man page contains utilities used by the root user?
  • Which command is used to install software packages in a Debian-based system?
  • You've downloaded an application package that has an extension of .rpm. What is required to install it on your Linux system?
  • What command can you use to display network configuration in Linux?
  • Which command is used to list files in a directory?
  • Which command can be used to verify the connection to a remote server?
  • Which component provides prewritten binary files that programmers can use in their Linux applications?
  • What environmental variable might we use to specify the directory where man page files will be located?
  • What command is used to update the package list on Ubuntu?
  • What does the 'chmod' command do?
  • What is the primary purpose of the /etc/profile file in bash?
  • Which interface is commonly used to connect to a Linux server remotely?
  • Which environment variable points to the current user's home directory?
  • Which of the following are actually roles of the Linux system?
  • Which utility allows you to switch to the root user?
  • Which file holds the most recently entered shell commands for a user?
  • Which command is used to change a directory in Linux?
  • What port does the sshd daemon listen on by default for incoming SSH connections?
  • How would you limit the ping command to send only five packets to a remote host?
  • What is the primary function of the 'sudo' command?
  • What does LPI stand for?
  • Which of the following files is typically used for user-specific bash configurations?
  • In which way can you view the content of a text file in Linux with pagination?
  • Which command is used to search for manual entries related to the Postfix service?
  • Which command is used to display the contents of a compressed file?
  • To search for man pages related to the Samba daemon, which command should be used?
  • Which software movement is against proprietary software?
  • Which command provides a list of all running processes on the system?
  • Which text-mode utility can be used to get help in Linux aside from man?
  • If an application has permissions set to Rw-r—r— but does not run, why is that?
  • Which shell is typically the default in most Linux distributions?
  • What is the correct syntax for creating a parent directory and a child subdirectory?
  • In a bash shell, what does the command `alias ll='ls -l'` accomplish?
  • Which command is used to copy files in Linux?
  • Which command is used to display the current working directory?
  • How do you install a package using APT?
  • What does the 'pwd' command display?
  • How can you change the ownership of a file in Linux?
  • What is the default shell for most Linux distributions?
  • What does the 'man' command do in Linux?
  • Which command is used to create a symbolic link from a file located at /usr/share/manual to a link in your home directory named 'manual'?
  • Which command will display the contents of a text file page by page?
  • What is an important consideration when selecting a Linux distribution for a database server?
  • What is the purpose of the 'chmod' command in Linux?
  • What does the command 'grep' do?
  • What command is used to display the content of a file in the terminal?
  • What is the function of the /etc/shadow file?
  • What does the command 'chmod' do?
  • What is the primary function of the 'shutdown' command?
  • If your first NIC is aliased as eth0, what is the most likely alias for a second network interface?
  • What is the function of the 'passwd' command?
  • How can you view Linux system logs?
  • What does the command 'whoami' return?
  • Which command would you use to check network connections in Linux?
  • What does the 'history' command do in the terminal?
  • Which command allows a user to exit from the 'su' session?
  • Which command is used to connect to an SSH server as the 'stephen' user?
  • What is necessary to execute a program directly in the terminal?
  • What file contains user account information in Linux?
  • What does the term 'root' user refer to in Linux?
  • What command helps you locate the path of a system executable in your environment?
  • Which command displays the current running processes in the terminal?
  • What Linux server applications can you configure in order to provide network database services?
  • Which services allow the use of shared network printing?
  • What does the term 'package management' refer to in Linux?
  • Which command is used to change the working directory?
  • What is the purpose of the '~/bin' directory?
  • Which filesystem command is utilized to check and repair filesystems?
  • What does the 'mkdir' command do?
  • What command should you use to find a file named la.txt in the current directory?
  • What would be the result of running a script without executing permissions?
  • What is the purpose of the 'sudo' command?
  • When it comes to bash configuration files, which of the following will be read/executed when logging into a shell that is considered to be a non-login shell?
  • Which command is used to view active network connections?
  • After making several mistakes in a vi editor session, which command allows you to quit without saving changes?
  • What is the effect of adding `export PATH="$PATH:/new/path"` in a bash configuration file?
  • What command will show your system's current working path?
  • Which command will show you the last activity in your terminal session?
  • How can you add a new user account named 'newguy' to a system?
  • Which command would you use in Linux to temporarily suspend a process?
  • Where can you add files so that new users will automatically have them upon first login?
  • From your current location on the file system, how would you change to three directories above the current directory?
  • What is the typical extension for a Debian package file?
  • When editing a bash profile, which command would you use to apply the changes immediately?
  • Which command is used to copy files or directories in Linux?
  • What is the role of the /etc/passwd file in Linux?
  • What should the first line of a bash shell script typically contain?
  • If you want to verify the uptime of a remote host named dns2.linuxacademy.com, which command should you use?
  • Which package management system is commonly used in Debian-based distributions?
  • What does the 'chmod 755' command do?
  • When using the 'grep' command, what functionality does the '-i' option provide?
  • What command is typically used to view the contents of a file in Linux?
  • To delete the //APP directory and all of its child folders and files, which command is best?
  • Which command is used to display the current working directory in Linux?
  • What command would you enter to list all active network interfaces?
  • Which command is used to list files and directories in the current directory?
  • Which command is used to find files and directories?
  • Which directory contains filesystem management utilities like cp and mv?
  • Which command would you use to view the default gateway address on your system?
  • What is the syntax for changing the group ownership of a file?
  • Which software development model is recognized as being less structured compared to others?
  • What does the command 'pwd' do?
  • Which command can be used to see who is currently logged into the system?
  • How do you set permissions on a script to allow execution?
  • Which command helps in finding out disk usage of directories?
  • What does the 'ping' command do?
  • What command would copy all files ending in .pdf to the Documents directory?
  • In Linux, what is the default shell?
  • To change permissions of a file to make it read-only for everyone, which command should you use?
  • How do you change directories in Linux?
  • What command is used to list all files and directories in the current directory?
  • What command can be used to search the manual database for keywords?
  • What utility is commonly used to find and display manual pages?
  • Is it permissible to modify and redistribute the Linux kernel source code?
  • What does 'chmod' do in Linux?
  • What must you do to use the BACKSPACE key to delete a word while in command mode of vi?
  • Which command will delete a word in vi without removing the following space?
  • What symbol is used to represent the home directory in Linux?
  • Which of the following files would be checked for additional user-specific configurations after /etc/profile?
  • What does the 'chmod' command do in Linux?
  • What would be the best Linux distribution choice for a high load production database application?
  • What can you do to access another shell without quitting your current application?
  • Which command is used to create an empty file in Linux?
  • Which keyword is used to refer to the absolute path in Linux?
  • What is a shell in the context of Linux?
  • What command would you use to display the current directory in Linux?
  • Which configuration file is read first when a login bash shell is executed?
  • What does the 'tar' command do?
  • Which of the files below will configure the path to the man page's files?
  • What does the command 'hostname' do?
  • How can you exit a man page and return to the shell?
  • Which command would you use to change directory?
  • Which command provides a way to terminate a process safely from the command line?
  • In bash, which file is executed for each new interactive shell?
  • Which is true about hardware MAC addresses?
  • What does the command 'mkdir' do in Linux?
  • What is the significance of the '/etc' directory?
  • What does the 'kill' command do?
  • What protocol do network applications use that can tolerate unreliability for very low latency?
  • While using vi in insert mode, how can you switch to replace mode?
  • Which command is used to create a new directory in bash?
  • What command would you use to remove a directory?
  • What is the function of 'grep' in a command pipeline?
  • What does the ~/.bashrc file generally configure?
  • What command is typically used to create a new directory in Linux?
  • Which command can be used to check the current value of the PATH environment variable?
  • Which of the following commands will open your default text editor for editing the .bashrc file?
  • What is a 'Symbolic Link' in Linux?
  • What is the purpose of the 'grep' command?
  • What command would you use to search for specific text inside multiple files?
  • Which file contains encrypted passwords for users on a Linux system?
  • What is one basic troubleshooting step when a networked printer is not responding?
  • Which text editor is commonly used in Linux for editing files?
  • What commands will tell us what our IP address is on our Linux system?
  • Which command would you use to remove a file in Linux?
  • What is the purpose of the 'ping' command?
  • What command would you use to find a file named 'test.txt'?
  • Which command would uncompress a file named 'important.bz2'?
  • What key should you press for command completion within a Linux shell?
  • Which section of a man page provides a brief review of the command's syntax?
  • Which command displays currently mounted file systems?
  • What does the command 'ls' do?
  • How can you display the manual page for the cd command?
  • What command allows users to view system performance in real-time?
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy