Tag: operating systems
Questions Related to operating systems
-
test $a -eq $b
-
test $a -equal $b
-
test $a = $b
-
sh -c test $a == $b
-
test sleep 1
-
sleep 1 && echo $0
-
sleep 1 & echo $!
-
sleep 1 & echo $$
-
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
-
this
-
that
-
this other
-
other
-
"$@" 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
-
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
-
grep '\' filename
-
grep \\ filename
-
grep '\\' filename
-
grep "\\" filename
-
SHIFT+F11
-
SHIFT+F10
-
SHIFT+F1
-
ALT+F10