skip to Main Content

Set Java version on Linux Shell – CentOS

I am running the following script on Linux Centos 7. export JAVA_HOME=/usr/lib/jvm/jdk-14.0.2 echo $JAVA_HOME echo | java -version echo "maven build ..." mvn clean install -DskipTests -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 With this output: /usr/lib/jvm/jdk-14.0.2 java version "1.7.0_161" OpenJDK Runtime Environment (rhel-2.6.12.0.el7_4-x86_64 u161-b00) OpenJDK…

VIEW QUESTION

Retrieve substrings from individual components of an array in Bash – CentOS

For a command such as grubby --info=ALL the output received is something of the sort - index=3 kernel="/boot/vmlinuz-4.18.0-80.el8.x86_64" args="ro crashkernel=auto resume=/dev/mapper/cl-swap rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet" root="/dev/mapper/cl-root" initrd="/boot/initramfs-4.18.0-80.el8.x86_64.img" title="CentOS Linux (4.18.0-80.el8.x86_64) 8 (Core)" id="d7fe995b9d09403896e1e56a2b02a947-4.18.0-80.el8.x86_64" index=4 kernel="/boot/vmlinuz-0-rescue-d7fe995b9d09403896e1e56a2b02a947" args="ro crashkernel=auto resume=/dev/mapper/cl-swap rd.lvm.lv=cl/root rd.lvm.lv=cl/swap…

VIEW QUESTION
Back To Top
Search