shell编程题(五十一)

题目:

  显示当前系统上所有用户的shell,要求,每种shell只显示一次;

答案:

  

cut -d: -f7 /etc/passwd | sort -u

 

posted @ 2020-02-10 10:17  王清河  阅读(143)  评论(0编辑  收藏  举报