[PLUG] tar usage question

wes plug at the-wes.com
Mon Nov 2 01:28:36 UTC 2009


On Sun, Nov 1, 2009 at 4:37 PM, Rich Shepard <rshepard at appl-ecosys.com>wrote:

> On Sun, 1 Nov 2009, Joe Pruett wrote:
>
> > tar cvzf /media/disk/psa-home.tgz .
>
>    Next: it's aborting with an error, but doesn't tell me just what the
> error
> is. IIRC I need to pipe the above to 2&1>error.log. Is that the proper
> syntax to redirect stderror to a disk file?
>
> Rich
>
>
Use 2>error.log

2>&1 redirects stderr to stdout.

2>&1>error.log redirects all output (stederr and stdout) to error.log.

-wes



More information about the PLUG mailing list