Amiga Unix — 68040 · 68060

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).

profile - the login shell's start-up commands for every user

/etc/profile

/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.

/etc/profile
this file.
/etc/profile.d/*.sh
the packages' additions.

profile.d(4), sh(1), ksh(1)

31 October 2026 amix-base