Which of the following is a valid way to add the /data directory to the existing PATH variable?

Which of the following is a valid way to add the /data directory to the existing PATH variable?Category: Introduction to Linux IWhich of the following is a valid way to add the /data directory to the existing PATH variable?
Linux Questions Staff asked 1 year ago

Which of the following is a valid way to add the /data directory to the existing PATH variable?

  • PATH=$PATH:/data
  • PATH=/data
  • $PATH=/data
  • $PATH=$PATH:/data

About the author