pipo98
January 18th, 2013, 06:48 PM
I'm interested in learning the bowels of linux and I want to learn how the content of system files are structured. For example, /usr/share/applications/defaults.list.
I want to open .html files with sublimetext instead of chrome. So I opened defaults.list with gedit and looked for lines with html. I find things like:
text/html=sublime.desktop
application/xhtml_xml=google-chrome.desktop
application/xhtml+xml=firefox.desktop
text/xml=firefox.desktop;google-chrome.desktop
Now I could guess what it all means, but I want to read what, for example, the following means:
what do the item before and after the / mean, e.g. text/html. What does text refer to, and what does html refer to?
In the previous case it is easy to see html just refers to the extension .html, but what about in the case of xhtml+xml? What does the + here do? Why not break it into 2 lines?
Finally, what does the semi-colon ; mean in firefox.desktop;google-chrome.desktop?
As I said, my question is on two levels:
What do these mean in this particular case (defaults.list)
In general, where can I find the documentation for how system files are structured? Let's say I also want to understand how /etc/network/interfaces works - where would I get an authoritative documentation of this file, other than random googling and reading from forums?
Thank you,
Dhaval
I want to open .html files with sublimetext instead of chrome. So I opened defaults.list with gedit and looked for lines with html. I find things like:
text/html=sublime.desktop
application/xhtml_xml=google-chrome.desktop
application/xhtml+xml=firefox.desktop
text/xml=firefox.desktop;google-chrome.desktop
Now I could guess what it all means, but I want to read what, for example, the following means:
what do the item before and after the / mean, e.g. text/html. What does text refer to, and what does html refer to?
In the previous case it is easy to see html just refers to the extension .html, but what about in the case of xhtml+xml? What does the + here do? Why not break it into 2 lines?
Finally, what does the semi-colon ; mean in firefox.desktop;google-chrome.desktop?
As I said, my question is on two levels:
What do these mean in this particular case (defaults.list)
In general, where can I find the documentation for how system files are structured? Let's say I also want to understand how /etc/network/interfaces works - where would I get an authoritative documentation of this file, other than random googling and reading from forums?
Thank you,
Dhaval