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.
If you encounter the below error while running the command rig:
rig: command not found
you may try installing the below package as per your choice of distribution:
|Debian||apt-get install rig|
|Ubuntu||apt-get install rig|
|Kali Linux||apt-get install rig|
|OS X||brew install rig|
|Raspbian||apt-get install rig|
rig Command Examples
1. Display a random name (male or female) and address:
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
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.