Ps (Unix)

ps (für process status) ist ein Unix-Kommando, das eine Liste aller Prozesse, welche momentan laufen oder sich im Zombie-Status befinden, auf dem Bildschirm ausgibt.
Der Befehl ist mindestens seit der Unix-Version V3 verfügbar. Häufig verwendete Aufrufparameter sind „ax“ oder auch „-ef“ (je nach Unix-Derivat). Diese bewirken eine Auflistung aller Prozesse einschließlich der jeweiligen Befehlszeile.
Die Ausgabe des Kommandos hat folgende Bedeutung:
- PID
- Unique Process ID
- SIZE
- Größe auf dem Virtuellen Speicher (Programm + Heap + Stack)
- RSS
- Resident Set Size, ist die Größe des Prozesses im Speicher. Hier werden im Gegensatz zu SIZE nicht die shared libraries hinzugezählt
- TTY
- Terminal, aus welchem der Prozess gestartet wurde
- STAT
- Information zum aktuellen Status des Prozesses
Unter Microsoft Windows gibt es ein ähnliches Tool namens tasklist.exe.
Anwendungsbeispiel
[slave@pc-x1y3z7 ~]$ ps -C nfsd
Zeigt alle Instanzen des NFS-Daemon auf einem System.
Siehe auch
Weblinks
ps: report process status – Open Group Base Specificationps(1): display process status – OpenBSD General Commands Manualps(1): report a snapshot of the current processes – Debian GNU/Linux Ausführbare Programme oder Shell-Befehle Handbuchseite
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.