• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

uuidgen: command not found

by admin

uuidgen utility creates a new Universal Unique Identifier (UUID) and print it to standard output. The generated UUID consists of five hyphen-separated groups of hex digits (e.g., 3cdfc61d-87d3-41b5-ba50-32870b33dc67). The default is to generate a random-based UUID, but this requires that a high-quality random-number generator be available on the system.

In case you encounter the below error:

uuidgen: command not found

you may need to install the below package as per your choice of distribution.

Distribution Command
OS X brew install e2fsprogs
Debian apt-get install uuid-runtime
Ubuntu apt-get install uuid-runtime
Alpine apk add util-linux
Arch Linux pacman -S util-linux
Kali Linux apt-get install uuid-runtime
CentOS yum install util-linux
Fedora dnf install util-linux
Raspbian apt-get install uuid-runtime
Docker docker run cmd.cat/uuidgen uuidgen

Examples of uuidgen command

1. Create a UUID based on the current time:

# uuidgen --time

2. Create a UUID based on the hash of a URL:

# uuidgen --sha1 --namespace @url --name object_name

Sample outut from uuidgen command:

# uuidgen
a6333e94-0608-4abf-ba82-b0f0f13ef986

Filed Under: Linux

Some more articles you might also be interested in …

  1. CentOS / RHE 7 : How to Prevent Users from Using the Last 10 Passwords
  2. How to extend ASM disk from OS level in CentOS/RHEL
  3. What is Anacron and usage of Anacron in Linux
  4. Magento 2.3.3 Redis cache grows unlimited
  5. CentOS / RHEL : How to find UUID of a device or filesystem
  6. resize2fs Command Examples in Linux
  7. CentOS / RHEL 7 : How to configure Network Bonding or NIC teaming
  8. When to use rescan-scsi-bus.sh -i (LIP flag) in CentOS/RHEL
  9. kvm-img: command not found
  10. How to move /tmp on a separate disk as a separate mount point (Online)

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright