How to redirect standard error to a file?

Answer Posted / kirus

cat 2 > filemane

if the filename is error.txt

cat 2 > error.txt
the statndard error is redirrected to error.txt file

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain mount and unmount command.

617


What is grep and how do you use it?

579


How do I use nslookup?

577


How do you grep recursively?

557


What is the function of grep command in unix?

593






What are awk commands?

586


How does the system know where one command ends and another begins?

1579


What is .sh file?

624


What is the first character of the output in ls l command?

637


What is merge command in unix?

946


What are file commands?

656


Write a command that will display files in the current directory, in a colored, long format.

687


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

962


What is the difference between cat command and more command?

599


What is $0 bash?

651