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

How can we use grep command in unix?

623


How does the system know where one command ends and another begins?

1588


What is the use of tee command?

580


What do chmod, chown, chgrp commands do?

652


What is merge command in unix?

956






Describe the zip/unzip command using gzip.

622


What is used to type command?

560


What is the use of cut command in unix?

712


Why is it called grep?

573


What do chown command do?

545


Explain command to show the space allocation of files?

639


Give the command for finding the current date.

593


Write a command to display a file’s contents in various formats?

635


Differentiate cat command from more command.

593


How do I run a bash script?

590