Tag Archive


How To Output “the Command’s Output” To A Text File In Unix?

hi, i am working on solaris
trying to execute this command.
du -k /lpg
the command works ok but i want the output not to be displayed on screen but instead to be written in a text file.
i tried this but it didnt work.
du -k /lpg > /izmir1/output.txt
Somebody has an idea?

How To Output “the Command’s Output” To A Text File In Unix?

hi, i am working on solaris
trying to execute this command.
du -k /lpg
the command works ok but i want the output not to be displayed on screen but instead to be written in a text file.
i tried this but it didnt work.
du -k /lpg > /izmir1/output.txt
Somebody has an idea?

Improve the web with Nofollow Reciprocity.