Unix/Linux Shell and Windows Operating Systems Commands

Covers Unix/Linux shell commands, scripting, process management, Windows shortcuts, and system utilities

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Windows Firewall

  1. firewall.cpl
  2. winfirewall.cpl
  3. winfwall
  4. firewall
Question 2 Multiple Choice (Single Answer)

WindowsFirewall

  1. firewall
  2. firewall.cpl
  3. winfirewall.cpl
  4. winfwall
Question 3 Multiple Choice (Single Answer)

Command to display all running process

  1. ps -aux
  2. ps -u
  3. ps -e
  4. ps
Question 4 Multiple Choice (Single Answer)

How do you open My Computer?

  1. Windows Logo + E
  2. Windows Logo + D
  3. Windows Logo + Z
  4. None
Question 5 Multiple Choice (Single Answer)

How do you display the desktop?

  1. Windows Logo + E
  2. Windows Logo + D
  3. Windows Logo + M
  4. None
Question 6 Multiple Choice (Single Answer)

How can you display the start menu?

  1. Ctrl + S
  2. Windows Logo + D
  3. Windows Logo
  4. None
Question 7 Multiple Choice (Single Answer)

What is the shortcut to redo the last command?

  1. Ctrl + R
  2. Ctrl + Y
  3. Ctrl + Z
  4. None
Question 8 Multiple Choice (Single Answer)

What is the shortcut to rename a file?

  1. F8
  2. Ctrl + W
  3. F2
  4. None
Question 9 Multiple Choice (Single Answer)

What is the shortcut to search for a file or folder?

  1. Ctrl + S
  2. F3
  3. Shift + F8
  4. None
Question 10 Multiple Choice (Single Answer)

What is the shortcut to expand the current selection?

  1. Ctrl + E
  2. right arrow
  3. left arrow
  4. None
Question 11 Multiple Choice (Single Answer)

What is the shortcut to activate the menu bar in a program?

  1. F1
  2. F10
  3. F3
  4. None
Question 12 Multiple Choice (Single Answer)

Disk partition manager

  1. diskpartition
  2. diskpart
  3. diskpartition.msc
  4. diskpartition.cpl
Question 13 Multiple Choice (Single Answer)

How could you check if two strings are equal?

  1. test $a -eq $b
  2. test $a -equal $b
  3. test $a = $b
  4. sh -c test $a == $b
Question 14 Multiple Choice (Single Answer)

Which of the following would return the process ID of the sleep command?

  1. test sleep 1
  2. sleep 1 && echo $0
  3. sleep 1 & echo $!
  4. sleep 1 & echo $$
Question 15 Multiple Choice (Single Answer)

Which of the following will always output "maple"?

  1. tree=maple; export tree; sh -c "echo $tree"
  2. tree=maple; export $tree; sh -c "echo $tree"
  3. $tree=maple; echo $tree
  4. export tree = maple; echo $tree
Question 16 Multiple Choice (Single Answer)

What will be the output of "echo this || echo that && echo other"?

  1. this
  2. that
  3. this other
  4. other
Question 17 True/False

To change access modes on files you can use the chmod command ?

  1. True
  2. False
Question 18 Multiple Choice (Single Answer)

What is the difference between for i in "$@" and for i in "$*" ?

  1. "$@" takes the entire list and seperates it into special arguments whereas "$*" takes the entire list as one argument with spaces between them
  2. "$*" takes the entire list and seperates it into special arguments whereas "$@" takes the entire list as one argument with spaces between them
  3. Both statements will behave in the same way
  4. None of the above
Question 19 Multiple Choice (Single Answer)

while getopts a:bc arg ; docase $arg ina ) echo "$OPTIND" ;;b ) echo "$OPTIND" ;;c ) echo "$OPTIND";;esacdoneWhat does the colon(':') after 'a' in the first line signify ?"

  1. The getopts command ensures that a parameter is passed for -b option
  2. It signifies that u have to either specify -a option or you have to specify both -b and -c options
  3. The ":" has no effect in the command
  4. The getopts command ensures that a parameter is passed for -a option
Question 20 Multiple Choice (Multiple Answers)

How will you search for the character '' in a file ?

  1. grep '\' filename
  2. grep \\ filename
  3. grep '\\' filename
  4. grep "\" filename