News for hackers. Stuff that matters.
Re:Hiding Linux Processes with Bind Mounts by amelius on Thursday July 25, 2024 @09:57AM (#41068752)
What I want to hide is mounts. With containers, snap (squashfs), etc., the number of mounts on a modern Linux system is growing to ridiculous numbers. And why should they all be visible to normal users?
Re:Hiding Linux Processes with Bind Mounts by jgneff on Thursday July 25, 2024 @11:16AM (#41069677)
Try this in your '.bash_aliases' file, for example:

  alias df='df -t vfat -t ext4'
Re:Hiding Linux Processes with Bind Mounts by amelius on Thursday July 25, 2024 @11:52AM (#41070084)
Thanks, but I don't want to accidentally miss other filesystems.

I just checked and there is also an exclude option. This comes close to what I want:

    df -x tmpfs -x squashfs -x devtmpfs