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 does 'mkdir' command do in UNIX?

0 Answers   Syntel, Visa,


Will rm -r* removes hidden files?

10 Answers  


Are you in or at the office?

0 Answers  


What is clustering in HP and how it's work?

1 Answers   HP,


distinguish between multi-tasking,multi-user,multi- processing and time sharing?

4 Answers   Infosys, Nikhil Construction,






what is the use of the hidden files?

3 Answers  


what are processor execution levels and priorities?

2 Answers   Infosys,


what does the 'tee' command do?

4 Answers  


What is the use of cut command in unix?

0 Answers  


What is .sh file?

0 Answers  


How to find and replace the below command?

2 Answers   HCL,


If JFS file system is 100% full how we can increase the file system ?

3 Answers  


Categories