Bash Generate UUID in bash Sometimes you may need to generate random UUIDs in bash shell. Here's a quick way to generate one : uuidgen If you need to get just the uuid and no dashes , you can use sed : uuidgen | sed 's/-//g' Another way to use the kernel random
Bash Touch command tips and tricks Changing modification time using touch: touch -d '-4 day' filename touch -d '-4 hour' filename touch -d "30 days ago" filename Setting Timestamp : touch -t 201606101712 filename