Tag: operating systems

Questions Related to operating systems

  1. CTRL+SHIFT+$

  2. CTRL+SHIFT+#

  3. CTRL+SHIFT+%

  4. CTRL+SHIFT+@


Correct Option: C
  1. CTRL+SHIFT+@

  2. CTRL+SHIFT+!

  3. CTRL+SHIFT+$

  4. CTRL+SHIFT+#


Correct Option: D
  1. CTRL+SHIFT+%

  2. CTRL+SHIFT+@

  3. CTRL+SHIFT+!

  4. CTRL+SHIFT+$


Correct Option: A

I have a script named test.sh and the contents are as follows: $ cat test.sh echo hi rm -f test.sh echo hi ######## What will be the output of the following comand: $ sh test.sh

  1. the first 'hi' will be displayed but it will say "Could not delete file: in use" and will exit the script

  2. the first 'hi' will be displayed but it will say "Could not delete file: in use" and will then echo the second 'hi'

  3. The script will display 2 'hi' and the file will also be deleted

  4. The first 'hi' will be displayed, the script will be deleted , but the 2nd 'hi' will not be displayed.


Correct Option: C

I have a file named "-p" in my home directory. Which of the following commands will be used to delete this file?

  1. rm -p

  2. rm -f -p

  3. rm -f -- -p

  4. rm -f "-p"


Correct Option: C

A script is executing since last 10 minutes and is expected to take another 10 minutes. So I decide to send it to background. Which of the following steps will do it?

  1. Press Ctrl-Z and type "bg"

  2. Press Ctrl-D and type "bg"

  3. Open a new termial and type "bg " where is the pid of that script

  4. None of these


Correct Option: A

What is the output of the following command in bash shell on Linux? $ i=2 $ [ $i -lt 2 ] || echo great

  1. great

  2. no output

  3. test: syntax error

  4. we will have to export the value of i


Correct Option: A