Home  /  Resources & support  /  FAQs  /  Environment variables recognized by Stata for Unix

What environment variables does Stata recognize?

Title   Environment variables recognized by Stata for Unix
Author Alan Riley, StataCorp

  • HOME — User's home directory. Default is the directory specified in /etc/passwd.
  • PATH — Unix executable search path.
  • SHELL — to execute when user tries to shell out of Stata. Default is /bin/sh.
  • S_ADO — Stata’s ado-path. Default is UPDATES;BASE;SITE;.;PERSONAL;PLUS;OLDPLACE (mapping of these keywords to real directories can be seen by typing sysdir in Stata)
  • STATATERM — used if you want to use a different termcap or terminfo entry than what is in your TERM environment variable.
  • STATATMP — sets Stata’s temporary directory. Default is /tmp.