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 Tuesday, August 27, 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

Macで新しいメモを作成できない場合

[解決済み] Macで新しいノートが作成できません

Mac上で新しいノートを作成できないか、新しいノートのオプションがグレーアウトされている場合、このチュートリアルが役立ちます。この問題を修正するための複数の方法を示しています。

Comment créer un nouveau dossier sur un disque dur externe sur Mac

Créer un nouveau dossier sur le disque dur externe Seagate/Toshiba Mac

Voici trois façons de créer un nouveau dossier sur le disque dur externe connecté à votre MacBook ou Mac de bureau, applicable à Seagate, Toshiba, WD et autres marques.

Créer de gros fichiers sur Mac

Comment créer de gros fichiers sur Mac? [Méthodes Rapides]

Un tutoriel pour aider les utilisateurs de Mac à créer de gros fichiers sur Mac pour créer rapidement différents fichiers le plus rapidement possible.