

免费资源网 – https://freexyz.cn/
linux怎么判断用户是否存在?
linux 判断一个用户是否存在:
#!/bin/bash read -p “please input a username:” username if id -u $username >/dev/null 2>&1; then echo “user exists” else echo “user does not exist” fi把上面内存保存为 test.sh , 然后 sh test.sh 运行
免费资源网 – https://freexyz.cn/
© 版权声明
THE END
暂无评论内容