Skip to main content
1 of 2
ohno
  • 417
  • 3
  • 6

When a process is started it is done via the system call exec(). The first argument to this call can be chosen arbitrarily, by usually it is the name of the program to be executed. (After this follows the real path to the executable and other stuff). This first argument is what you see in ps.

By convention, login shells are started with a "-" prepended to this name.

ohno
  • 417
  • 3
  • 6