Add default path settings at startup

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Add default path settings at startup

Postby webtarget on Sat Dec 15, 2012 7:58 am

I am installing some softwre that asks to add a path to my default path. It shows me how to do it using export, but, I want to put it in my default path at startup.

How can I do that? I thought I could put it in a .profile or .bash, but, I don't have one.

I'm using LM13 Mate.


Thanks.
webtarget
Level 3
Level 3
 
Posts: 107
Joined: Sat Mar 24, 2012 10:20 am

Linux Mint is funded by ads and donations.
 

Re: Add default path settings at startup

Postby xenopeek on Sat Dec 15, 2012 8:12 am

You can put it in your .profile. In your file browser press Ctrl+H to show hidden files (.profile, as its name starts with a dot, is a hidden file).

At the end of your .profile file, add a line like (where you replace /some/directory with the full path of the directory the software asked you to add):
Code: Select all
PATH="/some/directory:$PATH"

To activate log out and log in again. This would apply the setting only for your user account, if you want it to apply to all users, add it to /etc/profile instead.
User avatar
xenopeek
Level 21
Level 21
 
Posts: 15054
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Add default path settings at startup

Postby webtarget on Sat Dec 15, 2012 8:28 am

Thanks, I just noticed it. I know about the hidden files. I don't know why I couldn't see it earlier. I think I was looking at the wrong colors in the command line!
webtarget
Level 3
Level 3
 
Posts: 107
Joined: Sat Mar 24, 2012 10:20 am


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Mute Ant, niowluka and 33 guests