Comment by lake99

13 years ago

Over here, on Linux-land, I used to have PS-envy whenever I thought about the PowerShell. You cured me!

Though I don't use Trash/Recycle myself, to contrast, I like the simplicity of

    rm -rf ~/.local/share/Trash/info ~/.local/share/Trash/files

Commands like Remove-Item have familiar aliases like rm by default. If you see code in tools like Psake, etc. it would be very verbose, because the intention is to have readable code. But you sure can use the aliases for everyday use.

In GNOME:

  dbus-send --print-reply --dest=org.gnome.Nautilus \
  /org/gnome/Nautilus \
  org.gnome.Nautilus.FileOperations.EmptyTrash