![check java version in linux check java version in linux](https://i.ytimg.com/vi/4x9I3VgWkHA/maxresdefault.jpg)
Note the version number (JBoss 5.1.0.GA or JBoss 5.1.1.GA) displayed as the last item before the license information. Below is an example of using this on an installation of JBoss Enterprise Application Platform on Red Hat Linux. Sample outputs: Linux version 3.10.0-693.11.6.el7.x86_64 (gcc version 4.8.5 20150623 (Red Hat 4.8. It displays information about the JBoss Enterprise Application Platform version and its configured Java environment.
![check java version in linux check java version in linux](https://serverspace.io/wp-content/uploads/2020/06/java-apt-ubuntu-1.png)
Operating System: Ubuntu 16.04.3 LTS Kernel: Linux 4.10.0-42-genericĪnother outputs from my OpenSUSE Linux 15.2 server: Static hostname: opensuse-nixcraft Look out for “ Operating System” and “ Kernel“: Static hostname: nixcraft-www-42 Just type the following command to check OS name and Linux kernel version:Īnd it will give info as follows. Use hostnamectl command to query and change the system hostname and related settings. Sample outputs: LSB Version: :core-4.1-amd64:core-4.1-noarchĭescription:ĜentOS Linux release (Core) I am suspecting that it would be the folder for the installed version of java. I have a folder named 'java-7-oracle' in usr/lib/jvm. Now my problem is i don't know where that(1.7.080) java folder is. It given the result as: javac jdk1.7.080. When i try this: roottest: javac -version. The lsb_release command gives LSB (Linux Standard Base) and distribution-specific information on the CLI. A version of java is installed on my Linux machine. $ egrep '^(VERSION|NAME)=' /etc/os-releaseĮven tiny Linux distro such as Alpine Linux provide the required OS (Operating system) information, including version: NAME="Alpine Linux"īUG_REPORT_URL="" Checking OS version on Linux using the lsb_release command if you have an issue with a package try just launching from a command line and see what it complains about. We can filter out information such as OS version and name using the grep command/ egrep command as follows: issues that come up with java usually involve setting javahome in my experience.
![check java version in linux check java version in linux](http://www.escapemotions.com/images/meta/fb-flamepainter-free.jpg)
Let us see all examples in details for common Linux distros. Type the following command to find Linux kernel version:.For remote server login using the ssh: ssh Type any one of the following command to find os name and version in Linux:.Open the terminal application (bash shell).The procedure to find os name and version on Linux: