$ pwgen --help
Usage: pwgen [ OPTIONS ][ pw_length ][ num_pw ]Options supported by pwgen:
-c or --capitalize
Include at least one capital letter in the password
-A or --no-capitalize
Don't include capital letters in the password
-n or --numerals
Include at least one number in the password
-0 or --no-numerals
Don't include numbers in the password
-y or --symbols
Include at least one special symbol in the password
-r <chars> or --remove-chars=<chars>
Remove characters from the set of characters to generate passwords
-s or --secure
Generate completely random passwords
-B or --ambiguous
Don't include ambiguous characters in the password
-h or --help
Print a help message
-H or --sha1=path/to/file[#seed]
Use sha1 hash of given file as a (not so) random generator
-C
Print the generated passwords in columns
-1
Don't print the generated passwords in columns
-v or --no-vowels
Do not use any vowels so as to avoid accidental nasty words
$ pwgen
lahl5Ahk ahdong4G eeLooPo4 yi4oGhie queLaiX4 ak0Aete8 Je8nooMo Faifoo5o
eezo1Oog lo0ahR0e Geet0uto phe2Xak7 eiHuroo1 Cah1eini naiDi7Mi gieS9uQu
gaeVie2o ub6Auch4 ah9Oocek Lohph7oo We5eicie cohf0eeF Xai9beew ahf7miGi
Koh3see8 Ohji8sae Lung0ae0 Ha3pae4I Phes1sei Ailu4Kow keliJ2ag CohYiey7
ig0aWooj mu4ooKee AeZ8Een4 Aish8Thu ieVai1ei bou6Ahzo eiR4eido VeiCh4sh
puMie5ru Wohfain4 fieG5fai Di8Ohqu6 yai4iK5o hit4siGh siuw7aeY pafaiJu1
oquoY0he Enev2ach Iuhooza0 ooshee3B oQu5xaew quah1Shi Eesa9cae iaHie8ee
Eiv2oNgi uoLur7No Dier8gei vu2Peenu Peen6iey ohM4zeil iDo3dahc Peichoh3
meim6oBu phiebo2E te9eiTho us3Chu8x ut7Tie1j aGi8Ohb9 chee6Ohf aefoh3Oe
ohxae4Su en5Outh0 omooT3fo eeWie4Ju iFait0Ax ohWohvi0 Ing5Seiv gieJ2sha
Eish4ahV Shoocoh6 oKei0qui Keidan9r ki1niLee Aed7nae6 eih7Ahp6 uotaeX2a
Chaez1ee AiD9chie joogh8Oh rieShiu3 aech2Gah ohB3foow Vo4og8th fee6Dae1
Ob0Liedo Vo7pahQu ESh3aeza ooVie3he pouM7zoh jou4Aibi SaiMei2v Shohg8vu
Xaowoe0o johC5iu4 ooCh5aid ooquei3A el2Ohdoh OoL9Aiz4 Lut4oi3m udahG7oh
eeh1Keil ies3aKah Bee4taif ooL6auL5 OhTh1dee Na1ahle7 Voh6Aero Aipheeg7
iv0Pe0oY xah8Xoav sabeth0A bah6Eiw1 Lee6quu5 eiNg1iec Oozahl3V iDa7aphi
Gayai5th eifeeSh4 Noe7sooh Li3EiKie EBai7OhL xu7Ood8z Iex9pe1u cuPevij7
choo8gaJ Kush6tho cieMaem0 eeNae3we Oojoh9oo Yoh2upoh fie4ohNg Gohmae2i
meNahn5B aeth0Eik veinga9Y oohah7Oh uelaeF7x caeRePh4 Xook5ohm aeMah7ch
tae5uM0a iSieke2y kah4Lo4G Ohy0shah fahp8eeL thahPoo3 Eiko8boo oofiWoo5
$
## 产生16位的随机密码$ pwgen -cns 161aBath6gvdYSUaov0
$ pwgen -cns 161Xn58hti2XX68UYgH
$ pwgen -cns 161QYUQCyy2CJd4fPfE
$ bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type`warranty'.
(26+10)^16/(1000000*60*60*24*365)252367488265