What is this $PATH in Linux and how to modify it
Clash Royale CLAN TAG #URR8PPP What is this $PATH in Linux and how to modify it I have a few questions on this $PATH in Linux. I know it tells the shell which directories to search for executable files, so: 3 Answers 3 To get your path current $PATH variable type in: $PATH echo $PATH It tells your shell where to look for binaries. Yes, you can change it - for example add to the $PATH folder with your custom scripts. $PATH So: if your scripts are in /usr/local/myscripts to execute them you will have to type in a full path to the script: /usr/local/myscripts/myscript.sh After changing your $PATH variable you can just type in myscript.sh to execute script. /usr/local/myscripts /usr/local/myscripts/myscript.sh $PATH myscript.sh Here is an example of $PATH from RHEL: $PATH /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/user/bin To change your $PATH you have to either edit ~/.profile (or ~/....