LPIC-1 Exam 101 v5.0 Free Sample Questions

Create a free account to browse all 20 sample questions. The full practice test includes 225 questions. Use the simulator for timed and flashcard mode. Or, view 169 more questions in the alternate version 101-400 169 Questions.

Try Simulator

101-500 Sample Questions

  1. Question 1

    Q1

    Which of the following regular expressions represents a single upper-case letter?

    Show answer & explanation

    Correct answer: B

    The character class [A-Z] correctly matches any single uppercase letter from A to Z. Character classes in regular expressions use square brackets to define a range or set of characters. The other options are incorrect: ;UPPER: is not a valid regular expression syntax, !a-z uses shell negation syntax rather than regex, %c is not valid regex syntax, and {AZ} uses curly braces which specify repetition counts, not character classes.

  2. Question 2

    Q2Multiple answers

    Running chmod 640 filea.txt as a regular user doesn’t update filea.txt’s permission.

    What might be a reason why chmod cannot modify the permissions? (Choose two.)

    Show answer & explanation

    Correct answers: A, B

    A regular user cannot change permissions of files they do not own, which is a fundamental Linux security principle. Additionally, symbolic links have fixed permissions (typically 777) that cannot be changed directly because the chmod command affects the target file, not the link itself. The other options are incorrect: the sticky bit does not prevent regular permission changes by the owner, hard links share permissions with their target (changing one changes all), and SetUID does not restrict chmod operations to root only.

    Symbolic links have fixed permissions that cannot be modified directly because chmod operations on a symbolic link actually affect the target file, not the link itself. When combined with ownership restrictions, this explains why chmod might fail. The symbolic link permissions shown by ls -l are always lrwxrwxrwx and are not changeable. The other options are incorrect: the sticky bit, hard link behavior, and SetUID restrictions do not prevent chmod operations in the described scenarios.

  3. Question 3

    Q3Multiple answers

    Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose two.)

    Show answer & explanation

    Correct answers: D, E

    The command sequence Esc :wq saves the file and exits vi by first pressing Escape to enter command mode, then typing :wq which means write (save) and quit. This is the most common and explicit way to save and exit. The other correct answer ZZ also saves and exits, while the incorrect options use invalid key combinations or syntax that do not exist in vi.

    The command ZZ in vi saves the current file and exits the editor when pressed after Escape. This is a quick shortcut equivalent to :wq but requires fewer keystrokes. Both ZZ and :wq perform the same function of saving changes and exiting. The other options are incorrect: Ctrl XX is not a vi command, Ctrl :W is invalid syntax, and Esc zz (lowercase) does not save and exit.

  4. Question 4

    Q4

    Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)

    Show answer & explanation

    Correct answer: A

    The nice command is used to start processes with a modified scheduling priority (nice value). It allows you to run commands with lower or higher priority relative to other processes. The nice value ranges from -20 (highest priority) to 19 (lowest priority), with 0 being the default. Only the command name nice is required as the answer, without path or parameters as specified in the question.

  5. Question 5

    Q5

    A yum repository can declare sets of related packages. Which yum command installs all packages belonging to the group admintools?

    Show answer & explanation

    Correct answer: C

    The yum groupinstall command installs all packages that belong to a specific package group. Package groups are predefined collections of related software packages that serve a common purpose. The admintools group would contain various system administration utilities. The other options are incorrect: pkgsel is not a yum subcommand, the /* syntax is not valid for group operations, taskinstall and collection install are not valid yum commands.

  6. Question 6

    Q6

    Which of the following properties of an existing file changes when a hard link pointing to that file is created?

    Show answer & explanation

    Correct answer: B

    When a hard link is created, the link count of the file increases because the filesystem now has multiple directory entries pointing to the same inode. The link count tracks how many directory entries reference the same file data. The other properties remain unchanged: file size stays the same since it points to the same data, modify timestamp is not updated by link creation, inode number remains identical, and permissions are shared between all hard links.

  7. Question 7

    Q7

    Which program updates the database that is used by the locate command? (Specify ONLY the command without any path or parameters)

    Show answer & explanation

    Correct answer: A

    The updatedb command updates the database used by the locate command. This database contains an index of all files on the system, making file searches with locate much faster than find. The updatedb command is typically run automatically via cron, but can be executed manually to refresh the database with recent file system changes. Only the command name updatedb is required without any path or parameters.

  8. Question 8

    Q8

    Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

    Show answer & explanation

    Correct answer: A

    The file cmdline in the /proc filesystem contains the command line parameters that were passed from the bootloader to the kernel during system startup. This file shows the kernel boot parameters including root filesystem, init program, and various kernel options. The /proc filesystem provides a virtual interface to kernel information, and cmdline specifically shows the boot command line without any directory path.

  9. Question 9

    Q9

    What is contained on the EFI System Partition?

    Show answer & explanation

    Correct answer: B

    The EFI System Partition (ESP) contains the first stage boot loader and other boot-related files for UEFI systems. This includes the UEFI boot loaders, boot manager files, and system firmware executables. The ESP is typically formatted with FAT32 and mounted at /boot/efi. The other options are incorrect: the kernel, device drivers, and system configuration files are stored elsewhere in the filesystem.

  10. Question 10

    Q10

    What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

    Show answer & explanation

    Correct answer: C

    Regular users can only assign niceness values from 0 to 19 when starting new processes with the nice command. The value 19 represents the lowest priority (most nice), while 0 is the default priority. Negative nice values (-20 to -1) provide higher priority but can only be set by the root user. This limitation prevents regular users from creating high-priority processes that could impact system performance.

Register free to unlock 10 more sample questions

Create a free account to continue with the rest of the 101-500 sample set.

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 394 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon