LPIC-2 Exam 201

Here you have the best LPI 201-450 practice exam questions

  • You have 120 total questions across 24 pages (5 per page)
  • These questions were last updated on February 14, 2026
  • This site is not affiliated with or endorsed by LPI.
Question 1 of 120

Which of the following commands erases the contents of the /dev/sdb3 partition?
Answer

Suggested Answer

The suggested answer is B.

The correct command to erase the contents of the /dev/sdb3 partition is 'dd if=/dev/zero of=/dev/sdb3'. This command uses 'dd' to copy data; 'if=/dev/zero' specifies the input file as /dev/zero, a special file in Unix-like systems that provides as many null bytes (zeroes) as are read from it. 'of=/dev/sdb3' specifies the output file as the /dev/sdb3 partition. Thus, this command effectively overwrites the partition with zeroes, erasing its contents.

Community Votes8 votes
BSuggested
100%
Question 2 of 120

Which of the following files will be looked for and used by GNU make, if one of them exists, unless a different file is specified on the command line when trying to compile software from source code? (Choose two.)
Answer

Suggested Answer

The suggested answer is C, D.

When using GNU make to compile software from source code, it will by default look for a file named 'makefile' or 'Makefile'. These are the two standard file names recognized by GNU make for the build instructions unless a different file is specified on the command line.

Community Votes3 votes
CDSuggested
100%
Question 3 of 120

FILL BLANK -
What command is used to send messages to all users currently logged in? (Specify ONLY the command without any path or parameters.)
Answer

Suggested Answer

The command used to send messages to all users currently logged in is 'wall'. The 'wall' command allows the system administrator to broadcast a message or the contents of a file to all logged-in users' terminals. The command sends the specified message to all users who are logged in to the system and have writable terminals.

Question 4 of 120

Which of the following commands restores only those files containing lpi in their name from the archive lpifiles.tar.gz?
Answer

Suggested Answer

The suggested answer is A.

The correct command to extract only those files containing 'lpi' in their names from the archive lpifiles.tar.gz is 'tar xvzf lpifiles.tar.gz --wildcards "*lpi*"'. By using the '--wildcards' option, tar will interpret the pattern '*lpi*' and extract the matching files from the archive.

Community Votes2 votes
ASuggested
100%
Question 5 of 120

A regular user has just run -
./configure && make && make install
to build and install a program. However, the installation fails. What could be done to install the program? (Choose two.)
Answer

Suggested Answer

The suggested answer is B, D.

To install the program successfully, there are a few common methods when the installation process fails due to a regular user not having sufficient permissions. First, running 'make install' with root privileges (option B) ensures that the user has the necessary permissions to write to system directories. Second, rerunning './configure' with a '--prefix' option to a directory where the user has write permissions (option D) allows installation to proceed in a user-owned directory, avoiding permission issues.

Community Votes

No votes yet

Join the discussion to cast yours

About the LPI 201-450 Certification Exam

About the Exam

The LPI 201-450 (LPIC-2 Exam 201) validates your knowledge and skills. Passing demonstrates proficiency and can boost your career prospects in the field.

How to Prepare

Work through all 120 practice questions across 24 pages. Focus on understanding the reasoning behind each answer rather than memorizing responses to be ready for any variation on the real exam.

Why Practice Exams?

Practice exams help you familiarize yourself with the question format, manage your time, and reduce anxiety on the test day. Our 201-450 questions are regularly updated to reflect the latest exam objectives.