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

Viewing page 5 out of 8 pages
Viewing questions 41-50 out of questions
Questions # 41:

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
Questions # 42:

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)

Options:

A.

uptime


B.

up


C.

top


D.

uname -u


E.

time –up


Expert Solution
Questions # 43:

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 # 44:

Which of the following commands can be used to create a USB storage media from a disk image?

Options:

A.

gdisk


B.

dd


C.

cc


D.

fdisk


E.

mount


Expert Solution
Questions # 45:

In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

Options:

A.

-dirmax


B.

-maxdepth


C.

-maxlevels


D.

-n


E.

-s


Expert Solution
Questions # 46:

In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)? Specify the correct vi command without spaces.


Expert Solution
Questions # 47:

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

Options:

A.

The command is SetUID and it will be executed with the effective rights of the owner.


B.

The command will be executed with the effective rights of the group instead of the owner.


C.

The execute flag is not set for the owner. Therefore, the SetUID flag is ignored.


D.

The command will be executed with the effective rights of the owner and group.


Expert Solution
Questions # 48:

What is the purpose of the xargs command?

Options:

A.

It passes arguments to an X server.


B.

It reads standard input (STDIN) and builds up command lines to execute.


C.

It helps shell scripts take variable argument lists.


D.

It asks a question, graphically, and returns the answer to the shell.


E.

It allows users to specify long options for commands that normally only accept short options.


Expert Solution
Questions # 49:

Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of the following signal codes?

Options:

A.

1(SIGHUP)


B.

2(SIGINT)


C.

3(SIGQUIT)


D.

9(SIGKILL)


E.

15(SIGTERM)


Expert Solution
Questions # 50:

The system configuration file named _______ is commonly used to set the default runlevel. (Please provide the file name with full path information)


Expert Solution
Viewing page 5 out of 8 pages
Viewing questions 41-50 out of questions