|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Unlinking files in OSX
When I'm using the command line in OSX, I notice I can't unlink a file. I did a 'man unlink' and the man pages came up, but when I 'unlink myfile.txt' it says the command wasn't found.
So instead, I've just been dragging the files to the trash. Did Apple remove the unlink command for security reasons? Does it conflict with the way the trash works? Does anyone have more info on this? I have limited bsd and linux experience. I only use it at home since I haven't been sucessful in convincing my boss to get a linux box yet. Thanks ![]() |
|
#2
|
|||
|
|||
|
"unlink" is afaik only an alias to "rm". is "rm" there? Then you can symlink it to unlink:
Code:
cd /sbin ln -s rm unlink I never used OSX, but I am quite confident it will bypass the trash bin.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
||||
|
||||
|
I think rm is there, but I thought it was just for directories. I'm still new to BSD.
I may be getting my Perl commands mixed in with my BSD commands. I know in Perl, unlink deletes a file, rmdir removes a directory. I'll try it when I get home, Thanks! |
|
#4
|
||||
|
||||
|
No other posts to this forum over the weekend? How boring.
Well, rm worked, thanks! I really need to go get a BSD book from Borders. |
|
#5
|
|||
|
|||
|
If you are comfortable with online documentation, I can recommend the FreeBSD handbook. Itīs the best manual Iīve ever seen with any OS.
|
|
#6
|
||||
|
||||
|
I prefer online documention! Do you have a link?
|
|
#7
|
|||
|
|||
|
I meant this one:
http://www.freebsd.org/doc/en_US.IS...book/index.html But you can also find a PDF or Postscript version somewhere on the site. Make sure you are using the english version. When I started with FreeBSD, my first fault was using the localized one which simply stopped after chapter #12... Man, did I feel dumb asking a rtfm-question here ![]() |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Unlinking files in OSX |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|