Author: Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

This tutorial will help you to set the JAVA_HOME environment variable on the latest older macOS operating systems. The /usr/libexec/java_home is the command line utility that returns the Path of the Java home directory from the current user’s settings. You can use this utility to set up the JAVA_HOME environment variable on your macOS. In an Operating System (OS) JAVA_HOME environment variable must be set to point to the directory containing the JVM. In this tutorial, we will help you to correctly set the JAVA_HOME environment variable on macOS. Check Pre-Installed Java Versions You can find details of all installed…

Read More

Access modifiers are special keywords that define the accessibility or scope of a member. We can specify how other code can interact with specific methods or variables within or outside classes and packages. Like many programming concepts, access modifiers are simple in practice but can seem confusing at first. Once you understand them, they can help make your code more readable and maintainable. Understand the Difference Between Members Java provides 4 types of access modifiers with different scopes and visibility. Any member without any specifier is dealt with as “Default” or “package-private”. Private: A private member is accessible only in…

Read More

Google Chrome DevTools (developer tools) is the browser’s built-in comprehensive toolkit for developers. Which provides a large number of information that is useful for the developers for debugging purposes. You can also find the website’s request headers and response header values directly with dev tools. View HTTP Headers in Chrome Follow the below steps to open developer tools in Google Chrome and view HTTP header values. Open DevTools: You can open Google Chrome’s developer tools with two methods. Choose any one method: Right-click on the browser and click Inspect Press F12 function button in the keyboard. View HTTP headers: Open…

Read More

The request headers contain the information about the resource that is required to be fetched. The response headers contain information about the response sent by the server. It’s something like server details and other information. cURL is a command line utility used to transmit data over the different-2 protocols. It is a quick tool for developers to view the request header and response header values of a website. 1. cURL – Get Request Headers Use –versbose or -v option with the curl command to fetch the request header and response header values as following: curl –verbose google.com 2. cURL -…

Read More

Code formatting is essential for developers. A formatted code is easy to understand for other developers and allows us to find issues within the source code quickly. This article will help you to format source code in Visual Studio Code (VSCode) editor on various operating systems. VSCode – Code Formatting Keyboard Shortcuts You can format code using the keyboard shortcuts. Use the following key combinations to format code in Visual Studio Code (VSCode). Shift + Alt + F : Windows Users Shift + Option + F: macOS Users Ctrl + Shift + I: Linux Users VSCode – Code Formatting Option…

Read More

Q. How do I find the installed Tomcat version on a Linux system? 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 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…

Read More

MySQL is a very popular open-source relational database management system that can run on Linux, Windows, and Mac OS. It’s typically used as the back-end database for web applications, though it can also be used to store data for other software. You can use MySQL to store and organize data, retrieve it when needed, and transform it into a different format (e.g. changing it from text to numbers). It’s commonly used by companies of all sizes as the database for their websites and applications. This article will walk through the process of installing MySQL 8 on Amazon Linux 2. When…

Read More

You probably know that Chrome is the default browser in Ubuntu. But did you know that you can change this? There are several other browsers that come pre-installed with Ubuntu, such as Firefox and Midori. If you’re not a fan of Chrome or if you prefer to use another browser for your browsing needs, changing the default browser from Chrome to Firefox, for example, is pretty straightforward. This tutorial will show you how to change the default web browser on Ubuntu and other versions of Linux Mint. Change Default Web Browser in Ubuntu When you click on a link the…

Read More

Sometimes we need to map a sub URL to a different directory path in the file system. The Nginx users can achieve this by using the “location” block in the configuration file. The location specifies a regular expression for the URL the browser requests. Under the location code block, we can specify the file system path with the ‘root’ or ‘alias’ option. You may use the alias directive within a location block, like this:

In the above configuration, the main site is configured with the /var/www/example.com directory. But the URL begins with “/static” will be served with “/var/content/static” directory.…

Read More

Crontab is a utility for running scheduled tasks at regular intervals on Unix-Linux systems. It allows us to schedule multiple cron jobs to run at once. We can schedule any shell command or script to can be executed on the terminal. Every scheduled job in crontab is separated by a new line. We can also define multiple commands or scripts in a single cron job to run one by one. How to Sepreate Two Commands in Linux You can separate two or more commands by using semicolons (;), logical AND (&&), or logical OR (||) operators. Which of these operators…

Read More