dscl
Directory Service command line utility
用于创建、读取、管理目录服务数据
语法:
dscl [options] datasource [command]

列出 /Users 目录下的不以“”开头的用户
dscl . list /Users | grep -v '^

Mac 上的用户管理命令 dscl
删除用户 yarn
sudo dscl . -delete /Users/yarn

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2021-12-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2021-06-14
相关资源
相似解决方案