process-managment.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 09 Dec 2008 11:53:54 +0200
changeset 7 f34d3dadc008
parent 6 7c1ebbeff69f
child 11 3a895b562a18
permissions -rw-r--r--
up

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