Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Deleting Trash from the Terminal

  • 02-12-2011 11:39AM
    #1
    Closed Accounts Posts: 6,408 ✭✭✭


    Hi there,
    I'm trying to dump the trash from my computer.
    Have tried the following :

    Option > Empty Trash -- No Joy.

    open terminal:
    $ cd .Trash 
    rm -rf *
    
    No Joy.

    $sudo rm -Rf ~/.Trash/*
    
    No Joy.

    The reply I get is
    rm: illegal option -- *
    usage: rm [-f | -i] [-dPRrvW] file ...
           unlink file
    


    Can anybody explain to what's going on here? Thanks..


Comments

  • Registered Users, Registered Users 2 Posts: 142 ✭✭Padgeman


    studiorat wrote: »
    Hi there,
    I'm trying to dump the trash from my computer.
    Have tried the following :

    Option > Empty Trash -- No Joy.

    open terminal:
    $ cd .Trash 
    rm -rf *
    
    No Joy.

    Can anybody explain to what's going on here? Thanks..

    I would try:
    $ cd ~/.trash
    sudo rm -rf *.*
    

    Is it saying that some files can't be deleted? If so, I would delete the file individually by using "sudo rm -rf file" instead of using *.*.


Advertisement