⟩ Which Linux distros do you have experience with?
Linux is the open source product so if u knows linux command
line interface so that we can use not only single distros
all most i have linux all distros experience.
Linux is the open source product so if u knows linux command
line interface so that we can use not only single distros
all most i have linux all distros experience.
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
What is the output of this program? #!/bin/sh var="google" san_function() { var="Linux" echo $var } san_function exit 0 a) google b) Linux c) command not found d) none of the mentioned
What is the output of this program? #!/bin/bash function san_function1 { echo "This is first function" } san_function2() { echo "This is second function" } san_function1 san_function2 exit 0 a) This is the first function b) This is the second function c) This is the first function This is the second function d) program will generate error because first function definition is not correct
What is the output of this program? #!/bin/sh san_function1() { a=5 echo "This is the first function" san_function2 } san_function2() { echo "This is the second function" san_function3 } san_function3() { echo "This is the third function" } san_function1 exit 0 a) This is the first function This is the second function This is the third function b) This is the first function This is the third function This is the second function c) This is the second function This is the first function This is the third function d) This is the third function This is the first function This is the second function