How to move file(s) to trash from shell script?

Discussion in 'OS X' started by quadroid, Oct 18, 2011.

  1. macrumors newbie

    Joined:
    Apr 26, 2011
    Location:
    Kiev
    #1
    Can simple
    mv ~/some-file.txt ~/.Trash
    but in this way I can't restore it from Finder, context menu item "Put Back" disappeared:(
     

Share This Page