Unix/Linux Shell and Windows Operating Systems Commands
Covers Unix/Linux shell commands, scripting, process management, Windows shortcuts, and system utilities
Questions
Windows Firewall
- firewall.cpl
- winfirewall.cpl
- winfwall
- firewall
WindowsFirewall
- firewall
- firewall.cpl
- winfirewall.cpl
- winfwall
Command to display all running process
- ps -aux
- ps -u
- ps -e
- ps
How do you open My Computer?
- Windows Logo + E
- Windows Logo + D
- Windows Logo + Z
- None
How do you display the desktop?
- Windows Logo + E
- Windows Logo + D
- Windows Logo + M
- None
How can you display the start menu?
- Ctrl + S
- Windows Logo + D
- Windows Logo
- None
What is the shortcut to redo the last command?
- Ctrl + R
- Ctrl + Y
- Ctrl + Z
- None
What is the shortcut to rename a file?
- F8
- Ctrl + W
- F2
- None
What is the shortcut to search for a file or folder?
- Ctrl + S
- F3
- Shift + F8
- None
What is the shortcut to expand the current selection?
- Ctrl + E
- right arrow
- left arrow
- None
What is the shortcut to activate the menu bar in a program?
- F1
- F10
- F3
- None
Disk partition manager
- diskpartition
- diskpart
- diskpartition.msc
- diskpartition.cpl
How could you check if two strings are equal?
- test $a -eq $b
- test $a -equal $b
- test $a = $b
- sh -c test $a == $b
Which of the following would return the process ID of the sleep command?
- test sleep 1
- sleep 1 && echo $0
- sleep 1 & echo $!
- sleep 1 & echo $$
Which of the following will always output "maple"?
- tree=maple; export tree; sh -c "echo $tree"
- tree=maple; export $tree; sh -c "echo $tree"
- $tree=maple; echo $tree
- export tree = maple; echo $tree
What will be the output of "echo this || echo that && echo other"?
- this
- that
- this other
- other
To change access modes on files you can use the chmod command ?
- True
- False
What is the difference between for i in "$@" and for i in "$*" ?
- "$@" takes the entire list and seperates it into special arguments whereas "$*" takes the entire list as one argument with spaces between them
- "$*" takes the entire list and seperates it into special arguments whereas "$@" takes the entire list as one argument with spaces between them
- Both statements will behave in the same way
- None of the above
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 ?"
- The getopts command ensures that a parameter is passed for -b option
- It signifies that u have to either specify -a option or you have to specify both -b and -c options
- The ":" has no effect in the command
- The getopts command ensures that a parameter is passed for -a option
How will you search for the character '' in a file ?
- grep '\' filename
- grep \\ filename
- grep '\\' filename
- grep "\" filename