System commands access the wrong directory

Last Published: April 25, 2020

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

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options