Home > Questions

How do I create an extensionless file on Mac?

I'm attempting to set up the Boot Partition on my Raspberry Pi for headless operation. To activate SSH during the initial boot, it's essential to produce a file without an extension named "ssh" so the software can identify and execute it. However, both Text Editor and CotEditor automatically add a file extension, either .txt or .rtf. Subsequently, I used the command line: ~ cd /volumes/boot ~ touch ssh. Unexpectedly, this led to the generation of an "ssh executable" file. Can anyone help?

Best Answered by

iBoysoft author Jenny Zeng

Jenny Zeng

Answered on Monday, April 29, 2024

It's not uncommon that the created file becomes executable. When you create the file in the directory "/Volumes/boot/ssh", the file's POSIX permissions have the executable bit set. If you don't want the executable bit set, they could change the permissions using the chmod command. 

For example, if your file is named ssh, run the command below in Terminal.

chmod -x ssh


People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

How To Create A Word Document On Mac

[Multiple Ways] How To Create A Word Docuement On Mac?

This article teaches you to use multiple ways to create a Word document on a Mac, including pre-installed applications or built-in Mac ways as well as non-Mac workings. Do not miss such a useful post!

How to Tips

Comment créer un nouveau fichier dans le Terminal Mac

Comment creer / ouvrir / editer / lire / ecrire dans un fichier dans le terminal Mac

Apprenez a creer un fichier dans le terminal Mac et comment ouvrir, editer, lire ou ecrire dans un fichier dans le terminal. Ce guide vous montre comment creer un fichier texte dans le terminal Mac, ainsi qu'un fichier Python ou un fichier binaire.

Kann keine neue Notiz auf Mac erstellen

[Gelöst] Kann keine neue Notiz auf dem Mac erstellen

Wenn Sie feststellen, dass Sie keine neue Notiz auf Ihrem Mac erstellen können oder die Option Neue Notiz ausgegraut ist, ist dieses Tutorial genau das Richtige für Sie. Es werden verschiedene Methoden gezeigt, um dieses Problem zu beheben.