mirror of
https://github.com/chubin/cheat.sheets
synced 2024-11-15 06:12:59 +00:00
18 lines
484 B
Plaintext
18 lines
484 B
Plaintext
# /proc is a pseudo-filesystem containing running process information and more.
|
|
|
|
# See the commandline arguments that started the process
|
|
cat /proc/<pid>/cmdline
|
|
|
|
# See the process's environment variables
|
|
cat /proc/<pid>/environ
|
|
|
|
# See the process's status and usage information
|
|
# such as CPU and memory
|
|
cat /proc/<pid>/status
|
|
|
|
# See every file the process has open
|
|
ls -l /proc/<pid>/fd
|
|
|
|
# Display some useful memory statistics, often used by programs like htop(1).
|
|
cat /proc/meminfo
|