process-managment.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 09 Dec 2008 11:58:37 +0200
changeset 8 4d076dec0047
parent 7 f34d3dadc008
child 11 3a895b562a18
permissions -rw-r--r--
Update coding.

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