课程: Practical Linux for Network Engineers: Part 1

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Groups

Groups

- [Instructor] Now groups allow us to do something similar. Group tab tab gives us various options. Group add, group delete, group modification. Groups shows us the various groups that exist. So again, group tab tab, and we could edit group, but let's look at help, first. Notice we can specify a group ID. We can specify a password for the group. So as an example, we could add a group called sales. And again, don't forget to add sudo at the beginning to create the group. Now to view the group that we've created, we could say cat /etc/group. That show various groups. We can see sales at the end here. We can also see the james group, as well as the david group. But we could also simply use grep. And grep for sales to filter for that group. Grep, again, is very similar to typing sh run or another command, and using the include word and looking for a specific word, such as face, or vty, or whichever word you're looking for. So something very similar could be done here. Again, Linux is case…

内容