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

Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?

A.

ls 3> data

B.

ls >& data

C.

ls > data

D.

ls >> data

Which chown command will change the ownership to dave and the group to staff on a file named data.txt?

A.

chown dave/staff data.txt

B.

chown –u dave –g staff data.txt

C.

chown --user dave --group staff data.txt

D.

chown dave:staff data.txt

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

A.

1(SIGHUP)

B.

2(SIGINT)

C.

3(SIGQUIT)

D.

9(SIGKILL)

E.

15(SIGTERM)

What command changes the nice level of a running process? (Specify ONLY the command without any path or parameters)

Which of the following file permissions belong to a symbolic link?

A.

-rwxrwxrwx

B.

+rwxrwxrwx

C.

lrwxrwxrwx

D.

srwxrwxrwx

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

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 utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?

A.

mod2fs

B.

fsck

C.

tune2fs

D.

mke2fs

E.

fixe2fs

Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

A.

apropos

B.

which

C.

find

D.

query

E.

whereis

In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)

A.

cat /proc/self/mounts

B.

free

C.

mount

D.

lsmounts

E.

cat /proc/filesystems