Empty recyclebin/trash from command line

Some time we need to empty the trash folder when we are working on terminal. you can simple do this using the following command.

rm -rf ~/.Trash

to delete other user trash, use:

sudo rm -rf /Users/user_name/.Trash

*to delete other users trash, you have to use sudo.

VN:F [1.9.3_1094]
Rating: 9.7/10 (3 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
Empty recyclebin/trash from command line, 9.7 out of 10 based on 3 ratings number of view: 1244
  • Share/Bookmark

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

1 comment to Empty recyclebin/trash from command line

  • What the hell!!

    Hold on a second, Do I have to mess up with all these codes and command lines in Mac just like I have to in Ubuntu? :O If yes, then no wonder I would love to stick with win7. Hate command lines.

    [Reply]

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>