Monday, November 12, 2012

How Redirect Console / Terminal output to File and Console Both in Linux


1 . >> operator [redirect all output to file]

    #./a.out >> op.txt

2. | tee [redirect all output to file & Console both]

    #./a.out | tee op.txt

No comments:

Post a Comment