OK, there are a bunch of different ways, but it depends how Tomcat was installed. My install didn’t have a version.sh (the easy button) so this one, derived from Joe Tech, seems like the most reliable (every tomcat has a catalina.jar!).
First get your path to your catalina.jar:
find / -type f -name catalina.jar
Then, use that path to run this command:
unzip -q -c [/path-to-your-catalina-jar] META-INF/MANIFEST.MF | grep "Implementation-Version"
Here is how that turned out for me:
Image Credits
Tomcat Meditates © 2024 by MindFuel Blog is licensed under CC BY-SA 4.0
While some of the images in this post were derived from artificial intelligence, the text of this post was 100% human-generated.