tail VS cat VS grep(RedHat Linux)

tail VS cat VS grep(RedHat Linux)

[mrxu@localhost ~]$ groupadd -g 600 testgroup
bash: /usr/sbin/groupadd: Permission denied
[mrxu@localhost ~]$ sudo groupadd -g 600 testgroup
[mrxu@localhost ~]$ tail -1 /etc/group
testgroup:x:600:
[mrxu@localhost ~]$ cat /etc/group|grep stu
[mrxu@localhost ~]$ cat /etc/group|grep testgroup
testgroup:x:600:
[mrxu@localhost ~]$ grep testgroup /etc/group
testgroup:x:600:
[mrxu@localhost ~]$

[查看剛剛添加的用戶組group]
發佈了52 篇原創文章 · 獲贊 0 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章