This command:
$ df
Filesystem 1K-blocks Used accessible Use% Mounted on
/dev/sda2 14610964 6682044 7186720 49% /
(...)
Works very well, shows space usage for all devices. But this one doesn't work:
$ df /dev/sda2
df: `/dev/sda2': Permission denied
df: no file systems processed
But, it works when implemented by root:
$ sudo df /dev/sda2
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 14610964 6682044 7186720 49% /
Why is it so? If I can make out space left on ALL devices, why cannot I make out it on a particular one? It's not logical, df -h without added parameters gives me additional information after all.



Reply With Quote
Copyright Techfuels
Bookmarks