--- 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>
+