Linux - Study Mode

[#331] What does the following command do? who | wc –l
Correct Answer

(A) List the number of users logged in

[#332] Which one of the following is a read-write semaphore in linux that protects all ksets and kobjects included in the filesystem?
Correct Answer

(A) rwsem

[#333] The command "awk '{if ("9">"10") print "demo" else print "linux"}'"
Correct Answer

(C) will generate syntax error

[#334] Which statement instructs gawk to stop processing the current data file?
Correct Answer

(B) nextfile

[#335] sed is a command typically used for
Correct Answer

(C) Modify/print selective contents of a file