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

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

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

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

About the author