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 the job command do?

4 Answers  


what is the advaantage of each user having its own copy of the shell?

0 Answers   BMC, CNS, DELL, Infosys,


how to sort the content of the file based on numeric values

0 Answers   Epsilon,


Describe the usage and functionality of the command rm –r * in unix?

0 Answers  


what do you understand by 'unix is a portable os'?

3 Answers   Infosys,






why unix operating system provides more security than other operating systems?

4 Answers  


Where can I get the free download of Unix by Yeswant Kanetkar?

5 Answers  


What is updatedb?

0 Answers  


What is the use of sed command in unix?

0 Answers  


how to find largest file?

14 Answers   HCL, Microsoft, Thomson Reuters,


How do you know about running processes of a particular user?

11 Answers  


what are the different hardwares available?

1 Answers  


Categories