Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Deleting Trash from the Terminal

  • 02-12-2011 12:39PM
    #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