Alias a full path in ksh

Hi again,

Maybe a stupid question but I don't know how to solve it..

I want to alias a full_PATH_command.. I mean:

/usr/bin/df -Ik TO sudo /usr/bin/df

I used alias df='sudo df' but the command run is /usr/bin/df..

Any idea on how to make this alias?

Thanks

You can't. Aliases cannot contain / . Fix the offending script instead.

Does df really need sudo on your system?

well, there's a critical filesystem which NOBODY can touch :-)... so, some users needs sudo... I though alias could solve my problem.. but :frowning: