Skip to content
Mario Ferreira edited this page Feb 20, 2017 · 4 revisions

TGZ

http://askubuntu.com/questions/83868/compress-in-tgz

Compress

tar -cvzf <name of tarball>.tgz /path/to/source/folder

Extract

tar -xvzf backup.tgz

Redirect output of command

command >/path/to/log 2>&1 The first part > Redirects standard output(1). the second part 2>&1 Redirects error output (2) to the same as 1

Clone this wiki locally