rm command

Discussion in 'Linux' started by Darryl, Sep 8, 2008.

  1. Darryl

    Darryl

    Joined:
    Sep 1, 2008
    Messages:
    308
    Likes Received:
    0
    can anybody tell me what this command removes? briefly to a newbie :roll:
    sudo rm -rf $(find /usr/share/locale/* -type d | egrep -v \/en)
     
    Darryl, Sep 8, 2008
    #1
  2. Darryl

    jukk

    Joined:
    Jul 31, 2008
    Messages:
    54
    Likes Received:
    0
    It will remove all directories recursively, within the above directory, that do not contain the word 'en'.

    Or just run 'find /usr/share/locale/* -type d | egrep -v \/en' in a terminal to see which directories will be deleted.

    You will see that they contain translations to different languages for applications.
     
    jukk, Sep 8, 2008
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.