Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Web Servers»Tomcat»How to Check Tomcat Version on Linux

    How to Check Tomcat Version on Linux

    By RahulSeptember 8, 20222 Mins Read

    Q. How do I find the installed Tomcat version on a Linux system?

    Advertisement

    Tomcat installation provides an shell script version.sh for the Linux-based systems and version.bat for Windows systems. This script provides detailed information about the Tomcat version and other details. This quick blog post will help you to find the Tomcat version installed on your system.

    Check Tomcat Version

    1. Use the cd command to switch to the Tomcat installation bin directory. The location of the directory depends on the installation types. The packages installed on the official repository are generally installed under the /etc/tomcat directory. Custom installation is generally done under the /opt or /usr/share directory.
      cd /usr/share/tomcat/bin 
      

      Note: If you still have not found the directory, I have discussed a few methods at the end of this article.

    2. You will find a version.sh script under the bin directory. You can execute this script to find the installed Tomcat version along with a few other details.
      ./version.sh 
      
      Using CATALINA_BASE:   /usr/share/tomcat
      Using CATALINA_HOME:   /usr/share/tomcat
      Using CATALINA_TMPDIR: /usr/share/tomcat/temp
      Using JRE_HOME:        /usr
      Using CLASSPATH:       /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar
      Using CATALINA_OPTS:
      Server version: Apache Tomcat/10.0.23
      Server built:   Jul 14 2022 08:16:11 UTC
      Server number:  10.0.23.0
      OS Name:        Linux
      OS Version:     5.15.0-47-generic
      Architecture:   amd64
      JVM Version:    17.0.1+12-LTS-39
      JVM Vendor:     Oracle Corporation
      

    Here is the screenshot of the Tomcat version running on a Ubuntu 22.04 system. I have recently installed it from the source code.

    Check Tomcat Version
    Check Tomcat Version

    Note: If you don’t know the installation directory. You can try the following commands to find it.

    find / -type d -name "*tomcat*"
    find / -type f -name version.sh
    

    Conclusion

    It’s a good practice to keep servers up to date. You may also need to check the currently installed Tomcat version to find if a newer version is available. This blog post will help you to find the Tomcat version via the command line interface.

    tomcat version
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Check Linux Version

    How To Check OS Version with Linux Command Line

    Check the PostgreSQL Version

    How to Check the PostgreSQL Version

    How to Install Tomcat 10 on Debian 10

    How to Install Tomcat 10 on Debian 11/10

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • tail Command in Linux with Examples
    • What is a Orphan Process in Unix/Linux
    • How To Display Warning Message to Unauthorized SSH Access
    • How to Set a Custom SSH Login Banner and MOTD
    • Understanding Reverse DNS: What it is and Why it Matters?
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.