⟩ Which tool would you use to update Debian / Slackware / RedHat / Mandrake / SuSE?
Mandrake, Redhat
Mandrake, Redhat
Which of these is the correct method for appending "foo" in /tmp/bar file? a) echo foo > /tmp/bar b) echo foo >> /tmp/bar c) echo foo | /tmp/var d) /tmp/bar < echo foo
Executing cat /etc/password > /dev/sda as superuser will a) Write data into a regular file called /dev/sda b) Write data to the physical device sda c) Create a temporary file /dev/sda and write data to it d) None of the above
Which variable contains last background job process id a) $* b) $? c) $$ d) $!
The $ variables in a shell script context designates a) The runtime of the script b) Number of command line arguments c) PID of the shell running the script d) The exit status of the shell script
Which command can be used to test various file attributes a) if b) file c) test d) type
What is the output of the following command for bash shell echo linux $0 a) linux echo b) linux linux c) linux bash d) linux
? Specifies a) one or more character b) zero or more charecter c) one character d) None of the above
Which variable will display the list of the positional parameters? a) $# b) $* c) $? d) $$
The keyword 'local' is used a) to define a variable within a function for its local scope b) to redefine any global variable c) this is not a valid keyword d) none of the mentioned
What command would send the output of cmd1 to the input of cmd2? a) cmd1 | cmd2 b) cmd1 || cmd2 c) cmd1 && cmd2 d) cmd1 ; cmd2 e) cmd1 cmd2