Bash Snippets

From Flo's Knowledge in a Nutshell

Jump to: navigation, search

Some small, useful Bash-Snippets...

Move directories from today to another folder

find . -mtime 0 -type d -not -name "." -print0 -exec cp -rv {} /my/favourite/target {} \;

LUKS mount/unmount

cryptsetup luksOpen /dev/sda3 crypt
mount /dev/mapper/crypt crypt/
cryptsetup luksClose crypt
Personal tools