101-500: LPIC-1 Exam 101 Part 4
Question #: 31
Topic #: 1
Which command uninstalls a package but keeps its configuration files in case the package is re-installed?
A. dpkg -s pkgname
B. dpkg -L pkgname
C. dpkg -P pkgname
D. dpkg -v pkgname
E. dpkg -r pkgname
Question #: 32
Topic #: 1
Which of the following commands lists the dependencies of the RPM package file foo.rpm?
A. rpm -qpR foo.rpm
B. rpm -dep foo
C. rpm -ld foo.rpm
D. rpm -R foo.rpm
E. rpm -pD foo
Question #: 33
Topic #: 1
What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?
A. 9
B. 15
C. 19
D. 49
E. 99
Question #: 34
Topic #: 1
Which of the following commands list all files and directories within the /tmp/ directory and its subdirectories which are owned by the user root? (Choose two.)
A. find /tmp -user root -print
B. find -path /tmp -uid root
C. find /tmp -uid root -print
D. find /tmp -user root
E. find -path /tmp -user root -print
Question #: 35
Topic #: 1
Which of the following are valid stream redirection operators within Bash? (Choose two.)
A. <
B. #>
C. %>
D. >>>
E. 2>&1
Question #: 36
Topic #: 1
Which of the following vi commands deletes two lines, the current and the following line?
A. d2
B. 2d
C. 2dd
D. dd2
E. de12
Question #: 37
Topic #: 1
The command dbmaint & was used to run dbmaint in the background. However, dbmaint is terminated after logging out of the system. Which alternative dbmaint invocation lets dbmaint continue to run even when the user running the program logs out?
A. job -b dmaint
B. dbmaint &>/dev/pts/null
C. nohup dbmaint &
D. bg dbmaint
E. wait dbmaint
Question #: 38
Topic #: 1
From a Bash shell, which of the following commands directly execute the instructions from the file /usr/local/bin/runme.sh without starting a subshell?
(Choose two.)
A. source /usr/local/bin/runme.sh
B. /usr/local/bin/runme.sh
C. /bin/bash /usr/local/bin/runme.sh
D. . /usr/local/bin/runme.sh
E. run /usr/local/bin/runme.sh
Question #: 39
Topic #: 1
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. i (lowercase)
B. p (lowercase)
C. P (uppercase)
D. U (uppercase)
E. u (lowercase)
Question #: 40
Topic #: 1
Which of the following commands changes all CR-LF line breaks in the text file userlist.txt to Linux standard LF line breaks and stores the result in newlist.txt?
A. tr -d ‘\r’ < userlist.txt > newlist.txt
B. tr -c ‘\n\r’ ” userlist.txt
C. tr ‘\r\n’ ” newlist.txt
D. tr ‘\r’ ‘\n’ userlist.txt newlist.txt
E. tr -s ‘/^M/^J/’ userlist.txt newlist.txt