27 Jan 2014

Linux Startup Files

Depending upon the shell and the user interface you've chosen, here are there shell startup files that will execute on your Linux system.There is also a system wide environment setting at:



An interactive, non-login bash shell will copy the parent environment and execute:


Non-interactive shells only inherit the environment of the parent. Many distributions use /etc/bashrc for system-wide non-interactive shells.


In addition to the shell startup scripts, your desktop environment can specify startup commands. Gnome, KDE and other standardize on:

~/.config/autostart (for a user)
/etc/xdg/autostart (systemwide)