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 find command return in unix?

0 Answers  


Are you in or at the office?

0 Answers  


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

0 Answers  


What is sed awk grep?

0 Answers  


how to unzip the contents of the gzip file

1 Answers   Epsilon,






Can you enlist some commonly used network commands?

0 Answers  


A file has 1000 lines and i want to display only 1st line how to do it? pls ..tel me

7 Answers   CTS,


What is the functions of zambie process?

3 Answers  


How i'll delete a particular line from the file? Please give answer as soon as possible. Thanks in advance.

12 Answers   IBM,


Which command will you use to change the permissions on file?

7 Answers  


use of ls command

9 Answers  


which script will invoke first ,when /etc/init.d starts

1 Answers  


Categories