Everything You Need to Know About $PATH in Bash @tutoriaLinux
Everything You Need to Know About $PATH in Bash  @tutoriaLinux
Uploaded March 2017 | Updated September 2026, 2 weeks ago
How does PATH work in Linux? How does Linux know where to look for the commands that you type at the command-line? In this video you'll learn how the $PATH variable works in Linux. Specifically, we'll look at how this value is looked up in bash, and how you can modify it.

I'll also introduce you to the `which` command, which you can use to check which filepath bash is using for a given name (executable).

To modify PATH for
-a single user (normal or root): /home/username/.bash_profile
-all users except root: /etc/profile


My step-by-step project-based Linux course for beginners: udemy.com/course/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?referralCode=19C0A7DEE2FD53C9C09D

Free Linux Sysadmin Course Playlist: youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK

DigitalOcean referral link: https://m.do.co/c/0380a1db56a6

Patreon: patreon.com/tutorialinux
Official Site & e-mail list: tutorialinux.com
Twitter: twitter.com/tutorialinux
Facebook: facebook.com/tutorialinux
Podcast: kernelpanicpodcast.com
Everything You Need to Know About $PATH in Bash8 Basic lsof Commands Every Sysadmin Needs to Know10 Questions You NEED to Ask During Your Tech Job InterviewTutorialinux e-book Launch: Linux Containers, HTTPS Setup, and New Website ContentReal-Life Kubernetes 3: Set up a Managed Kubernetes Cluster on DigitalOceanAmazon AWS Tutorial #2: Custom AMIs and Auto-Scaling GroupsArchiving and Compression on Linux - Basic tar CommandsDaves Open Tabs: Why Tech Careers Suck, Fun Algorithms, Early RetirementTutorial: A Customizable Bare-Bones Linux InstallThe Linux script Command: Record Your Shell SessionsDeus Ex & DevOps Episode 1System/Linux/DevOps Engineer Interview
tutoriaLinux |

Everything You Need to Know About $PATH in Bash

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER