How do I create an Extensionless File?

OK. This is frustrating.


I am trying to configure the Boot Partition of my raspberry pi so that I can run it headless. For SSH to be enabled on initial boot, I need to create an extention-less file "ssh" for the program to recognize it and run. Text Editor and CotEditor both force a file extension of either .txt or .rtf.


I then tried from the command line:


~ cd /volumes/boot

~ touch ssh


This resulted in the creation of an "ssh executable" instead. Weird, right?


I tested the touch command on my home folder and it worked as intended:


cd ~/

touch happy


I checked the info. Text edit document with "happy info" in title bar.


Please someone help, it's driving me nuts!




Posted on Sep 3, 2019 9:13 AM

Reply
Question marked as Top-ranking reply

Posted on Sep 3, 2019 9:34 AM

~ cd /volumes/boot
~ touch ssh

This resulted in the creation of an "ssh executable" instead. Weird, right?

No, not weird. You created a file named /Volumes/boot/ssh. The file's posix permissions has the executable bit set. What's it matter?

If you don't want the executable bit set, chmod it to what you want.

Or, just create it in TextEdit and remove the extension. Or, disable the option in TextEdit preferences to always append .txt to plain text files.

3 replies
Question marked as Top-ranking reply

Sep 3, 2019 9:34 AM in response to mrspambucket

~ cd /volumes/boot
~ touch ssh

This resulted in the creation of an "ssh executable" instead. Weird, right?

No, not weird. You created a file named /Volumes/boot/ssh. The file's posix permissions has the executable bit set. What's it matter?

If you don't want the executable bit set, chmod it to what you want.

Or, just create it in TextEdit and remove the extension. Or, disable the option in TextEdit preferences to always append .txt to plain text files.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I create an Extensionless File?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.