Mrinflictor Centos
Mrinflictor Centos
> Redirect STDOUT to a file CTRL-c Kill current command # compress (tar/gzip)
2> Redirect STERR to a file CTRL-a Goto start of current line tar cvzf <file>.tgz <directory>
# extract (tar/gzip)
&> Redirect all output to a file CTRL-e Goto end of current line
tar xvzf <file>.tgz
2>&1 Redirect all output to a pipe CTRL-r Search history
# compress (tar/bzip)
cmd1 | cmd2 Pipe STDOUT of cmd1 to cmd2 !! Repeat last command
tar cvjf <file>.tbz <directory>
Use >> to append rather than overwrite ^abc^def Run previous command, replacing
# extract (tar/bzip)
abc with def
tar xvjf <file>.tbz
Scheduling with cron
# extract (gzip)
Useful Snippets
#list current entries in crontab gunzip <file>.gzip
crontab -l #hostname
/etc/sysconfig/network-scripts/