这篇文章主要介绍Linux中pwck命令怎么用,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

Linux常用命令pwck命令 用来验证系统认证文件/etc/passwd和/etc/shadow的内容和格式的完整性。

pwck

用来验证系统认证文件内容和格式的完整性

语法

pwck(选项)(参数)选项

-q:仅报告错误信息;-s:以用户id排序文件“/etc/passwd”和“/etc/shadow”;-r:只读方式运行指令。参数

密码文件:指定密码文件的路径;

影子文件:指定影子文件的路径。

实例

pwck/etc/passwduser'lp':directory'/var/spool/lpd'doesnotexistuser'news':directory'/var/spool/news'doesnotexistuser'uucp':directory'/var/spool/uucp'doesnotexistuser'www-data':directory'/var/www'doesnotexistuser'list':directory'/var/list'doesnotexistuser'irc':directory'/var/run/ircd'doesnotexistuser'gnats':directory'/var/lib/gnats'doesnotexistuser'nobody':directory'/nonexistent'doesnotexistuser'syslog':directory'/home/syslog'doesnotexistuser'couchdb':directory'/var/lib/couchdb'doesnotexistuser'speech-dispatcher':directory'/var/run/speech-dispatcher'doesnotexistuser'usbmux':directory'/home/usbmux'doesnotexistuser'haldaemon':directory'/var/run/hald'doesnotexistuser'pulse':directory'/var/run/pulse'doesnotexistuser'saned':directory'/home/saned'doesnotexistuser'hplip':directory'/var/run/hplip'doesnotexistpwck:无改变

以上是“Linux中pwck命令怎么用”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注亿速云行业资讯频道!