You are not logged in.

#1 2008-01-17 17:12:08

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

How to set $PATH permanently?

I knew I can use

export PATH=

to change $PATH
But how can I set my $PATH permanently for EACH user?

in .bashrc? or some other config files?

Also, where my current $PATH is stored? I mean which config file has that info.

Thanks

Last edited by phabulosa (2008-01-17 17:12:42)

Offline

#2 2008-01-17 17:38:53

Gilneas
Member
From: Netherlands
Registered: 2006-10-22
Posts: 320

Re: How to set $PATH permanently?

It is best explained in man bash under INVOCATION.

Offline

#3 2008-01-17 18:18:40

bionnaki
Member
Registered: 2006-09-05
Posts: 289

Re: How to set $PATH permanently?

Offline

#4 2008-01-17 18:28:18

mr.MikyMaus
Member
From: disabled
Registered: 2006-03-31
Posts: 285

Re: How to set $PATH permanently?

/etc/profile is the file you're looking for wink

-m.


What happened to Arch's KISS? systemd sure is stupid but I must have missed the simple part ...

... and who is general Failure and why is he reading my harddisk?

Offline

#5 2008-01-17 19:20:13

underpenguin
Member
Registered: 2007-02-01
Posts: 116

Re: How to set $PATH permanently?

I was having similar problems, if you want it to change for all users, edit /etc/profile. Otherwise, add it to your ~/.bashrc.

Offline

#6 2008-01-19 02:29:43

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Re: How to set $PATH permanently?

underpenguin wrote:

I was having similar problems, if you want it to change for all users, edit /etc/profile. Otherwise, add it to your ~/.bashrc.

My actual problem is that if I login with agetty as root, /sbin /usr/sbin etc.. will be in my $PATH;

However, I don't have these directories in my $PATH if I login as root with Qingy

How agetty/Qingy find out the correct $PATH?

thanks

Offline

Board footer

Powered by FluxBB