tail VS cat VS grep(RedHat Linux)

来源:互联网 发布:初中数学答题软件 编辑:程序博客网 时间:2024/06/07 06:49

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]
0 0
原创粉丝点击