Q. The second set of the three permissions (r-) indicates that

  • (A) owner has read permission only
  • (B) group has write permission only
  • (C) other has read permission only
  • (D) group has read permission only
πŸ’¬ Discuss
βœ… Correct Answer: (D) group has read permission only

Q. The command “mknodmyfifo b 4 16”

  • (A) Will create a block device if user is root
  • (B) Will create a block device for all users
  • (C) Will create a FIFO if user is not root
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) Will create a block device if user is root

Q. Which command is used to record a user login session in a file ?

  • (A) read
  • (B) script
  • (C) macro
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) script

Q. Which command is used to display the operating system name ?

  • (A) uname
  • (B) kernel
  • (C) Unix
  • (D) os
πŸ’¬ Discuss
βœ… Correct Answer: (A) uname

Q. Which command is used to display the unix version ?

  • (A) kernel
  • (B) uname -t
  • (C) uname -n
  • (D) uname -r
πŸ’¬ Discuss
βœ… Correct Answer: (D) uname -r

Q. Which command is used to print a file ?

  • (A) print
  • (B) ptr
  • (C) lpr
  • (D) none of the above
πŸ’¬ Discuss
βœ… Correct Answer: (C) lpr

Q. Which option of ls command used to view file inode number ?

  • (A) –i
  • (B) –a
  • (C) -o
  • (D) –l
πŸ’¬ Discuss
βœ… Correct Answer: (A) –i

Q. The commonly used UNIX commands like date, Is, cat, etc. are stored in

  • (A) /tmp directory
  • (B) /unixdirecotry
  • (C) /bin and /usr/bin directories
  • (D) /dev directory
πŸ’¬ Discuss
βœ… Correct Answer: (C) /bin and /usr/bin directories

Q. Which command is used to concatenate all files beginning with the string ‘emp’ and followed by non-numeric characters?

  • (A) catemp[a-z]
  • (B) cateemp[x-z]
  • (C) more [emp][!0-9]
  • (D) catemp{!0-9]
πŸ’¬ Discuss
βœ… Correct Answer: (D) catemp{!0-9]

Q. Which command will be used to match the pattern agarwal, Aggarwal, Agggarwal and agrawal in the file named empl.1st?

  • (A) grep “[aA]99*[ar][ra]wal” empl.1st
  • (B) grepag[ra][ar]wal empl.1st
  • (C) cutagrawal empl.1st
  • (D) grepag* empl.1st
πŸ’¬ Discuss
βœ… Correct Answer: (A) grep “[aA]99*[ar][ra]wal” empl.1st