Results 1 to 7 of 7

Thread: Darwin Commands

  1. #1
    CyberCandy
    Guest
    Talking Darwin Commands
    Hi all! I have been reading through this fourm and luckily have found many answers to my questions, so thanks go out to all of you for using this forum. Murlyn has been giving a few Darwin command that has been helpful and I was wondering where I might find a list of these commands, or are they just a secret kept by the great wizard? Most of the info I have found on the apple site goes into the delevoper side of it. I am an end-user not a developer, if you catch my drift... Any help would be appreciated.

    CC

  2. #2
    masaka___
    Guest
    Quote Originally Posted by CyberCandy
    Murlyn has been giving a few Darwin command that has been
    helpful and I was wondering where I might find a list of these commands, or are
    they just a secret kept by the great wizard?
    CC
    Type these lines in the terminal to get a list:

    ls -l /usr/bin
    ls -l /Developer/Tools

    To learn more about the individual commands, use the `man` command:

    # learn more about ls
    man ls

    # learn more about gcc
    man gcc

    # learn more about GetFileInfo
    man GetFileInfo

    # learn more about sudo
    man sudo

    # learn more about wget
    man wget


    etc., etc., etc...... .. .. .

  3. #3

    cradom's Avatar
    Member Since
    Feb 14, 2004
    Location
    Groves, Texas
    Posts
    4,614
    Specs:
    21in. iMac 10.11 --- HP Linux Mint 18
    Try this:
    lsof -i
    gives open internet connections. without -i gives all open files
    <good advice> get a book on linux </good advice>

  4. #4
    CyberCandy
    Guest
    unlink file
    Graphite and Murlyn you two are the best! Thanks for the nice words in general discussion... NOW I went out and bought myself a book and have been reading all about Terminal and Unix commands and actually worked my way up to a brick wall. hehehehe No really, I am using retrospect to archive my files and the archive volume is locked when it is archived. With the old OSs there was no problem with deleting them... just went to sharing and unlocked it. Not with OSX tho as I well know. Tha brings me back to the Terminal. The file I am trying to delete has a file mode code of drwxrwxrwx, so from what I have read, I should have open range on moving it or deleting it right? Wrong, it won't let me...SO I kept reading and used the sudo rm -r plus the file name and it asked tor my password. I thought "Yippie! I've done it!" and with much anticipation hit the enter key. WHAT? NO NO say it isn't so! (here is what I got).

    [localhost:~] digitallydone% sudo rm -r/Users/digitallydone/ARCH\ 4:2002
    Password:
    rm: illegal option -- /
    usage: rm [-f | -i] [-dPRrvW] file ...
    unlink file

    Unfortunately, I can't find anything about unlink file in the book I have... help?

  5. #5
    masaka___
    Guest
    You need a space after the -r .

  6. #6


    Member Since
    Jan 21, 2005
    Posts
    54
    Quote Originally Posted by CyberCandy
    Graphite and Murlyn you two are the best! Thanks for the nice words in general discussion... NOW I went out and bought myself a book and have been reading all about Terminal and Unix commands and actually worked my way up to a brick wall. hehehehe No really, I am using retrospect to archive my files and the archive volume is locked when it is archived. With the old OSs there was no problem with deleting them... just went to sharing and unlocked it. Not with OSX tho as I well know. Tha brings me back to the Terminal. The file I am trying to delete has a file mode code of drwxrwxrwx, so from what I have read, I should have open range on moving it or deleting it right? Wrong, it won't let me...SO I kept reading and used the sudo rm -r plus the file name and it asked tor my password. I thought "Yippie! I've done it!" and with much anticipation hit the enter key. WHAT? NO NO say it isn't so! (here is what I got).

    [localhost:~] digitallydone% sudo rm -r/Users/digitallydone/ARCH\ 4:2002
    Password:
    rm: illegal option -- /
    usage: rm [-f | -i] [-dPRrvW] file ...
    unlink file

    Unfortunately, I can't find anything about unlink file in the book I have... help?
    And the thing you're attempting to remove isn't a file, it's a directory. hence the permissions you mentioned:

    drwxrwxrwx

    The 'd' to the left means it's a directory. You can remove a directory (and all its contents) with this command:

    rm -Rf dirname

    But be VERY sure you know what you're doing as it will trash everything under that directory.
    http://powerusers.info
    Power Tools, for Power Users

  7. #7

    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    Quote Originally Posted by CyberCandy
    [localhost:~] digitallydone% sudo rm -r/Users/digitallydone/ARCH\ 4:2002
    Password:
    rm: illegal option -- /
    usage: rm [-f | -i] [-dPRrvW] file ...
    unlink file

    Unfortunately, I can't find anything about unlink file in the book I have... help?
    The reason you received an error is you forgot to put a space between the r and the slash (.i.e r/).
    Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Terminal Commands
    By Destructive in forum OS X - Development and Darwin
    Replies: 11
    Last Post: 02-19-2008, 10:41 PM
  2. Using Keyboard Commands?
    By jennymac in forum Switcher Hangout
    Replies: 9
    Last Post: 10-02-2007, 08:49 PM
  3. Darwin Commands - How?
    By msb86 in forum OS X - Development and Darwin
    Replies: 6
    Last Post: 10-29-2006, 07:02 PM
  4. commands.
    By daveo in forum Apple Notebooks
    Replies: 0
    Last Post: 10-24-2004, 06:50 PM
  5. commands?
    By newtomacs in forum OS X - Development and Darwin
    Replies: 4
    Last Post: 06-15-2004, 04:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •