| gpg -c file | Encrypt file | |
| gpg file.gpg | Decrypt file | |
| tar -c dir/ | bzip2 > dir.tar.bz2 | Make compressed archive of dir/ | |
| bzip2 -dc dir.tar.bz2 | tar -x | Extract archive (use gzip instead of bzip2 for tar.gz files) | |
| tar -c dir/ | gzip | gpg -c | ssh user@remote 'dd of=dir.tar.gz.gpg' | Make encrypted archive of dir/ on remote machine | |
| find dir/ -name '*.txt' | tar -c --files-from=- | bzip2 > dir_txt.tar.bz2 | Make archive of subset of dir/ and below | |
| find dir/ -name '*.txt' | xargs cp -a --target-directory=dir_txt/ --parents | Make copy of subset of dir/ and below | |
| ( tar -c /dir/to/copy ) | ( cd /where/to/ && tar -x -p ) | Copy (with permissions) copy/ dir to /where/to/ dir | |
| ( cd /dir/to/copy && tar -c . ) | ( cd /where/to/ && tar -x -p ) | Copy (with permissions) contents of copy/ dir to /where/to/ | |
| ( tar -c /dir/to/copy ) | ssh -C user@remote 'cd /where/to/ && tar -x -p' | Copy (with permissions) copy/ dir to remote:/where/to/ dir | |
| dd bs=1M if=/dev/sda | gzip | ssh user@remote 'dd of=sda.gz' | Backup harddisk to remote machine |
Linux Downloads & Tutorials Quick Search Engine :
Custom Search
NB:
You can Find ALL (Downloads,meaning,more posts)Quickly and easily With This Search engine.
*For Meaning Use : Meaning of 'WORD' .
*For Download Use : Download ' Product'
*For More Posts About A Subjet Use : Posts About 'WORD/SENTENSE')
*For Meaning Use : Meaning of 'WORD' .
*For Download Use : Download ' Product'
*For More Posts About A Subjet Use : Posts About 'WORD/SENTENSE')
Wednesday, April 29, 2009
Linux Commands archives and compression
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment