Access Keys:
Skip to content (Access Key - 0)

What is the difference between "add" and "attach"?

"add" is not really a command, but an alias that is defined by the standard athena dotfiles. The difference between "add" and "attach" is that "attach" only attaches the locker that you specify, whereas "add" does the following:

  • attaches the locker
  • extends your "PATH" environment variable to include /mit/lockername/arch/$ATHENA_SYS/bin or /mit/lockername/$bindir if /mit/lockername/arch/$ATHENA_SYS/bin does not exist
  • extends your "MANPATH" environment variable to include /mit/lockername/man

Thus, if you use "add", you will be able to run programs from the
/mit/locker/arch/$ATHENA_SYS/bin directories, and also access the
manual pages in the locker, both without having to specify the path.

	attach graphics
	man -M/mit/graphics/man xloadimage


	add graphics
	man xloadimage

Some lockers still use the old /mit/lockername/$bindir convention and other lockers may use both conventions. The /mit/lockername/arch/$ATHENA_SYS/bin convention is preferred.

Basically, you should use the "add" command whenever you need to run software out of a locker. If you only need to read or write files to a locker (for example, updating your group's web page, or getting files from a friend's "Public" directory), you should use the "attach" command.

IS&T Contributions

Documentation and information provided by IS&T staff members

Last Modified:

March 09, 2009

Get Help

Request help
from the Help Desk
Report a security incident
to the Security Team
olc-afs olc-afs Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
This product/service is:
Easy to use
Difficult to use

This article is:
Adaptavist Theme Builder (4.2.3) Powered by Atlassian Confluence 3.5.13, the Enterprise Wiki