From 6530225403a96a29d71e82394be711fb3a296997 Mon Sep 17 00:00:00 2001 From: Nic Acton Date: Tue, 5 Nov 2019 20:46:45 -0500 Subject: [PATCH 1/2] sheet for /proc pseudo-directory Feel like there's good use. There's a `man proc` so this can do that as well. --- sheets/proc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sheets/proc diff --git a/sheets/proc b/sheets/proc new file mode 100644 index 0000000..38e3284 --- /dev/null +++ b/sheets/proc @@ -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//cmdline + +# See the process's environment variables +cat /proc//environ + +# See the process's status and usage information +# such as CPU and memory +cat /proc//status + +# See every file the process has open +ls -l /proc/fd From 3bb0fbb1c8f4b57c404e807b3f6b7cf191d5a14a Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Wed, 6 Nov 2019 08:43:26 +0100 Subject: [PATCH 2/2] Added missing / --- sheets/proc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sheets/proc b/sheets/proc index 38e3284..af1bdbf 100644 --- a/sheets/proc +++ b/sheets/proc @@ -12,4 +12,4 @@ cat /proc//environ cat /proc//status # See every file the process has open -ls -l /proc/fd +ls -l /proc//fd