Hi Frank

To use df you can set the following alias in your .profile :
alias df='/sbin/df `echo \`cat /proc/mounts | sed "s/ [^/].*$//" | sed "s/^.* //"\``'

Please note the difference between single, double and backquotes ( ' " ` )


The "echo" part is actually superfluous (sp?), and the two sed commands can be joined to make it a bit faster and easier to read. The result is the following alias:
alias df='df       `cat /proc/mounts  | sed "s/ [^/].*$//;s/^.* //"`'
++ | | | | | | | |
call df -------+ +----------+---+ +++ +------+---+ +---+--+
as parameter, output /proc/mounts --+ | | |
use sed to manipulate each line, ------------+ | |
first remove anything following the last "/" ------------+ |
then remove anything before the first " " -------------------------+

Just like you said: Be careful regarding the double / single quotes, back ticks etc.

cu,
sven
_________________________
proud owner of MkII 40GB & MkIIa 60GB both lit by God and HiJacked by Lord