1 00:00:06,390 --> 00:00:07,680 - Let's check out the commands 2 00:00:07,680 --> 00:00:09,255 that we have seen in this lesson. 3 00:00:09,255 --> 00:00:12,720 So useradd, which adds users and usermod, 4 00:00:12,720 --> 00:00:15,480 which allows you to modify user properties. 5 00:00:15,480 --> 00:00:17,970 Userdel allows you to delete users. 6 00:00:17,970 --> 00:00:19,408 And likewise, we have groupadd, 7 00:00:19,408 --> 00:00:21,390 groupmod and groupdel. 8 00:00:21,390 --> 00:00:22,650 Then there is id. 9 00:00:22,650 --> 00:00:26,040 Id shows you information about user accounts. 10 00:00:26,040 --> 00:00:27,990 It is useful because you can see the groups 11 00:00:27,990 --> 00:00:29,610 that the user is a member of. 12 00:00:29,610 --> 00:00:32,110 And getent allows you to get information 13 00:00:32,110 --> 00:00:34,410 out of an administrative database. 14 00:00:34,410 --> 00:00:36,333 So even if your user comes from LDAP, 15 00:00:36,333 --> 00:00:38,130 getent passwd username, 16 00:00:38,130 --> 00:00:41,311 they'll show you properties of that user. 17 00:00:41,311 --> 00:00:44,050 Passwd the good olds to change passwords. 18 00:00:44,050 --> 00:00:48,480 And chage is more about changing password properties. 19 00:00:48,480 --> 00:00:51,270 Now we have w, which is the shortest command 20 00:00:51,270 --> 00:00:52,470 on Linux, actually. 21 00:00:52,470 --> 00:00:54,690 It shows all the users currently logged in 22 00:00:54,690 --> 00:00:57,348 and a little bit of details about these users. 23 00:00:57,348 --> 00:01:00,750 Who is also showing you these users currently logged in, 24 00:01:00,750 --> 00:01:03,254 but not as much details as w. 25 00:01:03,254 --> 00:01:05,787 Vipw, which is the password editor 26 00:01:05,787 --> 00:01:09,960 and vigr, which is the /etc/group editor. 27 00:01:09,960 --> 00:01:11,968 And last we have seen loginctl, 28 00:01:11,968 --> 00:01:14,583 which allows you to do session management.