LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Migrating from Unix to Linux (https://www.linuxquestions.org/questions/linux-newbie-8/migrating-from-unix-to-linux-489818/)

amazingsol 10-05-2006 06:38 PM

Migrating from Unix to Linux
 
I'm an old SCO Unix user whose migrating to Red Hat Linux Enterprise. I'm trying to find out where commands are stored that are executed when a user logs in. In SCO it is in the .profile file in the user's home directory but I can't find it in Linux. I'm logging in in text mode, not GUI.
Thanks!

unSpawn 10-05-2006 07:49 PM

Quote:

Originally Posted by ^H^H^H in man bash
When bash is invoked as an interactive login shell, or as a non-inter-
active shell with the --login option, it first reads and executes com-
mands from the file /etc/profile, if that file exists. After reading
that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
in that order, and reads and executes commands from the first one that
exists and is readable. The --noprofile option may be used when the
shell is started to inhibit this behavior.

When a login shell exits, bash reads and executes commands from the
file ~/.bash_logout, if it exists.

Bash being the default shell.

I'm an old SCO Unix user whose migrating to Red Hat Linux Enterprise.
Please note we have an RH and Enterprise forum as well.

amazingsol 10-06-2006 12:06 PM

Thanks!
 
Thanks, I'll see if I can find any of these files. If not, I'll create my own.


All times are GMT -5. The time now is 06:49 AM.