Everything You Need to Know About $PATH in Bash. 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
Full Linux Sysadmin Basics Playlist: https://www.youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK
Check out my project-based Linux System Administration course (free sample videos): https://www.udemy.com/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?couponCode=tl35
Official Site: https://tutorialinux.com/
Tags: Everything You Need to Know About $PATH in Bash, Linux, tutorial, system administration, sysadmin, command-line, CLI, bash, path variable, linux which command