2018年10月6日土曜日

Howto eject usb media like "Safely Remove Drive" from CLI

gio mount --eject /media/nekomatu/$(drive-name)

I use Ubuntu 18.04(Bionic).
Ubuntu is doing mount automatically when USB removal media is connected PC.It's convinient. and un-mount is easy. only one-click eject button from filer. so I want to eject like filer from CLI.



0 件のコメント:

コメントを投稿