up
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 09 Dec 2008 11:53:54 +0200
changeset 7 f34d3dadc008
parent 6 7c1ebbeff69f
child 8 4d076dec0047
up
process-managment.rst
--- a/process-managment.rst	Tue Dec 09 10:08:14 2008 +0200
+++ b/process-managment.rst	Tue Dec 09 11:53:54 2008 +0200
@@ -1,32 +1,59 @@
--*- outline -*-
-
-* Process list.
-
-** FreeBSD.
-
-View current user process:
-
-  $ ps
-
-View all running process:
-
-  $ ps -ax
-
-** Linux.
-
-View current user process:
-
-  $ ps
-
-View all running process:
-
-  $ ps -e
-
-** Solaris.
-
-TODO
-
-* Killing process.
-
-TODO
-
+-*- outline -*-
+
+* Process list.
+
+** FreeBSD.
+
+View current user process:
+
+  $ ps
+
+View all running process:
+
+  $ ps -ax
+
+** Linux.
+
+View current user process:
+
+  $ ps
+
+View all running process:
+
+  $ ps -e
+
+** Solaris.
+
+TODO
+
+* Process info.
+
+Show user, pid, ppid, pgid, sid, jobc, state, time, command, etc.
+
+** Linux.
+
+  $ ps -f <id>
+
+** FreeBSD.
+
+  $ ps -j <id>
+
+or
+
+  $ ps -l <id>
+
+* Killing process.
+
+TODO
+
+* Run as another user.
+
+** Linux.
+
+  $ su - <user>
+  $ <command>
+
+or
+
+  $ sudo -u <user> -i <command>
+