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

What is the difference between cat command and more command?

678


Which command will print your home directory on screen?

667


What does this command do? Cat food 1 > kitty

1069


Who command in unix?

682


How to find $ai_serual resolved path by using unix

1140






What is {} in find command?

663


What is the use of the command 'ls -x chapter[1-5]' ?

770


What are grep patterns?

676


hw will u use awk in replacing cahrs and files

2815


Which unix command lists files/folders in alphabetical order?

692


What is ‘ps’ command for?

723


Name the unix command to find how many days the server has been up.

701


What is the command to find maximum memory taking process on the server?

771


What is command statement?

658


What difference between cmp and diff commands?

821