Загрузка...

How to Add a New Environment Variable Permanently on Linux..? (source Command)

In this video, you’ll learn how to add or make environment variables permanent in Linux using the source command — a crucial step for keeping your configurations active even after rebooting.

Normally, environment variables created with export are temporary and reset once you close the terminal. By saving them in shell configuration files and reloading with source, you can make them permanent!

🖥️ Commands Covered:

export VAR=value → Create a new variable

echo $VAR → Verify the variable

nano ~/.bashrc → Open the bash configuration file

Add the line → export VAR=value

source ~/.bashrc → Apply changes immediately

printenv VAR → Check if it’s set permanently

💡 The source command reloads configuration files without restarting your terminal — perfect for developers, admins, and cybersecurity learners who customize their Linux environment.

📺 Channel: Secure2Cyber
Learn Linux, Cybersecurity, and IT Skills through short, practical tutorials.
Subscribe to @Secure2Cyber and make mastering Linux commands easy and fun!

📲 Follow Secure2Cyber on Social Media:
🔹 Instagram: @secure2cyber

🔹 Facebook: @secure2cyber

🏷️ Hashtags:

#linux #linuxcommands #sourcecommand #environmentvariables #secure2cyber #linuxbasics #linuxshorts #linuxforbeginners #cybersecurity #linuxlearning #terminaltips #techshorts #ubuntu

Видео How to Add a New Environment Variable Permanently on Linux..? (source Command) канала Secure2Cyber
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять