Tag: operating systems

Questions Related to operating systems

  1. CTRL+SHIFT+$

  2. CTRL+SHIFT+#

  3. CTRL+SHIFT+%

  4. CTRL+SHIFT+@


Correct Option: C

Apply the Date format with the day, month, and year

  1. CTRL+SHIFT+@

  2. CTRL+SHIFT+!

  3. CTRL+SHIFT+$

  4. CTRL+SHIFT+#


Correct Option: D

Apply the Time format with the hour and minute, and AM or PM

  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
  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