
[Nov-2022] The Best LPIC Level1 Study Guide for the 101-500 Exam
101-500 certification guide Q&A from Training Expert TrainingDump
NEW QUESTION 57
Which program updates the database that is used by the locate command?
Answer:
Explanation:
updatedb
NEW QUESTION 58
Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?
grep -E ':08:[09]+:[09]+' loga.log
- A. grep -E ':08:[0-9]+:[0-9]+' loga.log
- B. grep -E loga.log ':08:[0-9]+:[0-9]+'
- C. grep -E ':08:[00]+' loga.log
- D. grep loga.log ':08:[0-9]:[0-9]'
- E.
Answer: E
NEW QUESTION 59
Which of the following commands installs GRUB 2 into the master boot record on the third hard disk?
- A. grub-setup /dev/sdc
- B. grub-mbrinstall /dev/sdc
- C. grub-mkrescue /dev/sdc
- D. grub2 install /dev/sdc
- E. grub-install /dev/sdc
Answer: E
NEW QUESTION 60
What does the command mount -a do?
- A. It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.
- B. It opens an editor with root privileges and loads /etc/fstab for editing.
- C. It shows all mounted file systems that have been automatically mounted.
- D. It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.
- E. It ensuresthat all file systems listed with the option auto in /etc/fstab are mounted.
Answer: E
NEW QUESTION 61
Which of the following commands is used to change metadata and options for ext3 filesystems?
- A. tune2fs
- B. mod2fs
- C. tune3fs
- D. mod3fs
- E. dump2fs
Answer: A
NEW QUESTION 62
Which daemon handles power management events on a Linux system?
acpid
- A. batteryd
- B.
- C. psd
- D. inetd
- E. pwrmgntd
Answer: A
NEW QUESTION 63
If the gzip compressed tar archive texts.tgz contains the files a.txt and b.txt, which files will be present in the current directory after running gunzip texts.tgz?
- A. Only a.txt and b.txt
- B. Only texts.tar
- C. Only texts.tar and texts.tgz
- D. Only a.txt, b.txt, and texts.tgz
- E. Only a.txt.gz and b.txt.gz
Answer: C
NEW QUESTION 64
Which of the following commands can be used to create a USB storage media from a disk image?
- A. cc
- B. dd
- C. fdisk
- D. gdisk
- E. mount
Answer: B
NEW QUESTION 65
Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
nice
NEW QUESTION 66
Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?
- A. kill -PIPE 123
- B. kill -TERM 123
- C. kill -STOP 123
- D. kill -KILL 123
Answer: B
NEW QUESTION 67
What output will be displayed when the user fredexecutes the following command?
echo 'fred $USER'
fred fred
- A. fred $USER
- B. fred /home/fred/
- C. 'fred fred'
- D. 'fred $USER'
- E.
Answer: C
NEW QUESTION 68
Which of the following files, located in a user's home directory, contains the Bash history?
- A. .bash_histfile
.history - B.
- C. .bashrc_history
- D. .bash_history
- E. .history_bash
Answer: E
NEW QUESTION 69
Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)
- A. chmod 2775 sales
- B. chgrp -p sales sales
- C. setpol -R newgroup=sales sales
- D. chown --persistent *.sales sales
- E. chmod g+s sales
Answer: A,B
NEW QUESTION 70
Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?
- A. U (uppercase)
- B. P (uppercase)
- C. i (lowercase)
- D. p (lowercase)
- E. u (lowercase)
Answer: D
NEW QUESTION 71
When redirecting the output of findto the xargscommand, what option to findis useful if the filenames contain spaces?
-rep-space
- A. -nospace
- B. -print0
- C. -ignore-space
- D. -printnul
- E.
Answer: E
NEW QUESTION 72
Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?
- A. ls 3> data
- B. ls >& data
- C. ls > data
- D. ls >> data
Answer: C
NEW QUESTION 73
Which of the following commands can perform searches on file contents using regular expressions?
find
- A. reggrep
- B.
- C. grep
- D. locate
- E. pgrep
Answer: A
NEW QUESTION 74
Which command must be entered before exiting vi to save the current file as filea.txt?
%s filea.txt
- A.
- B. :w filea.txt
- C. :save filea.txt
- D. %w filea.txt
- E. :s filea.txt
Answer: E
NEW QUESTION 75
Which command displays the current disk space usage for all mounted file systems?
(Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
du
NEW QUESTION 76
Which of the following commands show how the shell handles a specific command?
- A. where
- B. type
- C. case
- D. stat
- E. fileinfo
Answer: B
NEW QUESTION 77
Which of the following commands show how the shell handles a specific command?
where
- A.
- B. case
- C. type
- D. stat
- E. fileinfo
Answer: D
NEW QUESTION 78
Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?
- A. dd if=/dev/zero of=/dev/sda bs=440 count=1
- B. dd if=/dev/zero of=/dev/sda bs=512
- C. dd if=/dev/zero of=/dev/sda bs=512 count=1
- D. dd if=/dev/zero of=/dev/sda bs=440
Answer: A
NEW QUESTION 79
Which file from the /proc file system contains a list of all currently mounted devices? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
mounts
NEW QUESTION 80
......
The Best Lpi 101-500 Study Guides and Dumps of 2022: https://www.trainingdump.com/Lpi/101-500-practice-exam-dumps.html
101-500 Certification Overview Latest 101-500 PDF Dumps: https://drive.google.com/open?id=1eUYUjlmX43RT_yPZh_bvUm3d_S4CIOVC