Let $F$ be $\mathbb R$ or $\mathbb{C}$. Then $F^\infty$ is defined as the space of sequences in $F$ which eventually are zero. This space has some bad properties (for example it is not complete as a metric space with the natural metric), but it is nice from a homotopy point of view. I don't think it is hard to prove that the space of invertible linear operators of $F^\infty$ is homotopy equivalent to $O(\infty)$ or $U(\infty)$.
You also as about the invertible bounded linear operators on a (real/complex) Hilbert space $H$. Kuipers Theorem states that $GL(H)$ is contractible, so all higher homotopy groups vanish. If one considers the subgroup of all invertibles of the form $Id+K$ where $K$ is compact one obtains another group $GL_C(H)$. The homotopy type of this space is again $O(\infty)$ or $U(\infty)$ depending on the choice of $F$.
I do not know anything about Lie Algebras, so maybe someone else can chime in.