cannot rm dir

This is a discussion on cannot rm dir within the Linux Programming forums, part of the Platform Specific Boards category; I was creating a folder to store my test scripts on AIX. I used the following command to create a ...

  1. #1
    Registered User oval's Avatar
    Join Date
    Jan 2006
    Location
    Texas
    Posts
    10

    Wink cannot rm dir

    I was creating a folder to store my test scripts on AIX. I used the following command to create a directory:

    mkdir shell scripts

    What I did not do is place an underscore between shell and scripts. Well it created 2 directories. I want to remove them, but every time I type:

    rm shell or rm scripts it tells me

    rm: 0653-603 Cannot remove directory shell

    or

    rm: 0653-603 Cannot remove directory scripts

    Also, I chmod 777 on both directories and rm still did not work.

    All help is appreciated.

    Thanks.


    =============================================

    Never mind, this was a probably a dumb question. I just found out that the command to complete the rm is:

    rm -r dir

    Hopefully this will help any new guys out there like me who are still learning the *nix systems.
    Last edited by oval; 03-23-2006 at 08:00 AM.

  2. #2
    C/C++Newbie Antigloss's Avatar
    Join Date
    May 2005
    Posts
    212
    Well, rmdir is used to del dirs

  3. #3
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    or rm -r

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem With Code In Ubuntu ,please Help Me
    By krisvamc in forum C Programming
    Replies: 2
    Last Post: 04-12-2007, 11:55 PM
  2. Problem With Code In Ubuntu ,please Help Me
    By krisvamc in forum Linux Programming
    Replies: 0
    Last Post: 04-12-2007, 05:08 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21