I am new to macOS. Also, I am using Apple Macbook Air M1 Monterey 12.5.
Before buying this Mac, I was using Linux (NixOS and Ubuntu) for several years. In Linux, while using bash
, I was able to open firefox just by doing:
$ firefox
macOS also comes from the Unix family and I am using bash
on both OS. Thus, I do not understand why I can't do:
Pedros-MacBook-Air:~ pedro$ firefox
-bash: firefox: command not found
To open firefox from terminal, I need to do the command below to open firefox on Mac:
Pedros-MacBook-Air:~ pedro$ open -a firefox
To make things even more obscure, to open emacs I can simply do the following and it works:
Pedros-MacBook-Air:~ pedro$ emacs
Why is it so? Why I can't open firefox in bash's macOS as I used to do in Linux distros' bash? And why can I open emacs this way?