The Tech Edvocate

Top Menu

  • Advertisement
  • Apps
  • Home Page
  • Home Page Five (No Sidebar)
  • Home Page Four
  • Home Page Three
  • Home Page Two
  • Home Tech2
  • Icons [No Sidebar]
  • Left Sidbear Page
  • Lynch Educational Consulting
  • My Account
  • My Speaking Page
  • Newsletter Sign Up Confirmation
  • Newsletter Unsubscription
  • Our Brands
  • Page Example
  • Privacy Policy
  • Protected Content
  • Register
  • Request a Product Review
  • Shop
  • Shortcodes Examples
  • Signup
  • Start Here
    • Governance
    • Careers
    • Contact Us
  • Terms and Conditions
  • The Edvocate
  • The Tech Edvocate Product Guide
  • Topics
  • Write For Us
  • Advertise

Main Menu

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings

logo

The Tech Edvocate

  • Start Here
    • Our Brands
    • Governance
      • Lynch Educational Consulting, LLC.
      • Dr. Lynch’s Personal Website
        • My Speaking Page
      • Careers
    • Write For Us
    • The Tech Edvocate Product Guide
    • Contact Us
    • Books
    • Edupedia
    • Post a Job
    • The Edvocate Podcast
    • Terms and Conditions
    • Privacy Policy
  • Topics
    • Assistive Technology
    • Child Development Tech
    • Early Childhood & K-12 EdTech
    • EdTech Futures
    • EdTech News
    • EdTech Policy & Reform
    • EdTech Startups & Businesses
    • Higher Education EdTech
    • Online Learning & eLearning
    • Parent & Family Tech
    • Personalized Learning
    • Product Reviews
  • Advertise
  • Tech Edvocate Awards
  • The Edvocate
  • Pedagogue
  • School Ratings
  • A Visitors Guide to Portland (OR), United States

  • 7 Men’s Bruno Marc Shoes That Are the Perfect Christmas Gift

  • A Visitors Guide to Oklahoma City (OK), United States

  • A Visitor’s Guide to Tucson, Arizona, United States

  • A Visitor’s Guide to Hamilton, Canada

  • Beware of Fiverr: You Might Get Scammed

  • The Future of Artificial Intelligence: Navigating the Next Frontier

  • Best Home Backup Generators for 2026

  • Online Learning Platforms: Transforming Education in the Digital Age

  • Fastest Growing Sectors of the EdTech Market: Exploring Emerging Trends

Digital & Mobile Technology
Home›Digital & Mobile Technology›How to Set the $PATH Variable in Linux

How to Set the $PATH Variable in Linux

By Matthew Lynch
June 23, 2023
0
Spread the love

As a Linux user, you may have come across the term “PATH variable” when working with the command line. The $PATH variable is a system variable that determines where the operating system searches for executable files when you run a command.

By default, Linux looks for executable files in the directories specified in the PATH variable. Therefore, it’s essential to set this variable correctly when installing new programs or services to ensure that they are accessible from the command line.

Here are the steps to set the $PATH variable in Linux:

Step 1: Determine the location of the executable file

Before setting the $PATH variable, you need to know the location of the executable file. You can do this by running the following command:

which filename

Replace ‘filename’ with the name of the program or service you want to set the path for. The output will show you the directory location of the file.

Step 2: Set the $PATH variable

Now that you know the location of the executable file, you can set the path. There are two ways to set the $PATH variable temporarily or permanently.

To set the $PATH variable temporarily, run the following command:

export PATH=$PATH:/path/to/directory

Replace ‘/path/to/directory’ with the directory location of the file you wish to add to your PATH. This command will add the directory location to the existing $PATH variable.

To set the $PATH variable permanently, you need to edit the ‘.bashrc’ file in your home directory. You can do this by running the following command:

nano ~/.bashrc

This command will open the ‘.bashrc’ file in the nano text editor. Find the line that starts with ‘export PATH=’ and add the directory location to the end of the list. Here is an example:

export PATH=$PATH:/home/username/bin

Save the file by pressing ‘Ctrl + O’ and exit by pressing ‘Ctrl + X’. You can apply the changes by either opening a new terminal or running the following command:

source ~/.bashrc

This will reload the ‘.bashrc’ file and apply the changes to the $PATH variable.

Previous Article

How to Use Apple Watch Sleep Tracking

Next Article

How Do Computer Network Protocols Work?

Matthew Lynch

Related articles More from author

  • Digital & Mobile Technology

    Fixes for an iPhone Not Receiving Texts

    June 22, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    How to Take Apart Your Xbox One Controller

    June 22, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    What is Dual Core?

    May 6, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    What Is VoLTE, and How Can You Turn It Off?

    June 9, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    Best Free GIF Makers of 2023

    June 6, 2023
    By Matthew Lynch
  • Digital & Mobile Technology

    How to View Saved Wi-Fi Passwords on Android

    June 8, 2023
    By Matthew Lynch

Search

Login & Registration

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

About Us

Since technology is not going anywhere and does more good than harm, adapting is the best course of action. That is where The Tech Edvocate comes in. We plan to cover the PreK-12 and Higher Education EdTech sectors and provide our readers with the latest news and opinion on the subject. From time to time, I will invite other voices to weigh in on important issues in EdTech. We hope to provide a well-rounded, multi-faceted look at the past, present, the future of EdTech in the US and internationally.

We started this journey back in June 2016, and we plan to continue it for many more years to come. I hope that you will join us in this discussion of the past, present and future of EdTech and lend your own insight to the issues that are discussed.

Newsletter

Signup for The Tech Edvocate Newsletter and have the latest in EdTech news and opinion delivered to your email address!

Contact Us

The Tech Edvocate
910 Goddin Street
Richmond, VA 23231
(601) 630-5238
[email protected]

Copyright © 2025 Matthew Lynch. All rights reserved.