51. Which of the following commands can be used to get information about yourself ? A. who am i B. i /4 C. pwd D. which ✅ The correct answer is option A.
52. Which of the following command can be used to rename a file in UNIX ? A. ren B. mv C. remove D. change ✅ The correct answer is option B.
53. Which of the following commands can be used to get information about all users who are currently logged into the system ? A. which B. who C. who am i D. 1 /u ✅ The correct answer is option B.
54. Which of the following is not a filter command ? A. sort B. wc C. grep D. cat ✅ The correct answer is option D.
55. The command to count the number of files in the current directory by using pipes, is_______________? A. ls | wc B. ls -l | wc -l C. ls | wc -w D. ls | ws -c ✅ The correct answer is option C.
56. Which of the following special shell variables is used to process number of the current shell ? A. $! B. $$ C. 0 D. $* ✅ The correct answer is option B.
57. Which symbol will be used with grep command to match the pattern pat at the end of a line ? A. ^pat B. $pat C. pat$ D. pat^ ✅ The correct answer is option C.
58. What command is used to assign executable permission to all of the files named “report” ? A. chmod ugo + x report B. chmod u + x report C. chmod ugo + rw report D. chmod ugo + r report ✅ The correct answer is option A.
59. Which command is used with file named ‘note’ to remove the executable permission from the user and assign read permission to the group and others? A. chmod u-x, go+r note B. chmod go+r, u+x note C. chmod g-x, uo+r note D. chmod go+x, u-x note ✅ The correct answer is option A.
60. Which of the following is a valid format for mounting a CD-ROM drive ? A. mount -t iso9660 /dev/cdrom / mnt/cdrom B. mount /dev/cdrom C. mount /mnt/cdrom D. All of the above ✅ The correct answer is option D.