GNU Linux bash - get root partition
lsb_release -d Description: Debian GNU/Linux 11 (bullseye) su - root df -m | grep " \+/$" | awk '{print $1;}' # because of a bug, runnig it as as non-root: results into df: /run/user/1000/doc: Operation not permitted
#linux #gnu #gnulinux #opensource #administration #sysops
Originally posted at: https://dwaves.de/2022/04/03/gnu-linux-bash-get-root-partition/
There are no comments yet.