2
0
mirror of https://github.com/chubin/cheat.sheets synced 2024-11-19 03:25:44 +00:00

Merge pull request #80 from tuffacton/master

sheet for /proc pseudo-directory
This commit is contained in:
Igor Chubin 2019-11-06 08:43:43 +01:00 committed by GitHub
commit 21739f72f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
sheets/proc Normal file
View File

@ -0,0 +1,15 @@
# /proc is a pseudo-file system location that
# contains information about a running process by PID
# 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