0

http://www.serverwatch.com

It took me ages to learn bash redirection properly, and I still have to concentrate sometimes to keep my &s and my >s straight. Here's the lowdown in case you, too, have intermittent brain failure on this one.

Full story »
born.again.linuxer's picture
Created by born.again.linuxer 14 years 5 weeks ago
Category: High End   Tags:
seppo11's picture

seppo11

14 years 4 weeks 6 days 20 hours ago

0

Beware!

The artical spreads misinformation!

command 2>&1 > output.txt

does NOT redirect both stdin and stderr to output.txt. You have to use

command > output.txt 2>&1

to achieve this.

Best karma users