Skip to content

Instantly share code, notes, and snippets.

@sfpprxy
Created August 27, 2020 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sfpprxy/1ee7478b369fa218b4f1d30556deaefa to your computer and use it in GitHub Desktop.
Save sfpprxy/1ee7478b369fa218b4f1d30556deaefa to your computer and use it in GitHub Desktop.
linux PATH
root@shtx ~# su - dodsserver
-su: dircolors: command not found
-su: ls: command not found
dodsserver@shtx:~$ echo
dodsserver@shtx:~$ echo $PATH
{M2_HOME}/bin:{PATH}
dodsserver@shtx:~$ exit
logout
root@shtx ~# sudo su - postgres
postgres@shtx:~$ ls
-su: ls: command not found
postgres@shtx:~$ echo $PATH
{M2_HOME}/bin:{PATH}
postgres@shtx:~$ exit
logout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment