Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello all. Solaris user here trying to learn some Linux. CentOS in this case.
I have created a .profile file in my home directory to do things such as set: the path, a prompt, backspace as delete, etc.
When I login, the .profile file does not run. However when I execute it manually using . ./.profile it works just fine.
I checked the User Manager (?) and could not find where you set the file to use for local settings. If you wanted to use one at all that is.
I am using CentOS 5.3 and the Korn shell.
So my question: how does a person run a local profile file from their home directory during login? Or is there some other way of doing this using CentOS?
Hello all. Solaris user here trying to learn some Linux. CentOS in this case.
I have created a .profile file in my home directory to do things such as set: the path, a prompt, backspace as delete, etc.
When I login, the .profile file does not run. However when I execute it manually using . ./.profile it works just fine.
I checked the User Manager (?) and could not find where you set the file to use for local settings. If you wanted to use one at all that is.
I am using CentOS 5.3 and the Korn shell.
So my question: how does a person run a local profile file from their home directory during login? Or is there some other way of doing this using CentOS?
Thanks!
~Robert
I know this may be a silly question, but why bother with
Korn if you want to actually use Linux? Just use bash,
the default for the OS, and the weapon of choice for the
init scripts it uses.
I know this may be a silly question, but why bother with
Korn if you want to actually use Linux? Just use bash,
the default for the OS, and the weapon of choice for the
init scripts it uses.
I guess I do not know enough about Linux to understand why Korn is not Linux.
When Linux was first written, ksh (ksh88 ?) was still a closed src program, so they went with bash; highly ksh compatible (work-alike), but open src & free.
You could get pdksh (public domain ksh rewrite) but it wasn't that popular for obvious reasons.
Later on, ksh (ksh93 iirc) became open, but by that pt the default was bash.
Your choice as to which you use, but getting used to bash is prob a good idea. As I say, the 2 are very close in functionality. The main problem in porting scripts is external cmds/progs like find, which the GNU team have extended with extra options and in some cases altered. See the -maxdepth/-prune options between old school find and the gnu version.
Thanks guys for your replies. At work at the moment so don't have too much free time to digest all the replies. But I did want to write a quick thank you for the thoughtful answers!
If you are using Centos, just the std install, the ksh should be the one from the repos and should work. It's possible that your login entry in /etc/passwd still says bash, not ksh.
Just FYI, as with ksh = .profile & .kshrc, the equiv files for bash are .bash_profile & .bashrc, although bash would (should ?) run .profile if no .bash_profile exists, iirc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.