Manual pages › File formats and configuration files (4)
profile(4)
the login shell's start-up commands for every user
Package: amxbase, added for amigaux.
This package comes with every 1.1 install; without it, the original page is profile-original(4).
NAME
profile - the login shell's start-up commands for every user
SYNOPSIS
/etc/profile
DESCRIPTION
/etc/profile is read by sh(1) and ksh(1) when they start as a login shell, before the user's own $HOME/.profile. The file shipped with the base package is the system's own, from release 2.1p2a, with one addition at its end.
The system's part:
- sets PATH (the stock directories, with /usr/local/bin first and, for users other than root, $HOME/bin before it and the current directory at its end) and TERM (on the console, the console's terminal type), and exports LOGNAME too;
- sets the terminal's control characters (stty), shows /etc/motd, says when there is mail, and lists new news items (not for root);
- sets the file creation mask to 022.
The addition reads every readable file whose name ends in .sh in /etc/profile.d, so that a package can set up its part of the environment without editing this file (see profile.d(4)).
An update of the base package keeps an edited /etc/profile and puts the new default beside it as /etc/profile.new.
FILES
- /etc/profile
- this file.
- /etc/profile.d/*.sh
- the packages' additions.
SEE ALSO
| 31 October 2026 | amix-base |