Quote:
Originally Posted by kodomo
You possibly would, if you were unsure whether the FS is mounted (or where) and you don't want to get the info about the wrong FS (but they obviously don't consider this in this place, or they would have at least quoted their variable, and written an if-statement :P)
|
You don't need to use an if-statement. 'df' returns a zero exit status if everything worked out correctly, and a non-zero exit-status if no FS was mounted.
And if you don't know where the FS is mounted, then what's the point of all this?