Archive for the ‘ Bash ’ Category

pigz – Parallel gzip

pigz – Parallel gzip.


A parallel implementation of gzip for modern
multi-processor, multi-core machines

pigz, which stands for parallel implementation of gzip, is a fully functional replacement for gzip that exploits multiple processors and multiple cores to the hilt when compressing data. pigz was written by Mark Adler, and uses the zlib and pthread libraries. To compile and use pigz, please read the README file in the source code distribution. You can read the pigz manual page here.

Copy ssh key

Recently I found a very handy command to copy your public ssh key to a destiation host.

All the time struggeling around with some xargs, pipes etc. to learn in the end that the command already exists.

How to use it:

ssh-copy-id -i ~/.ssh/ remote-host

Create dsa key pair:

ssh-keygen -t dsa

Fuse on ubuntu

To mount a network file system via ssh, on ubuntu 10.04 it has really become such easy:

sudo apt-get install sshfs
sudo modprobe fuse
sshfs username@ipaddress:/remotepath ~/emptydir
fusermount -u ~/emptydir
sshfs username@ipaddress:/remotepath ~/emptydir -o uid=1000 -o gid=1000 -o workaround=rename
fusermount -u ~/emptydir