pavement

Ps

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
[[ps]] will show your running processes. If run from a regular user shell or an xterm window, it'll only show you '''your''' processes. If run as root, it will show ''all'' processes.
 
[[ps]] will show your running processes. If run from a regular user shell or an xterm window, it'll only show you '''your''' processes. If run as root, it will show ''all'' processes.
  
There were different switches used in different versions of [[ps]] -- historically, [[SysV]] needs the '''-ef''' switches to show all processes and [[BSD]] needed '''-aux'''. [[ps]] is now smarter and will accept either switch and show you what you wanted to see.
+
There were different switches used in different versions of [[ps]] -- historically, [[SysV]] needs the '''-ef''' switches to show all processes and [[BSD]] needed '''-aux'''. [[ps]] is now smarter and will accept either switch and show you what you wanted to see. It is, however, a good idea to feed [[ps]] the switches with no hyphen in front of them - ie '''ps aux''' - because while FreeBSD understands either syntax, Linux only understands the latter.
 +
 
 +
[[Category:System Commands]]

Revision as of 19:29, 25 August 2004

ps will show your running processes. If run from a regular user shell or an xterm window, it'll only show you your processes. If run as root, it will show all processes.

There were different switches used in different versions of ps -- historically, SysV needs the -ef switches to show all processes and BSD needed -aux. ps is now smarter and will accept either switch and show you what you wanted to see. It is, however, a good idea to feed ps the switches with no hyphen in front of them - ie ps aux - because while FreeBSD understands either syntax, Linux only understands the latter.

Personal tools