Unix Questions and Answers

Practice Mode
Showing 10 of 49 questions
Q31
Which option is used with rm command to make the command prompt the user with each filename and a ?, before acting on it
  • A -r
  • B -x
  • C -i
  • D -1
Answer: Option C
Q32
Which of the following directories contain all the Ales created by a user, including his login directory?
  • A /tmp
  • B /etc
  • C /usr
  • D /dev
Answer: Option C
Q33
Which of the following commands is used to obtain a list of all files by modification time?
  • A ls -1
  • B ls -t
  • C ls -i
  • D ls -R
Answer: Option B
Q34
The % key allows you
  • A to move the cursor to a matching delimiter, when a delimiters a parenthesis, a bracket, or a brace.
  • B to move the cursor to the upperleft corner of the screen
  • C to move the cursor backward to the beginning of a word
  • D to move the cursor to the first column in the current line
Answer: Option A
Q35
Which command is used to display the characteristics of a process?
  • A pid
  • B du
  • C ps
  • D au
Answer: Option C
Q36
Which of the following commands is used to identify the type of file by context?
  • A ls
  • B cat
  • C file
  • D more
Answer: Option C
Q37
 The filed separator in cut command is specified with
  • A -a option
  • B -d option
  • C -r option
  • D -x option
Answer: Option B
Q38
Which of the following options will be used to display number of blocks used by a file?
  • A -c
  • B -i
  • C -d
  • D -s
Answer: Option D
Q39
Which option will be used with touch command to change the access time?
  • A -a
  • B -b
  • C -t
  • D -h
Answer: Option A
Q40
Which command is used to make all files and sub-directories in the directory (progs) executable by all users?
  • A chmod -R a+x progs
  • B chmod -R 222 progs
  • C chmod -1 a+x progs
  • D chmod -x a+x progs
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test