Weekend Sale - Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sntaclus

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 files, located in the user home directory, is used to store the Bash history?

A.

.bash_history

B.

.bash_histfile

C.

.history

D.

.bashrc_history

E.

.history_bash

In Bash, inserting 2>&1 after a command redirects:

A.

standard error to standard input.

B.

standard input to standard error.

C.

standard output to standard error.

D.

standard error to standard output.

E.

standard outputto standard input.

When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?

A.

–rep-space

B.

–print0

C.

–nospace

D.

–ignore-space

Which of the following commands changes all occurrences of the word “bob” in file data to “Bob” and prints the result to standard output?

A.

sed‘/bob/Bob’ data

B.

sed‘s/bob/Bob/g’ data

C.

sed‘s/bob/Bob/’ data

D.

sed‘/bob/Bob/’ data

E.

sed‘s/bob,Bob/’ data

Which of the following commands is used to change metadata and options for ext3 filesystems?

A.

mod3fs

B.

tune3fs

C.

mod2fs

D.

tune2fs

E.

dump2fs

Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?

A.

ext2

B.

ext3

C.

ext4

D.

XFS

E.

VFAT

After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?

A.

foo and bar would both be removed.

B.

foo would be removed while bar would remain accessible.

C.

foo would be removed. bar would still exist but would be unusable.

D.

Both foo and bar would remain accessible.

E.

The user is prompted whether bar should be removed, too.

Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?

A.

tr ‘\r\n’ ‘’ < userlist.txt > newlist.txt

B.

tr –c ‘\n\r’ ‘’ < newlist.txt > userlist.txt

C.

tr –d ‘\r’ < userlist.txt > newlist.txt

D.

tr ‘\r’ ‘\n’ userlist.txt newlist.txt

E.

tr –s ‘^M’ ‘^J’ userlist.txt newlist.txt

What is the purpose of the xargs command?

A.

It passes arguments to an X server.

B.

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

C.

It helps shellscripts 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.