Basic Linux Tutorial
Computer Tutorial

Login Related Commands



Logging On Command

Initially, a user needs to get a userid and, optionally, a password. The userid is typed in at the login prompt.The system then prompts for the password assigned to the login name. The user then enters the password. If the login name and the password match one of the users on the system, the user is allowed to log into the system.
The login prompt usually looks like :
login :
Following the logon, the password prompt will appear:
password :


Changing Password

The password is changed with the passwd command.
When you issue this command, you will be asked to enter the current password. For security reasons, this password will not be displayed on the screen. If you enter this old password correctly, you are prompted to enter the new password. Once you enter the new password and press the Enter key, the system will ask you to reenter the new password. Now you enter the new password again. A typical password changing session would be like the following.
$ passwd
Old password :
New password :
Re-enter new password :
Password changed
$

Synopsis :

$ passwd

Logging Out

The logout process finishes your session. To log out, use the exit command at the shell prompt. The system will terminate your session and display the login prompt.

Synopsis :

$ exit