I would like to know if there is a command to open any file in Linux independently of their extension, just as if you were double-clicking it.
There are commands that are similar to the double-click:
open. They may not be on every distro, but they are there on my Ubuntu 12.04 server.
It would be good to point out that extensions are actually kind of arbitrary. There are so many esoteric extensions out there; no program, including the "double-click" can possibly know how to interpret every file out there.
And if you know the contents of file and the right program to run it, you should be able to execute/use the file regardless of its extension.
xdg-open is another one, though I think it is typically distributed with GUI distributions, as I don't see it in my AWS Ubuntu instance, nor my development Ubuntu server.
works like a charm