Procfs
procfs (Abkürzung für process filesystem, übersetzt ‚Prozessdateisystem‘) ist ein virtuelles Dateisystem auf meist unixoiden Systemen. Es dient zur Anzeige und Änderung von System- und Prozessparametern. Üblicherweise wird es in der Verzeichnisstruktur unter /proc eingebunden. Es wird vom Kernel während des Bootvorgangs dynamisch erzeugt und nicht gespeichert.
Geschichte
Das erste /proc wurde von Tom J. Killian in der achten Unixversion eingeführt. Das heutige procfs hat seinen Ursprung im Betriebssystem Plan 9, von wo es, ähnlich UTF-8, in andere Betriebssysteme übernommen wurde. Es folgt der Unix-Philosophie „Alles ist eine Datei“, da sämtliche Informationen in virtuellen Dateien vorhanden sind.
Linux
Prozesse
Unter Linux erhält jeder Prozess ein Verzeichnis nach dem Format /proc/PID. In diesem sind verschiedene virtuelle Dateien enthalten, die Daten über den Prozess bereitstellen.
Systeminformationen
procfs stellt zahlreiche Informationen über verschiedenste Teile des Computers zur Verfügung. Seit dem Kernel 2.6 werden viele Teile in das ebenfalls virtuelle Dateisystem sysfs verschoben.
Beispielsweise enthält die Datei /proc/cpuinfo ausführliche Informationen über den Prozessor.
Weblinks
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.