process-managment.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 29 Mar 2009 17:59:05 +0300
changeset 62 4cda4557f554
parent 11 3a895b562a18
child 189 a433d6009641
permissions -rw-r--r--
git SVN tutorial.

-*- mode: outline; coding: utf-8; fill-column: 78 -*-

* Process list.

Warning! ps(1) may not fit column position. To overwrite this set COLUMNS
environment variable or use -w options (use 132 columns to display
information, if the -w option is specified more than once, ps will use as many
columns as necessary without regard for window size).

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