...
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
# Encrypting a tar
... |
Last
Last searches back through the file /var/log/wtmp (or the file designated by the -f flag) and displays a list of all users logged in (and out) since that file was created.
...