Amit's Blog
  • Home
  • Videos
  • All Posts
  • Tags
  • About Me
Subscribe
Tagged

Bash

Bash Shell and Shell Scripts

Generate UUID in bash
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 uuid cat /proc/sys/

Linux Guy Feb 24, 2022 • 1 min read
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

  • amit
amit May 20, 2016 • 1 min read
Amit's Blog © 2023
Powered by Ghost