C Shell Initialisation Files:
- Commands in
/etc/.loginare executed first. - Commands in
$HOME/.cshrcare executed. (also executed each time a new shell/CDE session is started) - Shell executes commands in
$HOME/.loginfile (usually terminal type/environment commands) - Once the above is complete, the shell starts reading commands from the default input device, the terminal.
- If $
HOME/.logoutfile exists, this is executed when the C shell terminates.
Bourne Shell Initialisation Files:
- Commands in
/etc/profileare executed first. - Commands in
$HOME/.profileare executed (usually terminal type/environment commands) - Once the above is complete, the shell starts reading commands from the default input device, the terminal.
Korn Shell Initialisation Files:
- Commands in
/etc/profileare executed first. - Commands in
$HOME/.profileare executed (usually terminal type/environment commands) - If present, commands in
$HOME/.kshrcare executed. This file gets read each time a new Korn shell is started after login. - Once the above is complete, the shell starts reading commands from the default input device, the terminal.
This post is tagged Bourne, C, Initialisation, Korn, Linux, Shell, Solaris, UNIX



















No Comments
Leave a Reply