Re: basic linux question..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You don have to reboot nor logout

just run this command

$ . ~/.bashrc

notice the dot after the dolar prompt!

or
if you want to read the ENV from profile, then

$ source /etc/profile

ifan


On Thursday 07 October 2004 07:10, Mike Burger wrote:
> On Wed, 6 Oct 2004, bruce wrote:
> > anth...
> >
> > just what i was looking for!!!!
> >
> > ps... how can i get the changes in the /.bashrc /etc/profile to take
> > effect.. or do i have to reboot...
>
> Just log out and log back in.
>
> > -----Original Message-----
> > From: Anth Courtney [mailto:anth@xxxxxxxxxxxxxxxx]
> > Sent: Wednesday, October 06, 2004 2:49 PM
> > To: bedouglas@xxxxxxxxxxxxx; General Red Hat Linux discussion list
> > Subject: Re: basic linux question..
> >
> >
> > Bruce,
> >
> > Howzit.
> >
> > > what do i have to do (what command) to allow me to simply type the name
> > > of the executable from anywhere on the drive, and have the exe run...
> >
> > You need to add the directory to your path.
> >
> > If the directory was /opt/mydirectory then you could do
> >
> > export env PATH=$PATH:/opt/mydirectory
> >
> > You can then just type the name of the file and bingo.
> >
> > To make a change like this more permanent, you'll want to add it into
> > /etc/profile - look at the pathmunge examples in there and just add your
> > own.
> >
> > cheers,
> > Anth
>
> --
> Mike Burger
> http://www.bubbanfriends.org
>
> Visit the Dog Pound II BBS
> telnet://dogpound2.citadel.org or http://dogpound2.citadel.org
>
> To be notified of updates to the web site, visit
> http://www.bubbanfriends.org/mailman/listinfo/site-update, or send a
> message to:
>
> site-update-request@xxxxxxxxxxxxxxxxx
>
> with a message of:
>
> subscribe

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux