w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Linux skip /root/.gvfs when executing df command with non-root user

I got the solution for my own question :)

In df command you can pass the file system types which you would like to exclude, in this case it is 'fuse.gvfs-fuse-daemon'.

So when I execute the below the command I no more get this message "df: `/root/.gvfs': Permission denied"

df -x fuse.gvfs-fuse-daemon

For more details one can look into df --help option.

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.