How to Add a Directory to the PATH in Ubuntu Terminal (Permanent + Temporary Methods)

How to Add a Directory to the PATH in Ubuntu Terminal (Permanent + Temporary Methods)

Want to run your scripts or executables from anywhere in the terminal without typing full paths? In this quick and practical tutorial, you'll learn how to add a directory to your system's PATH—temporarily and permanently—on Ubuntu using just a few simple commands. 🚀 ✅ What You’ll Learn in This Video: 📌 What the PATH variable is and why it matters 🔍 How to view your current PATH 🧪 How to temporarily add a custom directory to your PATH 🛠️ How to make the change permanent using .bashrc ✅ How to verify that your new PATH works correctly ⏱️ Timestamps 00:00 – Intro: What is PATH and why is it useful? 00:08 – Opening the terminal in Ubuntu 00:14 – Viewing your current PATH 00:26 – Temporarily adding a directory to PATH 00:52 – Making the change permanent with .bashrc 01:17 – Applying and verifying the changes 💡 Why Watch This Video? 🧑‍💻 Perfect for developers, sysadmins, and Linux power users ⚙️ Gain more control over your Linux environment 🚫 Avoid "command not found" errors by setting up PATH correctly 📂 Ideal if you use custom scripts or install software locally ✅ A key step for anyone setting up local development tools 🎓 More Resources for Learning Linux Commands: 🎥 Ubuntu Playlist:    • Ubuntu   🙌 Enjoyed the tutorial? Help the channel grow! 👍 Like this video 💬 Drop a comment if you have questions or PATH tips 📤 Share with your fellow Linux users 🔔 Subscribe and turn on notifications for weekly tutorials Thanks for watching and happy scripting! 🖥️✨ #linux #ubuntu #bash #terminal #pathvariable #ubuntutips #linuxcommands #linuxbasics #environmentvariables #bashrc #linuxterminal #devtools #ubuntudev #ubuntucli #codingtips #linuxdev #ubuntuguide #bashscripting #commandline #linuxtricks