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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

rig Command Examples in Linux

by Deepika

rig is a command-line utility that generates random names and addresses. It can be used for testing purposes or for creating placeholder data. The utility is particularly useful for developers who need to generate large amounts of realistic-looking test data.

Here are some of the main features of rig:

  • Generate random names: rig can generate random first and last names. The names are based on real names and are geographically consistent, meaning that they match the same area.
  • Generate random addresses: rig can also generate random street numbers and addresses. The addresses are also geographically consistent and include a city, state, ZIP code, and area code.
  • Customizable output: rig allows you to customize the output format. You can specify the number of names and addresses to generate, as well as the format of the output.
  • Control randomness: rig allows you to control the level of randomness in the generated data. You can specify the seed value, which determines the sequence of random numbers used to generate the data.

rig Command Examples

1. Display a random name (male or female) and address:

# rig

2. Display a [m]ale (or [f]emale) random name and address:

# rig -m|f

3. Use data files from a specific directory (default is `/usr/share/rig`):

# rig -d path/to/directory

4. Display a specific number of identities:

# rig -c number

5. Display a specific number of female identities:

# rig -f -c number

Summary

Overall, rig is a useful tool for generating random names and addresses for testing purposes. It is particularly useful for developers who need to create realistic-looking test data. The generated data is geographically consistent, making it useful for applications that require location-specific data.

Filed Under: Linux

Some more articles you might also be interested in …

  1. ipaggmanip Command Examples
  2. lrztar Command Examples in Linux
  3. CentOS / RHEL : How to Install and Configure OpenSSH Server and Client
  4. CentOS / RHEL : How to convert volume group metadata between LVM1 and LVM2
  5. fswebcam: Small and simple webcam for *nix
  6. bundle: Dependency manager for the Ruby programming language
  7. gradle: command not found
  8. ctrlaltdel: command not found
  9. elm: Compile and run Elm source files
  10. flock: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright