E-learning module "Linux Basics"
Linux Users
On a Linux system a user has a user name and he is a member of various groups.
Useful commands:
$ whoami
→ Print out the user name (effective userid).$ groups
→ Display the group names the user belongs to.$ id
→ Print the real (numeric) and effective (name) id of the user.$ passwd
→ With this command a user can change his password.
The Linux operating system is a multi user system. This means that multiple users can work on the system at the same time.
Useful commands:
$ groups user2
→ Determine the groups of user2
.$ id user2
→ Display the ids of user2
.$ last
→ Show a list of users who last logged in.$ last -n 14
→ Print the last 14 logins.$ who
→ Print out the users which are logged in at the moment.
![]() | The content of this e-learning module is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Germany license (CC BY-NC-SA 3.0 DE). |