The PATH
is an essential environment variable in Linux and Unix-like systems. It defines the directories where the shell looks for executable files when you type commands (like ping
, useradd
, and others). Sometimes, you might need to modify the PATH
to include custom directories or tools. The method to do this depends on the shell you’re using, whether it’s bash
, zsh
, or ksh
. This article will guide you on how to set the PATH
in each of these popular shells.
How to Set a New PATH in Bash, Ksh, and Zsh
By
iDoLinux
Get the Free Newsletter!
Subscribe to Developer Insider for top news, trends, & analysis