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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

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