Michael
Michael

Reputation: 42050

Unmount all samba file systems

Suppose I need to unmount all samba mounted remote file systems. I can do it as follows:

df -T | grep cifs | awk '{print "sudo umount", $7}' | sh

It works but looks a bit awkward. Using awk to create a command and pass it to sh for execution does not seem the right way to do things.

Upvotes: 3

Views: 1415

Answers (1)

hlovdal
hlovdal

Reputation: 28180

I assume

sudo umount -a -t cifs

would do the same thing?

Upvotes: 6

Related Questions