If you are working on large system and the administrator has provided you just a terminal, then you can login to that workstation if you have your own user-id and password. In this example I will login to my own workstation using user-id howtoideas.
Loging In:
You can login to a workstation using following command
login [username]
example
login howtoideas
If above command is showing an error “login: Cannot possibly work without effective root”, then you need a root access to login. So, you can use the following command instead of upper command
sudo login howtoideas
System will ask you to provide password for the root account first and then for the account you want to login if you are loging in using sudo command otherwise it will ask only the password of the account you are trying to login to.
If you have provided wrong user-id or wrong password, then you will get an error “Login incorrect”.
If you have provided both user-id and password correct, then it will log you into that account as shown in following image.
Loging Out:
You can logout by pressing Ctrl key and the character d i.e by using [Ctrl + D]. This will work on most of the shell. But in some other shell programs like C Shell which use % as prompt. On those account logout command will work fine.
logout
You can also logout using exit command.
exit
Incoming search terms:
- logout of ubuntu in terminal (1)




