Very useful in embedded and other non-standard deployments. The above makes a random salt of 14 random characters from /dev/urandom (you can change the -14 to whatever number of characters you want for your salt).
openssl passwd -1 -salt `< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-14};echo;`
YourPassword
Output:
$1$eW-ScuyL$f/iKMJ5mbJ..7bSzvX6EO0
openssl passwd -1 YourPasswordHere
openssl, md, password, hash, etc, bashvery, embedded, deployments, characters, dev, urandom, passwd, tr, dc, _a, z, echo, yourpassword, output, scuyl, ikmj, mbj, bszvx, eo,