Sample questions
Linux Professional Institute Certification Level 1 LPIC-1 practice questions
Which TWO commands can be used to display the current runlevel of a SysV init system?
A system administrator notices that the system boots to the graphical interface but wants to change it to boot to a non-graphical multi-user target. Which command will make this ch…
An administrator wants to change the ownership of a file to user 'jane' and group 'staff'. Which command should be used?
An administrator wants to add a kernel parameter 'quiet splash' to the default boot entry. Which file should be edited?
Refer to the exhibit. The root filesystem is at 95% capacity. Which option will free space on the root filesystem?
A system administrator notices that a server with an ext4 filesystem fails to boot after editing /etc/fstab. The error message indicates that the root filesystem cannot be mounted.…
Refer to the exhibit. On boot, which filesystem will be checked first by fsck?
The system is unable to mount a filesystem that should be identified by UUID 1234-5678. The administrator checks /etc/fstab and finds the entry: UUID=1234-5678 /data ext4 defaults…
Which TWO commands can be used to display information about the CPU(s) in a Linux system? (Choose two.)
Arrange the steps to configure a static IP address on a Linux system using the command line.
Refer to the exhibit. What is the current default target?
A system administrator needs to install the latest version of a package named 'webapp' from a third-party repository that has been added to the system. Which command should be used…
A system administrator needs to locate the largest directories under /var to free up disk space. Which command is most appropriate?
Which TWO tools can be used to query DNS records? (Choose two.)
The system administrator wants to add a new swap partition on /dev/sdb2. After creating the partition, which command should be used to initialize it as swap?
During system startup, GRUB 2 displays a prompt. Which command should be typed at the GRUB prompt to boot the currently selected entry normally?
Linux Installation and Package ManagementmediumSee the answer and why each option is right or wrong →A user reports that a cron job is not executing. The cron job is defined in /etc/crontab. The administrator checks the system logs and finds no errors. Which command should the adm…
Which sed command will replace the first occurrence of 'foo' with 'bar' on each line of a file?
Which two commands can be used to send a test email from the command line to verify SMTP functionality? (Choose two.)
Essential System Services and NetworkingmediumSee the answer and why each option is right or wrong →A Linux administrator is managing a server that uses RPM-based package management. They need to find which installed package provides the '/etc/ssh/sshd_config' file. Which command…
Linux Installation and Package ManagementmediumSee the answer and why each option is right or wrong →An administrator wants to list all lines in a log file that do NOT contain the word 'ERROR'. Which command should be used?
After a reboot, a server fails to obtain an IP address on its sole ethernet interface. The administrator checks /etc/netplan/01-netcfg.yaml and finds the configuration looks correc…
Essential System Services and NetworkingmediumSee the answer and why each option is right or wrong →A user reports that running '/usr/local/bin/myapp' from the command line results in 'bash: /usr/local/bin/myapp: No such file or directory'. The exhibit shows the file exists and i…
A Linux system's hostname resolution does not consult /etc/hosts before querying DNS. Which file controls the order of name resolution services?