Which symbol is used to redirect error messages to /dev/null?
1. <
2.>
3. %
4.$
Continue statment cannot be used in which loop?
1.For loop
2.until loop
3.while loop
4.case...esac
The >> symbol is used to overwrite the existing file if it exists and | is used to give input to another program.
1.True, False
2.True, True
3.False, True
4.False, False
We can redirect the error message to file named newfile using __________ command.
1.cat foo errorfile
2.cat foo >errorfile
3. cat errorfile>foo
4.cat foo 2>errorfile
What is the syntax of continue statement?
1.continue
2. continue n
3.continue this
4. All of the above
Which command saves one copy of character stream in a file and store the other to standard output?
1.who
2. tee
3. ls
4.wc
Which of the following is not true about tee command?
1. it is a feature of the shell
2. it is an external command
3. tee command duplicates its input
4.tee is an internal command
Which of the following statement causes the current iteration of the loop to exit, rather than the entire loop?
1.Continue
2.break
3.return
4. goto
Which of the following symbol(s) can be used to redirect the output to a file or another program?
1. |
2. >
3.>>
4. All of the above
Which symbol is used for taking input from standard input?
1. &
2.%
3. -
4.$