If a file tells the OS its file format, how does the OS choose which application to open it by default?
In Windows, is the association stored in the registry table?
How does Linux choose which application to open a file?
I used to use Nautilus a lot, but now I change to terminal. Is it true that in terminal, we always have to explicitly specify which application to open a file? Does the settings of which application to open a file of a certain format by default belong to the file manager (e.g. Nautilus), and it is not an issue when we are living in terminals?
Thanks.