Blog Home
Updated: 2023 Oct 09

pass

Pass 是一个标准的 unix 密码管理器。

基础操作

初始化

创建密码

生成密码,你也可以通过insert密码

pass generate Email/jasondonenfeld.com 15
The generated password to Email/jasondonenfeld.com is:
$(-QF&Q=IN2nFBx

查看密码

列出所有密码项

pass

或者

pass ls

或者

pass show

显示某个密码项中的密码

zx2c4@laptop ~ $ pass Email/zx2c4.com
sup3rh4x3rizmynam3

直接复制到粘贴板

zx2c4@laptop ~ $ pass -c Email/zx2c4.com
Copied Email/jason@zx2c4.com to clipboard. Will clear in 45 seconds.

通过二维码显示

zx2c4@laptop ~ $ pass -q Email/zx2c4.com

修改密码

删除密码

zx2c4@laptop ~ $ pass rm Business/cheese-whiz-factory
rm: remove regular file ‘/home/zx2c4/.password-store/Business/cheese-whiz-factory.gpg’? y
removed ‘/home/zx2c4/.password-store/Business/cheese-whiz-factory.gpg’

其他

在使用 iterm 终端删除密码或覆盖密码时二次确认,会让输入y回车确认。如果回车失败,显示M 的符号,可以使用下面命令恢复。

stty sane

Comments:

Email questions, comments, and corrections to hi@smartisan.dev.

Submissions may appear publicly on this website, unless requested otherwise in your email.