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

Viewing page 4 out of 8 pages
Viewing questions 31-40 out of questions
Questions # 31:

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

Options:

A.

esc ZZ


B.

ctrl :w!


C.

esc zz


D.

esc :wq!


E.

ctrl XX


Expert Solution
Questions # 32:

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

Options:

A.

cat < myapp | cat > file1.log


B.

myapp 0>&1 | cat > file1.log


C.

myapp | cat > file1.log


D.

myapp | tee file1.log


E.

tee myapp file1.log


Expert Solution
Questions # 33:

What is the output of the following command?

echo "Hello World" | tr -d aieou

Options:

A.

Hello World


B.

eoo


C.

Hll Wrld


D.

eoo Hll Wrld


Expert Solution
Questions # 34:

What is the default nice level when a process is started using the nice command?

Options:

A.

-10


B.

10


C.

20


D.

0


Expert Solution
Questions # 35:

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

Options:

A.

rmdir '~/\dir'


B.

rmdir "~/\dir"


C.

rmdir ~/'dir'


D.

rmdir ~/\dir


E.

rmdir ~/\\dir


Expert Solution
Questions # 36:

: 6

The /etc/_______ file lists currently mounted devices.


Expert Solution
Questions # 37:

Which of the following commands will print the last 10 lines of a text file to the standard output?

Options:

A.

cat -n 10 filename


B.

dump -n 10 filename


C.

head -n 10 filename


D.

tail -n 10 filename


Expert Solution
Questions # 38:

What happens after issuing the command vi without any additional parameters?

Options:

A.

vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited.


B.

vi starts and requires the user to explicitly either create a new or load an existing file.


C.

vi exits with an error message as it cannot be invoked without a file name to operate on.


D.

vi starts in command mode and opens a new empty file.


E.

vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.


Expert Solution
Questions # 39:

What does the? symbol within regular expressions represent?

Options:

A.

Match the preceding qualifier one or more times.


B.

Match the preceding qualifier zero or more times.


C.

Match the preceding qualifier zero or one times.


D.

Match a literal? character.


Expert Solution
Questions # 40:

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
Viewing page 4 out of 8 pages
Viewing questions 31-40 out of questions