Tag: operating systems

Questions Related to operating systems

What write permission for a directory means?

  1. You only can list the contents of that directory.

  2. You can change to that directory.(Making that directory as present working directory)

  3. You can create new content inside that directory.

  4. Write permission for a directory wont effect anything.


Correct Option: C
  1. Files have default permission as rw-rw-r--.and for directory it is as rwxrwxr-x

  2. Files have default permission as r--r--r--.and for directory it is as r-xr-xr-x

  3. Files have default permission as rw-rw-rw-.and for directory it is as rw-rw-rw-

  4. None of the above.


Correct Option: A
  1. Request kernel to kill a process

  2. Ask user to terminate the process or not.

  3. There os no such command exist.

  4. Order kernel to kill a process.


Correct Option: D

Read following two commands: cat | sort sort < cat What is the diffrence between both the commands?

  1. First command will display the file in sorted order.But second result an error.

  2. Second command will display the file in sorted order.But first result an error.

  3. Both give the same result, Display the file in a sorted order.

  4. Both command will work but only first result in a sorted file.


Correct Option: C
  1. date command gives current date and time and time , time command wont exist in Linux.

  2. date command gives current date and time , time command wont give current time.

  3. date command gives current date , time command gives current time.

  4. date command gives current date and time , time command gives current time.


Correct Option: B