Unix Questions and Answers

Practice Mode
Showing 10 of 49 questions
Q11
Which of the following commands is used to display the directory attributes rather than its contents?
  • A ls -1 -d
  • B ls -1
  • C ls -x
  • D ls -F
Answer: Option A
Q12
Which of the following files will displayed by this command cat *ch*
  • A patch
  • B catch
  • C .ch
  • D All of the above
Answer: Option D
Q13
The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:
  • A 000
  • B 755
  • C 744
  • D 555
Answer: Option B
Q14
If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use
  • A tty ^c
  • B stty intr \^c
  • C stty echoe
  • D stty echo \^a
Answer: Option B
Q15
Which of the following is not a communication command.
  • A write
  • B mesg
  • C mail
  • D grep
Answer: Option D
Q16
Which of the following keys is used to move the cursor to the end of the paragraph.
  • A }
  • B {
  • C |
  • D $
Answer: Option A
Q17
Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?
  • A cat emp[!0-9]
  • B more [emp][!0-9]
  • C cat emp[x-z]
  • D cat emp[a-z]
Answer: Option A
Q18
The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is
  • A tee
  • B tr
  • C sort
  • D grep
Answer: Option A
Q19
 Which command is used to remove a file?
  • A remove
  • B rm
  • C mv
  • D del
Answer: Option B
Q20
Which symbol is used to separate more than one command in the same command line?
  • A $
  • B #
  • C :
  • D ;
Answer: Option D
Questions and Answers for Competitive Exams Various Entrance Test