• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

UNIX

Question 11

Which UNIX/Linux command is used to make all files and sub-directories in the directory “progs” executable by all users ?
  • chmod− R a+x progs
  • chmod −R 222 progs
  • chmod−X a+x progs
  • chmod −X 222 progs

Question 12

Which statement is not correct about “init” process in Unix?
  • It is generally the parent of the login shell.
  • It has PID 1.
  • It is the first process in the system.
  • Init forks and execs a ‘getty’ process at every port connected to a terminal.

Question 13

What does the following command do? grep -vn “abc” x
  • It will print all of the lines in the file x that match the search string “abc”.
  • It will print all of the lines in file x that do not match the search string “abc”.
  • It will print the total number of lines in the file x that match the string “abc”.
  • It will print the specific line numbers of the file x in which there is a match for string “abc”.

Question 14

The Unix Kernel maintains two key data structures related to processes, the process table and the user structure. Which of the following information is not the part of user structure ?
  • File descriptor table
  • System call state
  • Scheduling parameters
  • Kernel stack

Question 15

A unix file may be of the type:
  • Regular file
  • Directory file
  • Device file
  • Any one of the above

Question 16

Which of the following UNIX command allows scheduling a program to be executed at the specifies time?
  • cron
  • nice
  • date and time
  • schedule

Question 17

Which of the following commands or sequences of commands will rename a file x to file y in a Unix system? I. mv y, x II. mv x, y III. cp y, x (rm x) IV. cp x, y (rm x)
  • II and III
  • II and IV
  • l and III
  • II only

Question 18

The shell command
find -name passwd -print
is executed in /etc directory of a computer system running Unix. Which of the following shell commands will give the same information as the above command when executed in the same directory?  
  • ls passwd
  • cat passwd
  • grep name passwd
  • grep print passwd

Question 19

Consider the following statements : 

(a) UNIX provides three types of permissions 
* Read 
* Write 
* Execute 

(b) UNIX provides three sets of permissions 
* permission for owner 
* permission for group 
* permission for others 

Which of the above statement/s is/are true?

  • only (a)

  • only (b)

  • Both (a) and (b)

  • Neither (a) nor (b)

Question 20

The linux command “mknod myfifo b 4 16”
  • Will create a character device if the user is root
  • Will create a named pipe FIFO if the user is root
  • Will create a block device if the user is root
  • None of the above

There are 32 questions to complete.

Last Updated :
Take a part in the ongoing discussion