Question
a.
cat foo errorfile
b.
cat foo >errorfile
c.
cat errorfile>foo
d.
cat foo 2>errorfile
Posted under UNIX
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. We can redirect the error message to file named newfile using __________ command.
Similar Questions
Discover Related MCQs
Q. The category of commands which uses both standard input and standard output are called ____
View solution
Q. The contents of file001 are:
232
25*50
What will be the contents of result.txt?
bc < file001 > result.txt
View solution
Q. Which of the following files are known as special files in UNIX?
View solution
Q. The size of /dev/null is always zero.
View solution
Q. Which symbol is used to redirect error messages to /dev/null?
View solution
Q. Which file is used for indicating terminals?
View solution
Q. Which symbol is used to connect different streams?
View solution
Q. Shell enables one or more arguments to be obtained from the standard output of another command. This feature is called _________
View solution
Q. What will the result when we evaluate this statement?
$ directory=’pwd’=`pwd`
View solution
Q. Which of the following is not a system defined variable?
View solution
Q. Which of the following is an invalid variable?
View solution
Q. Command substitution requires the command to use ________
View solution
Q. The command is valid.
$ ls -lRa $HOME > home.ls
View solution
Q. The UNIX shell is both _______ and _______ language.
View solution
Q. Which of the following function(s) are performed by an interactive shell?
View solution
Q. Every feature used in an interactive shell can also be used by a shell script.
View solution
Q. Which one of the following is arguably the best shell to use?
View solution
Q. Which one of the following command is used to create a child shell?
View solution
Q. Shell variables are of ____ types.
View solution
Q. Suppose ABD_DIR is a local variable. Then it will be accessible to the child process.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!