Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

LPI 101-400 - LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2

Page: 1 / 6
Total 177 questions

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

A.

fmt -f 1,4 /etc/passwd

B.

split -c 1,4 /etc/passwd

C.

cut -d : -f 1,4 /etc/passwd

D.

paste -f 1,4 /etc/passwd

Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

A.

sed '/bob/Bob' letter > newletter

B.

sed s/bob/Bob/ letter < newletter

C.

sed's/bob/Bob' letter > newletter

D.

sed 's/bob/Bob/g' letter > newletter

E.

sed 's/bob, Bob/' letter > newletter

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

A.

<

B.

<<<

C.

>

D.

>>>

E.

%>

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

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.

Which of the following command sets the Bash variable named TEST with the content FOO?

A.

set TEST="FOO"

B.

TEST = "FOO"

C.

var TEST="FOO"

D.

TEST="FOO"

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 -KILL 123

C.

kill -STOP 123

D.

kill -TERM 123

Which of the following commands is used to change options and positional parameters for a running Bash?

A.

history

B.

set

C.

bashconf

D.

setsh

E.

envsetup

What is the default action of the split command on an input file?

A.

It will break the file into new files of 1,024 byte pieces each.

B.

It will break the file into new files of 1,000 line pieces each.

C.

It will break the file into new files of 1,024 kilobyte pieces each.

D.

It will break the file into new files that are no morethan 5% of the size of the original file.

Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)

A.

find /tmp -uid root -print

B.

find -path /tmp -uid root

C.

find /tmp -user root -print

D.

find /tmp -user root

E.

find -path /tmp -user root –print

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

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.