There are several tools that you can use to generate random passwords on a Linux or UNIX system, including mkpasswd
, makepasswd
, and pwgen
.
Here is how you can use each of these tools to generate a random password:
mkpasswd
: To generate a random password with mkpasswd
, you can use the following command:mkpasswd -l 16Soecru:www.lautturi.com
This will generate a random password with 16 characters.
makepasswd
: To generate a random password with makepasswd
, you can use the following command:makepasswd --chars 16
This will generate a random password with 16 characters.
pwgen
: To generate a random password with pwgen
, you can use the following command:pwgen 16 1
This will generate a random password with 16 characters.
You can adjust the number of characters in the password by changing the value after -l
, --chars
, or 16
in the above commands.