Portal   Forum   Members   Market   Gallery   Events

Stupid Folder

Discussion in 'Help Forum' started by gekko, Dec 26, 2002.

  1. gekko

    gekko Peasant

    Joined:
    Feb 19, 2001
    Messages:
    648
    Likes Received:
    0
    Market Rating:
    0
    One day this folder named 'Desktop' decided to appear on my HD (/Desktop, not /Users/l33tgekko/Desktop). It's owned by me, not root or system or anything, but when I drag it to the trash it says it cannot be deleted. WTF?

    I logged in as root, and I can't delete it that way either, because it's owned by a different user. Umm... any help? It's annoying me.
     
  2. Beeble

    Beeble Peasant

    Joined:
    Jul 16, 2000
    Messages:
    2,699
    Likes Received:
    2
    Market Rating:
    0
    Rename it to pron. It will just sit there making you wish it would magically be full each time you restart the computer.

    I have no clue.
     
  3. cowofwar

    cowofwar Peasant

    Joined:
    Jun 14, 2000
    Messages:
    13,721
    Likes Received:
    18
    Market Rating:
    0
    It's probably the desktop folder belonging to root. Or it's one from os 9, but not classic.
     
  4. Haite

    Haite Forum Moderator

    Joined:
    Jan 29, 2001
    Messages:
    9,325
    Likes Received:
    34
    Market Rating:
    0
    Uh, root should be able to delete anything owned by anyone.

    I would think it probably is root's desktop folder like cow said.
     
  5. cowofwar

    cowofwar Peasant

    Joined:
    Jun 14, 2000
    Messages:
    13,721
    Likes Received:
    18
    Market Rating:
    0
    sudo rm -rf /desktop

    I take no blame for you messing up your computer.
     
  6. gekko

    gekko Peasant

    Joined:
    Feb 19, 2001
    Messages:
    648
    Likes Received:
    0
    Market Rating:
    0
    YOU DID IT! :bowdown:cowofwar

    I've had to do that crap before, but I forgot the command. I always went to Auto when I needed it.
     
  7. cowofwar

    cowofwar Peasant

    Joined:
    Jun 14, 2000
    Messages:
    13,721
    Likes Received:
    18
    Market Rating:
    0
    Sweet, I got it correct. At least you didn't sudo rm -rf / desktop

    don't do that
     
  8. Mentosman24

    Mentosman24 Peasant

    Joined:
    Dec 3, 2001
    Messages:
    1,625
    Likes Received:
    0
    Market Rating:
    0
    with the extra space between "/" and "desktop" ?
     
  9. cowofwar

    cowofwar Peasant

    Joined:
    Jun 14, 2000
    Messages:
    13,721
    Likes Received:
    18
    Market Rating:
    0
    Yeah, I don't want to test it but it should just ignore the desktop part and rm -rf /
     
  10. harleyb

    harleyb Peasant

    Joined:
    Aug 12, 2002
    Messages:
    866
    Likes Received:
    9
    Market Rating:
    0
    it'll delete your entire drive, and try to delete the file or folder called desktop in your pwd. the initial pwd is your home directory, so it'd delete your desktop folder, but it wouldn't really matter cause it'd delete your entire disk, too. i tried to trash /etc/httpd/httpd.conf, so i could replace it with a modified version, but i accidentally had a space between /etc and /httpd/httpd.conf. shut down as soon as i realized what i did and reinstalled OSX...
    i'd also like to recommend the book Mac OS X Unleashed to anyone who wants to learn anything about the inner workings of OSX... i'm pretty sure the somewhat-recently-released second edition covers 10.2. the original only covers 10.1, but it's still immensely useful.

    edit: added book link
     
  11. Strader

    Strader Peasant

    Joined:
    Jan 29, 2002
    Messages:
    2,718
    Likes Received:
    0
    Market Rating:
    0
    This has been a paid advertisement.
     

Hitometer: 53,936,608 since 1995