PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Prozesse



keiner_1
01.07.02, 14:29
Hallo Geeks/Nerds

bitte schreibt alle Befehle auf die euch zum Thema Prozesse in den Sinn kommen...

hier ein geniales t00l

# pstree
init-+-bdflush
|-crond
|-2*[dhcpcd]
|-gpm
|-11*[kdeinit]
|-kdeinit---kghostview---gs
|-2*[kdesud]
|-keventd
|-khubd
|-2*[kjournald]
|-ksoftirqd_CPU0
|-kswapd
|-kupdated
|-login---bash---startx---xinit-+-X
| `-fluxbox-+-2*[konqueror]
| |-3*[xterm---bash]
| `-xterm---bash---su---bash
|-login---bash---startx---xinit-+-X
| `-fluxbox-+-konqueror
| `-4*[xterm---bash]
|-mdrecoveryd
|-4*[mingetty]
|-scsi_eh_0
|-sshd---sshd---bash---su---bash---pstree
|-syslog-ng
|-xfs
`-xinetd


hier gibts zusätzlich noch interessante Optionen

OPTIONS
-a Show command line arguments. If the command line of a process is swapped out, that process is shown in parenthe_
ses. -a implicitly disables compaction.

-c Disable compaction of identical subtrees. By default, subtrees are compacted whenever possible.

-G Use VT100 line drawing characters.

-h Highlight the current process and its ancestors. This is a no-op if the terminal doesn't support highlighting or
if neither the current process nor any of its ancestors are in the subtree being shown.

-H Like -h, but highlight the specified process instead. Unlike with -h, pstree fails when using -H if highlighting
is not available.

-l Display long lines. By default, lines are truncated to the display width or 132 if output is sent to a non-tty or
if the display width is unknown.

-n Sort processes with the same ancestor by PID instead of by name. (Numeric sort.)

-p Show PIDs. PIDs are shown as decimal numbers in parentheses after each process name. -p implicitly disables com_
paction.

-u Show uid transitions. Whenever the uid of a process differs from the uid of its parent, the new uid is shown in
parentheses after the process name.

-U Use UTF-8 (Unicode) line drawing characters. Under Linux 1.1-54 and above, UTF-8 mode is entered on the console
with echo -e '\033%8' and left with echo -e '\033%@'

-V Display version information.


greetz
adme

msi
01.07.02, 15:14
killall
killall5 (alle Prozesse killen)
ps ax (kennt jeder)
top
dcop (für KDE)

msi
01.07.02, 15:15
pidof

SeeksTheMoon
01.07.02, 15:58
etwas ausführlicher als pidof ist
ps -A | grep PROZESSNAME

phoen][x
01.07.02, 17:20
'apropos processes'

-phoen][x-

Foxingtion
12.05.03, 18:25
Und mit welchem Befehl kann ich dir Priorität eines laufenden Programmes/Dienstes herunterstellen, ohne das Programm zu beenden?

zander
12.05.03, 18:30
nice(1)

sepp2k
12.05.03, 18:32
@zander: seit wann kann man mit nice die Priorität eines laufenden Prozesses ändern? :confused:

zander
12.05.03, 18:33
Mein Fehler; siehe renice(8).

sepp2k
12.05.03, 18:35
Cool, renice kannte ich noch nicht *SichDenBefehlNotier*

Foxingtion
12.05.03, 18:43
Super, vielen Dank für den Hinweis...

zander
12.05.03, 18:46
Bitteschön.

msi
12.05.03, 19:03
si (detaillierte ausgabe zu allem in /proc)

Foxingtion
12.05.03, 19:05
Nur noch mal ne Frage:

renice PID -10 (als Beispiel für die Priorität)

Versteh ich das so richtig?

msi
12.05.03, 19:05
ls -l /proc/[pid]
da kann man auch noch einige information über die prozesse sehen: root-dir, aktuelles dir, status, ausgeführte datei etc.

chroot: prozessen anderes root verzeichnis geben.

zander
13.05.03, 05:43
renice -10 [-p] PID (renice priority [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]); die Handbuchseite erläutert das ausführlich (inklusive umfangreicherem Beispiel).

bernie
13.05.03, 08:38
Hi,

Ich weiss nicht obs hier direkt reinpasst, aber mit
netstat -anp
kann man rausfinden welcher Port von welchem Prozess verwendet wird.

Ciao, Bernie