The command PATH=$PATH:/home/John does the following:

The command PATH=$PATH:/home/John does the following:Category: Introduction to Linux IIThe command PATH=$PATH:/home/John does the following:
Linux Questions Staff asked 1 year ago

The command PATH=$PATH:/home/John does the following:

  • Creates a new PATH variable with only the /home/John directory as the value
  • Does nothing, because anything after the : is discarded
  • Appends the directory /home/John to the existing PATH variable
  • Replaces the existing directories in the PATH with the /home/John directory

About the author