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