From: Oleg Broytman Date: Fri, 12 Jun 2020 14:17:08 +0000 (+0300) Subject: Feat: Add `cgmem_which` X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=8fb8aca8fa89a88c48f75addae7b2722f675671d Feat: Add `cgmem_which` Show in what memory control group the current shell is. --- diff --git a/bin/cgmem_which b/bin/cgmem_which new file mode 100755 index 0000000..81ef03f --- /dev/null +++ b/bin/cgmem_which @@ -0,0 +1,2 @@ +#! /bin/sh +grep -Flw $$ /sys/fs/cgroup/*/tasks | cut -d/ -f5