Comments on: Learn How to Set Your $PATH Variables Permanently in Linux https://www.tecmint.com/set-path-variable-linux-permanently/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Fri, 14 Jul 2023 01:39:50 +0000 hourly 1 By: Todd https://www.tecmint.com/set-path-variable-linux-permanently/comment-page-2/#comment-1185784 Sat, 29 Jun 2019 18:50:30 +0000 http://www.tecmint.com/?p=20051#comment-1185784 @Ryan

When setting up the Android & Java SDKs on this system I had the same issue when defining the needed PATH variables and adding the library paths. I dug around and found that my current system has both ~/.bashrc and /etc/profile and that no matter what I tried defining them in ~/.bashrc & it wasn’t working, but commenting the lines out in ~/.bashrc and copying them to /etc/profile did exactly as expected.

I came to the conclusion that perhaps there’s an overwrite happening, but I’ve never had a chance to understand it further.

]]>
By: Ryan https://www.tecmint.com/set-path-variable-linux-permanently/comment-page-2/#comment-1184907 Sat, 29 Jun 2019 00:51:53 +0000 http://www.tecmint.com/?p=20051#comment-1184907 Hello,

I am trying to change my $PATH and i did a vi on .bash_profile where i added this command:

export PATH=$PATH:/HOME/scripts

Then I saved the file and then i did a source ~/.bashrc, but my scripts file did not show up when i ran this command.

$ echo $PATH

WHAT did i do wrong? Respectfully request your help.

Thank you.
cajunchief

]]>
By: Shima https://www.tecmint.com/set-path-variable-linux-permanently/comment-page-2/#comment-1151396 Mon, 13 May 2019 17:00:59 +0000 http://www.tecmint.com/?p=20051#comment-1151396 Hi,

My system is Fedora 28 and the default shell is tcsh. I want to know how can I set permanent PATH? It is necessary to say that I do not have root access.

Before, I had Ubuntu, the default shell was BASH. So I used to edit .bashrc file.

Thanks,
Shima

]]>
By: chk666 https://www.tecmint.com/set-path-variable-linux-permanently/comment-page-2/#comment-1001069 Sun, 03 Jun 2018 22:28:10 +0000 http://www.tecmint.com/?p=20051#comment-1001069 Hello and good days.

I need help what happened if i run virtualenv in my environment path, what i mean is “chk@waklu:$ virtualenv” did the path environment is change on bashrc, profile, or even in the /etc/bash, /etc/profile.

The problem is, I cannot detect my python and when i try to echo path should get /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/marin/bin
but I am getting blank, not showing up. Need help I run 16.04 Ubuntu.

]]>
By: Matt https://www.tecmint.com/set-path-variable-linux-permanently/comment-page-1/#comment-968028 Sat, 10 Feb 2018 04:42:34 +0000 http://www.tecmint.com/?p=20051#comment-968028 Frustrating, because there’s very incomplete information here. “In this tutorial you are going to learn how to set $PATH variable globally and locally.” Really? I’m going to set the path for the whole world? What do you -really- mean by globally? (For all users, I’m assuming)

“First, let’s see your current $PATH’s value. Open a terminal and issue the following command: echo $PATH
Why can’t I just type “$PATH“? Seems to do the same thing.

I don’t see anything about path in my .bashrc file.

# cat .bashrc | grep PATH 

“$ export PATH=$PATH:/path/to/newdir”

What if I make an unnoticed typo; how do I fix that?

]]>