Linux - Study Mode

[#696] The command "sed -n '/example/p' old.txt" will
Correct Answer

(A) print the lines containing the word 'example' in file old.txt

[#697] What is the output of this program? #!/bin/bash
var1=10
$var1=20
echo $var1
exit 0
Correct Answer

(D) program will print 10 & 20

[#698] Command used to check shared memory is
Correct Answer

(B) ipcs -m

[#699] If the umask value is 0002. what will be the permissions of new directory
Correct Answer

(B) 775

[#700] Which of the following values for STAT column of ps command is not true:
Correct Answer

(C) Status E means exited