How to redirect standard error to a file?

Answers were Sorted based on User's Feedback



How to redirect standard error to a file?..

Answer / linuxdemon

2> filename

eg: dat 2> errfilename

Is This Answer Correct ?    12 Yes 1 No

How to redirect standard error to a file?..

Answer / 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

More Unix Commands Interview Questions

what is tar command and what are the different types of tar commands?

5 Answers  


Name the general commands in using unix os for a beginner?

0 Answers  


distinguish between interrupts and exceptions?

2 Answers   Infosys,


why metadb requires a seperate slice to create Solaris volume manager

0 Answers   Wipro,


fork in unix ?

4 Answers   BFL,






What is an Environment Variable?

4 Answers   CTS,


What does the command ' $who | sort –logfile > newfile' do?

0 Answers  


How does a user get the current date, time in UNIX?

6 Answers   IBM,


If we want to see first 35 lines of a file which command we have to use?

8 Answers  


How do you find out all processes that are currently running in UNIX OS?

10 Answers  


How do you list the files in an UNIX directory while also showing hidden files?

6 Answers  


What is shrinking file system in AIX where it actually resides?

0 Answers  


Categories