System commands access the wrong directory

Solution or Workaround


When 'ls' or 'pwd' is typed at the Arc: prompt, it lists the contents of the home directory.


This is caused by having a 'cd' line in the .cshrc file.

A 'cd' line may have been placed in the .cshrc file to display the current location, or to remove the '/tmp_mnt' string that the automounter adds to the returned pathname. Arc sub-processes that access the system (any command submitted to the operating system: ls, &DATA, &SYS, etc.) re-execute the .cshrc file; thus, if 'cd' is found in the .cshrc file, the Arc sub-process returns to the home directory before executing.

Article ID:000001253

  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic