Random UUID is great when you need to generate a file with a temporary filename and avoiding file naming conflict.

Bash

No additional installation required for Bash, just run the command below.

Ruby

No additional installation required for Ruby too. Just copy the codes below into “uuid.rb”.

Use the command below to execute the Ruby script.