Change a Plain text file to Unix Executable File

jamiesalisbury

Registered
I have a file that should be a Unix Executable File, that for some reason shows up as a Plain Text file.

I have downloaded FileType - but I don't know the creator and type codes that I need. If anyone knows these I'd be very grateful.

I've read it's possible to change this in Terminal as well - but I've never used Terminal, so I will need a step by step walkthrough if that is the solution.

Thanks

Jamie

OSX 10.5.8
 
Open Terminal.

type:
Code:
chmod +x
...with a space at the end (and do NOT press enter yet).

Then, drag the file you want to change from the Finder and drop it on top of the Terminal window. The file path and filename should automatically fill in (and you should ensure that there's a space between "+x" and the file path).

Press enter.
 
Hi ElDiabloConCaca! Can you tell me where do I get the Unix Executable File after the conversion? Is it supposed to be in the same directory where the .txt file is present?
 
sunando_999, I watched the video. It does not create a new file, just modifies the attributes of the original. With the executable attribute switched on, your Mac's Finder displays the icon differently. If you now issue
chmod -x /path/to/your/file​
its icon will display as before.
 
Back
Top