Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Silly Terminal Question: Syntax/command to Lock a file?
#3
You need to install the Developer Tools (XCode) which would give you access to the SetFile command, which allows for setting file attributes on files in HFS directories.

Specifically, you would want to use this command:

%/Developer/Tools/SetFile -a L filename.ext

to set the Locked attribute to file called filename.txt
Reply


Messages In This Thread
Re: Silly Terminal Question: Syntax/command to Lock a file? - by Seacrest - 02-26-2007, 05:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)