LOGIN

login icon

UNIX command data

File type: Source code and script file

A C shell login startup file, the .login file contains commands that C shell (csh) runs when a user starts a login session on Unix.

What is login file?

File type category:
Source code and script file

Date updated: November 22, 2026

The .login file is a user-specific C shell configuration file, usually kept in the user's home directory. C shell runs the commands in it when the user starts a login session; these commands can set up the user's environment.

The file is plain text containing shell commands, rather than a standalone program. It is part of the traditional Unix C shell setup and remains relevant on systems where C shell is used. GNU Emacs can edit it.

How to open login file?

Open the .login file in GNU Emacs or another text editor to view or edit its commands. On Unix, C shell reads it when starting a login session.

How to convert login file?

No direct conversion is generally needed: the .login file is a text-based shell configuration file, not an interchange format. If you need to reuse its settings elsewhere, copy or adapt the commands for the target shell manually.

Suggested software to open login file:

Associated software actions with the login file

Software applications that can open login files:

Linux/Unix

Multiplatform

Software applications that can edit login files:

Multiplatform

Software capable of saving login files:

Multiplatform

Related file extensions