how to check version of apache http server in linux without having a gui platform.

i only have access to ssh so i guess i need the command to check it

or if i can do it through a web platform