...
Code Block | ||
---|---|---|
| ||
# On Ubuntu md5sum /path/to/file # On Solaris digest -a md5 -v /path/to/file |
Tar
To save a directory into a tar file and gunzip. Make sure to use sudo to keep the permissions intact.
Code Block | ||
---|---|---|
| ||
# To tar the directory
sudo tar -zcvpf tarfile.tar.gz ./folder
# To untar and gunzip the file in one command
sudo tar -zxvpf tarfile.tar.gz
# Password tar
... |