Question: What does the following command do? find / -name test -print >& msg a. send only the error messages such as permission denied to the
What does the following command do?
find / -name test -print >& msg
a. send only the error messages such as "permission denied" to the file msg
b. send the locations of file test and all the error messages such as "permission denied" to the file msg
c send only the locations of file test to the file msg
d nothing
The command to list all the files that have filenames that starts with letter a and ends with a number from 1 to 5 is
a. echo a?1-5
b.echo a[1-5]*
c.echo a*[1-5]
d. echo *a*[1,5]*
e. echo ?a?1?5
Which of the following redirection operators take input of command cmd from file?
a.cmd | file
b.cmd > file
c.cmd >> file
d. cmd < file
The command to display the string "? is >> * \" is
a.echo ? is >> * \
b.echo \? is \>> \* \\
c.echo \? is \>> \* \\
d.echo ?? is >>>> ** \\
Which of the following shell redirection operators run command cmd1 and sends output to command cmd2?
a.cmd1 | cmd2
b.cmd2 > cmd1
c. cmd2 >>cmd1
d.cmd2 < cmd1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
