Linux 查看指定账户的id

cat /etc/passwd | egrep '^hnoa3|^huxianghui|^zhousichong' |awk -F: '{print $1}' | xargs -I {} sh -c 'echo "User: {}"; id {}; echo "---------------------"'

cat /etc/passwd | egrep '^hnoa3|^huxianghui|^zhousichong' |awk -F: '{print $1}' | xargs -I {} id {};

 

posted @ 2024-06-20 09:14  LB_运维技术  阅读(10)  评论(0编辑  收藏  举报