I saw a couple of questions about executing command line scripts? I saw that the .command and .tool extensions were mentioned. I have always used .sh. What is the difference between these different scripts? Do some extensions allow for different commands?
The difference between .command, .tool, and .sh file extensions
command linescriptterminaluti
Related Question
- MacOS – the difference between ‘Capacity’ and ‘%iused’ when running the ‘df’ command in the terminal
- MacOS – difference b/w various commands for getting root access in terminal
- The relationship between Xcode and Xcode command line tools
- How to Revoke ‘Always Allow’ Privileges from an Application
- Mac – What’s the difference between diskutil unmount and diskutil eject
- Terminal – Create Multiple Files with Different Extensions Using One Command
- macOS Terminal – Difference Between Terminal Apps, CLI, CLT, and Prompt
- What command line tool can I install on a Mac to play music
Best Answer
Programmatically, I'm sure the difference between the first two (.command vs. .tool) are subtle, while the third is essentially a simple, default shell script. And does in fact associate with Xcode 4.1.