RSS Feed

.login

.login is a Unix shell script which is executed for a user every time that user logs in.

A standard .login file will set important environment variables such as $PATH and may also run commands, such as `fortune`.

The .login file will be stored in the users home directory.

.login is used by the C and TCSH shells. The Bourne, Korn, and Bash shells use a startup file called .profile instead.

The C and TCSH shells also use a startup file called .cshrc.

Also, the /etc/.login shared startup file will by executed by all C and TSCH shells.

Respond to “.login”
  1. macos says:

    Keep up the great work of providing us with useful information.

Leave a Reply

Post your comments and questions below, but please follow our commenting guidelines.


Path: Home > Unix > .login