Re: how to change environment variable permanently

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

 



On Fri, 2022-06-24 at 11:49 -0300, George N. White III wrote:
> 
> You can add your program to the GUI configuration to start it with an
> icon, put a 
> symbolic link to the program in a directory that is already in the
> PATH, such as 
> $HOME/bin, create a shell script that runs the program with
> additional environment 
> settings, and many more depending on how the program is used.

Thanks George. I know I can create a Gnome launcher to do this, but
thats not really what I wanted. In Gnome, alt-F2 will open a little
window that lets me issue a command line instruction (like executing a
program), I like that, its fast and easy. I like the idea of just
adding a symbolic link to ~/bin, that path is in my $PATH variable but
the folder doesn't exist, yet.

> Once your linux usage moves beyond web browsing it is important to
> master some
> basic command-line/shell tools.  

Ouch, web browsing, that hurt a little.

> There are many dangerously misleading youtube
> tutorials (avoid those that claim to be easy or fast!) and a few that
> are excellent, but I 
> suggest starting with LinuxCommand.org as it has been used by many
> people for 
> years.

Thanks for this reference, I will look it up. Right now I am reading a
book called, How Linux Works by Brian Ward.

> If the directory you want to add to the PATH contains a single
> program, other methods
> are probably more appropriate.   

Ok, that makes sense.

> The reason the PATH is added twice is that ~/.bashrc
> gets run each time bash is invoked.   If you log in on a text console
> you normally see one
> entry in the PATH.   If you are in a bash terminal session and see 2
> entries, starting bash
> again will give 3 entries.
> 
> On Fedora, /etc/profile defines a shell function called pathmunge
> that checks to see if
> a directory is already in the PATH before adding it to the PATH. 

Ok, I will look into pathmunge, just to learn something new.
thanks a lot for this.


Anil
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux