Back
Close

Computing with Data

elgeish
31.4K views
Previous: Listing Directory Contents Next: Compression in Linux

The PATH Environment Variable

# show path to file matching command ls
which ls
# display PATH variable (note the current directory is the third
# directory in the list below, denoted by the period notation)
echo $PATH
# add the directory /home/joe/bin to PATH
export PATH=$PATH:/home/joe/bin
echo $PATH
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants