How to locate and set JAVA home directory on Linux

How to locate and set JAVA home directory on Linux

The Java home directory is the installation directory for the Java Runtime Environment and Java Development Kit (see: Java JDK vs JRE. This directory contains all of the files that come with Java and are used to run Java programs or compile them. The location for this directory can change depending on your system (Linux, MacOS, Windows, etc.) and the version of Java that you have installed.

Read more

Introduction to pandas

Introduction to pandas

Pandas is a free and open source Python library released under the BSD license. Originally developed by Wes McKinney in 2008, and supported by companies like Intel and Nvidia, it is targeted at data analysis and manipulation. It can be easily used to read and write data from a variety of sources such as Excel spreadsheets, Comma-separated Values (CSV) files, and many more.

Read more

PyCharm 3D creation suite on Ubuntu 20.04 Focal Fossa

How to install PyCharm on Ubuntu 20.04 Linux Desktop

PyCharm is a graphical IDE (integrated development environment) that can be installed on Ubuntu Desktop. Many Python programmers enjoy using PyCharm because it can be used to analyze code, debug programs, and is integrated with Git and other version control systems, as well as web development applications. PyCharm is developed by JetBrains. It is free and open source, or at least the community edition is.

Read more

Identifying the CentOS Release version

How to check CentOS version

The purpose of this tutorial is to show how to check the CentOS version of your Linux system. It’s possible to do this from either command line or GUI, so you can use whichever method is more convenient for you. Classic CentOS is nearing its end of life and will be replaced by CentOS Stream. Knowing your CentOS version will give you some insight into how long your system will continue to be supported.

Read more

How to run JAR file on Linux

How to run JAR file on Linux

JAR files are those that have been coded and compiled using the Java programming language. In order to run these files on a Linux system, the Java Runtime Environment (JRE) software must be installed first. This is just a software package that allows the system to understand JAR files, and therefore gives it the ability to open and run them. Usually, the JRE package is not installed on most Linux distros by default, so we must first install Java, and then we can open the JAR file(s).

Read more

Setup FTP server on Linux

Linux: Install Java

Many developers and programmers choose to use a Linux system as their work environment because of its stability, speed, and ease of use. To get started with programming Java, or to simply run Java applications or applets on Linux, you will need to install the appropriate Java software package. Although this is pretty easy to do, the instructions will vary depending on a user’s Linux distribution, what version of Java they wish to use, and whether they need the JDK (Java Development Kit) or just the JRE (Java Runtime Environment).

Read more

How to write a Bash script to run commands

Bash scripting is a powerful tool for automating complex tasks in Linux and Unix systems. One of the key features of bash scripting is the ability to run system commands within a script, enabling developers to automate repetitive tasks or complex workflows. In this article, we will explore the basic syntax and best practices for writing a bash script to run commands. Whether you’re a beginner or an intermediate-level bash programmer, this article will provide you with the foundational knowledge and skills to create robust and efficient scripts that can automate even the most complex tasks.

Read more

Nested Loops in Bash Scripts

Nested loops in bash scripting are an essential tool for automation and efficiency when working with complex data structures, such as arrays and lists. By nesting one loop inside another, it’s possible to iterate through multiple levels of data with a single script, reducing the need for manual intervention and improving overall productivity. In this article, we will explore the basics of nested loops in bash scripts, including how to use them for various purposes, common errors to avoid, and advanced techniques for optimizing their performance. Whether you’re a beginner or an experienced bash scripter, this guide will help you master the art of nested loops and take your scripting skills to the next level.

Read more

Mastering Bash Script Loops

Bash script loops are an essential component of any developer’s toolkit for automating repetitive tasks and streamlining workflows. Loops in Bash provide a powerful and flexible way to iterate through lists, perform calculations, and execute commands based on specific conditions. By mastering Bash script loops, you can write efficient and readable scripts that save time and effort in managing complex systems and processes. This article will explore the different types of loops in Bash, their syntax and usage, and best practices for optimizing Bash loops for maximum efficiency.

Read more

Handling User Input in Bash Scripts

Bash scripting is a powerful tool that can automate various tasks on a Unix-like system. One crucial aspect of Bash scripting is handling user input. Accepting, validating, and processing user input is an essential part of creating robust and reliable Bash scripts. In this article, we will discuss various methods and best practices for handling user input in Bash scripts.

Read more

List of Python Escape sequence characters with examples

List of Python Escape sequence characters with examples

When programming in Python, escape characters can be used in order to tell the compiler that it should treat the next character or characters differently. For example, we can tell Python to print a quote " as an actual quote character, rather than interpreting it to be part of the Python code. Other special characters like \t can create TAB spaces, and \n can create new lines. In this tutorial, you will see a list of Python escape sequence characters and examples that you can use on a Linux system.

Read more

How to extend the Thunar file manager with custom actions

How to extend the Thunar file manager with custom actions

Thunar is the file manager included in Xfce, a free and open source Desktop Environment which implements the traditional desktop metaphor, and has become the favorite of many users which switched to it when the GNOME project introduced the GNOME shell. Thunar is light on resources but doesn’t lack functionalities which can be extended further by creating custom actions.

Read more