I am want to know what SDL version I have installed on Ubuntu.
Is there a terminal command I can run to find out?
dpkg -l | grep sdl is one possible answer.
dpkg -l | grep sdl
A platform-agnostic solution may be:
sdl2-config --version