A certain command in Terminal

Discussion in 'iPod touch' started by EBOBO, Aug 28, 2009.

  1. EBOBO

    EBOBO New Member

    Joined:
    Apr 5, 2009
    Messages:
    530
    Likes Received:
    0
  2. iBoss™

    iBoss™ Banned

    Joined:
    Aug 15, 2009
    Messages:
    1,057
    Likes Received:
    0
    Device:
    2G iPod touch
    I believe it would have something to do with deleting a file/ folder as it contains the rm -rf which means (I believe) it's for force deleting a file or folder.

    As for the sudo thing, I have no idea
  3. LssThanThree

    LssThanThree Active Member

    Joined:
    Jan 21, 2009
    Messages:
    1,943
    Likes Received:
    3
    Device:
    iPhone 5 (Black)
    This command Sudo RM destroys your system!
    It deletes everything!
    Sudo get's you into root
  4. EBOBO

    EBOBO New Member

    Joined:
    Apr 5, 2009
    Messages:
    530
    Likes Received:
    0
    Would DFU restore save you? Or would you have to bring the Touch in to Apple for a replacement? Could they tell that you're jailbroken after the command is executed?
  5. wyndwarrior

    wyndwarrior Active Member

    Joined:
    Jun 8, 2009
    Messages:
    1,433
    Likes Received:
    1
    Device:
    3G iPod touch
    You could just DFU+Restore. sudo rm -rf / just deletes everything in your iPod.
  6. Salamantis

    Salamantis New Member

    Joined:
    May 21, 2008
    Messages:
    255
    Likes Received:
    0
    Device:
    2G iPod touch
    You can *always* DFU, except in case of some hardware failure. That UNIX command gives you elevated permissions (superuser do)and with those just removes every file on your iPod, rendering the software useless. A DFU restore will just recreate the deleted system files and bring it back to life.
  7. Shawa

    Shawa Super Moderator

    Joined:
    Jan 31, 2009
    Messages:
    3,188
    Likes Received:
    22
    Device:
    Nexus 4
    Breakdown:
    sudo - Super User DO - run command as root
    rm - remove - Delete
    -rf - Flag to repress/ignore any warnings, recurse (apply command to all files in all directories.)
    / - directory to be removed.

    This is sometimes considered to be 'The Big Red Button' command, relentlessly deleting any directory specified. Placing a wildcard "*" after the forward slash will delete everything. DFU Restore will fix it thought.
  8. EBOBO

    EBOBO New Member

    Joined:
    Apr 5, 2009
    Messages:
    530
    Likes Received:
    0
    Oh, thanks.

    /thread
  9. Salamantis

    Salamantis New Member

    Joined:
    May 21, 2008
    Messages:
    255
    Likes Received:
    0
    Device:
    2G iPod touch
    Actually -f is just to surpress warnings, -r means recursive and essentially says "delete everything inside directories of the directory you specified".
  10. EBOBO

    EBOBO New Member

    Joined:
    Apr 5, 2009
    Messages:
    530
    Likes Received:
    0
    @Salamantis: Wouldn't it be -r -f then?

Share This Page