New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Darwin Commands


Post Reply New Thread Subscribe

 
Thread Tools
CyberCandy
Guest
 
Posts: n/a

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
QUOTE Thanks
masaka___
Guest
 
Posts: n/a

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...... .. .. .
QUOTE Thanks
cradom

 
cradom's Avatar
 
Member Since: Feb 14, 2004
Location: Nederland, Texas
Posts: 3,126
cradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant futurecradom has a brilliant future
Mac Specs: 21in iMac core2 Duo- 13in macbook - 10.9 on both

cradom is offline
Try this:
lsof -i
gives open internet connections. without -i gives all open files
<good advice> get a book on linux </good advice>
QUOTE Thanks
CyberCandy
Guest
 
Posts: n/a

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?
QUOTE Thanks
masaka___
Guest
 
Posts: n/a

You need a space after the -r .
QUOTE Thanks
ped

 
Member Since: Jan 21, 2005
Posts: 54
ped is an unknown at this point

ped is offline
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
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,591
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac 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

rman is offline
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!
QUOTE Thanks

Post Reply New Thread Subscribe


« screensaver keyboard shortcut | DVD and CSS »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Darwin Streaming Server FancyPants Web Design and Hosting 2 01-09-2004 11:35 AM
make and CDRecord plunger OS X - Development and Darwin 3 12-29-2003 05:49 PM
Darwin 7.0 source code posted Murlyn OS X - Development and Darwin 1 10-28-2003 12:26 PM
Darwin 6.7 and 6.8 source code posted Murlyn OS X - Development and Darwin 0 09-23-2003 01:07 PM
Apple Darwin OS 6.6 released Graphite OS X - Development and Darwin 0 05-14-2003 07:35 PM

All times are GMT -4. The time now is 09:02 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?