OS X - Operating System General OS operation information and support

Creating hard link from command line OS X 10.6.7


Post Reply New Thread Subscribe

 
Thread Tools
jblocher

 
Member Since: Mar 31, 2011
Posts: 3
jblocher is on a distinguished road

jblocher is offline
I've tried to create a hard link (not a symbolic link) at my command line as:

Code:
ln /path/to/stored/file.prf /path/where/I/want/it/file.prf
but when I alter either file, the other one remains unchanged. It is no different from simply copying the file.

Is this a bug? Or perhaps user error? I've done this in Linux (both native and Cygwin) and it works.
QUOTE Thanks
jblocher

 
Member Since: Mar 31, 2011
Posts: 3
jblocher is on a distinguished road

jblocher is offline
I've found an answer to my own problem, so I'll post it here for posterity.

The problem has to do with the editor being used, not the OS, so perhaps this post is miscategorized.

Most Mac editors, when editing a file, do what is called a "safe save" which means they actually delete and replace the file. This is true of TextEdit and TextWrangler, though not true of TextMate. I discovered by downloading a trial copy of TextMate that I could not replicate the problem, but didn't want to pay $60 for a text editor.

Instead, I emailed the folks at Bare Bones Software (TextWrangler) who told me how to disable this behavior in TextWrangler. Pull up a terminal window and enter the following command:

Code:
defaults write com.barebones.textwrangler Filing:SafeSavesDisabled -bool YES
Now, when I use TextWangler to edit my file, the hard link is maintained.
QUOTE Thanks
BrianLachoreVPI

 
BrianLachoreVPI's Avatar
 
Member Since: Feb 24, 2011
Location: Maryland
Posts: 3,742
BrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant futureBrianLachoreVPI has a brilliant future
Mac Specs: March 2011 15" MBP 2.3GHz i7 Quad Core 8GB Ram | Mid 2011 27" iMac 3.4 GHz i7 16 GB RAM 2 TB HDD

BrianLachoreVPI is offline
Well - just so you don't think your effort was wasted - Thanks for posting the solution
QUOTE Thanks

Post Reply New Thread Subscribe


« How can I use iSync with Gmail correctly? | GSOD, I think I've tried everything! »
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
Time Machine never finishes? rsales Other Hardware and Peripherals 8 01-26-2011 05:45 PM
Help Required - installation of OSX on External Hard Drive nikkymat OS X - Operating System 3 03-13-2010 08:18 AM
Creating a myspace icon link on Iweb page johnbean333 Web Design and Hosting 1 10-01-2009 02:19 PM
creating a symbolic link pkri OS X - Operating System 2 07-13-2008 08:58 PM

All times are GMT -4. The time now is 12:48 AM.

Powered by vBulletin
Copyright ©2000 - 2013, 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?