Pass the LPI LPIC Level 1 101-500 Questions and answers with CertsForce

Viewing page 7 out of 9 pages
Viewing questions 61-70 out of questions
Questions # 61:

Which of the following commands will mount an already inserted CD-ROM in /dev/sr0 onto an existing directory /mnt/cdrom when issued with root privileges?

Options:

A.

mount /dev/cdrom /mnt/cdrom


B.

mount /dev/sr0 /mnt/cdrom


C.

mount –t cdrom /dev/sr0 /mnt/cdrom


D.

mount –l cdrom /dev/sr0 /mnt/cdrom


E.

mount –f /dev/sr0/mnt/cdrom


Expert Solution
Questions # 62:

Which command will uninstall a package but leave its configuration files in case the package is re-installed?

Options:

A.

dpkg –s pkgname


B.

dpkg –L pkgname


C.

dpkg –P pkgname


D.

dpkg –r pkgname


Expert Solution
Questions # 63:

While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?

Options:

A.

:r


B.

:n


C.

:w


D.

:e


Expert Solution
Questions # 64:

Which of the following are valid stream redirection operators within Bash? (Choose THREE correct answers.)

Options:

A.

<


B.

<<<


C.

>


D.

>>>


E.

%>


Expert Solution
Questions # 65:

What is the effect of the egrep command when the -v option is used?

Options:

A.

It enables color to highlight matching parts.


B.

It only outputs non-matching lines.


C.

It shows the command's version information.


D.

It changes the output order showing the last matching line first.


Expert Solution
Questions # 66:

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

Options:

A.

9


B.

19


C.

49


D.

99


Expert Solution
Questions # 67:

What is the purpose of the Bash built-in export command?

Options:

A.

It allows disks to be mounted remotely.


B.

It runs a command as a process in a subshell.


C.

It makes the command history available to subshells.


D.

It sets up environment variables for applications.


E.

It shares NFS partitions for use by other systems on the network.


Expert Solution
Questions # 68:

From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

Options:

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


Expert Solution
Questions # 69:

Which of the following commands will reduce all consecutive spaces down to a single space?

Options:

A.

tr '\s' ' ' < a.txt > b.txt


B.

tr -c ' ' < a.txt > b.txt


C.

tr -d ' ' < a.txt > b.txt


D.

tr -r ' ' '\n' < a.txt > b.txt


E.

tr -s ' ' < a.txt > b.txt


Expert Solution
Questions # 70:

Which of the following statements is correct regarding the command foo 1> bar?

Options:

A.

The stdout from the command foo is appended to the file bar.


B.

The stdout from the command foo overwrites the file bar.


C.

The command foo receives its stdin from the file bar.


D.

The command foo receives its stdin from the stdout of the command bar.


E.

The stderr from the command foo is saved to the file bar.


Expert Solution
Viewing page 7 out of 9 pages
Viewing questions 61-70 out of questions