Blog

Latest Articles

Browse the latest tutorials, guides, and practical examples across Linux, DevOps, security, databases, and programming on GoLinuxCloud.

Explore the latest tutorials and guides across Linux, DevOps, programming, and more.

You can also browse content by category below:

  • Linux: Commands, administration, troubleshooting, and system operations
  • DevOps: CI/CD, Kubernetes, containers, and automation
  • Cloud: AWS, Azure, OpenStack, and hybrid cloud administration
  • Programming: Coding tutorials, scripting, and development concepts
  • Security: Ethical hacking, system security, and best practices
  • Databases: MySQL, MariaDB, PostgreSQL, and database management
  • Networking: Network setup, troubleshooting, and protocols
  • Storage: Disk management, file systems, and storage solutions
  • Tools: Useful tools and utilities for productivity

2298 articles

Blog illustration with latest articles, tutorials, guides, and how-to content across Linux and DevOps topics
programming

How to Copy a File in Java [Practical Examples]

The list below shows five different ways in which we can copy a file in Java. Using FileInputStream and FileOutputStream Using Paths and Files Using RandomAccessFile Class Using FileChannel Using Files.copy()

Deepak Prasad6 min read
programming

How to check if file exists in Java [Practical Examples]

In Java, there are three different ways to check if file exists or not such as Using exists method of Legacy I/O File class, Using isFile method of File class, Using exists method of NIO File class

Deepak Prasad6 min read
programming

How to get Current Date in Java

The list below shows eight different ways to get current date in Java Using java.util.Date, java.util.Calendar, java.time.LocalDateTime, java.time.LocalDate, java.time.Year, java.time.MonthDay, java.time.OffsetDateTime, …

Deepak Prasad6 min read
programming

How to reverse a list in Java [4 Different Methods]

We can reverse a list in Java using four different ways i.e. Using add and remove method, Using recursion, Using reverse method of Collections, Using ListIterator Interface

Deepak Prasad6 min read
programming

Return Multiple Values in Java [5 Different Methods]

We can use any of the five shown approaches as per the program requirement to return multiple values in Java. Return an array of specific type or object, Return using the Pair class of util package, Return a String …

Deepak Prasad7 min read
programming

Java string length Examples [Multiple Scenarios]

Multiple examples to use the java string length method to get length of java string.

Bashir Alam8 min read
linux

SOLVED: How to PROPERLY rename file(s) in Linux

There are multiple ways in Linux to rename single or multiple files using one line commands or in script

Deepak Prasad6 min read
programming

SOLVED: Check if path is subdirectory of another in Node.JS

In this tutorial we learned how to check if path is subdirectory of another directory using Node.JS. Tutorial on NodeJS Path module.

Deepak Prasad6 min read
security

Analyze phishing email using Thephish [100% Working]

In this tutorial we shared step by step instructions to analyze phishing email using ThePhish which uses other open source yet powerful tools (MISP, Cortex and TheHive).

Kennedy Muthii5 min read
programming

4 programs that shows how Java global variables work

A Java global variable is a variable that is declared outside a method or at the start of a code is a global variable, there are no access restrictions on a global variable. A Java global variable is mostly declared in …

Azka Iftikhar6 min read
linux

Setup local YUM/DNF repo server Rocky Linux 8 [Step-by-Step]

Step by Step instructions to configure local and offline yum or dnf repository server using Nginx on Rocky Linux 8

Deepak Prasad7 min read
programming

Node.Js forEach() statement Explained [Practical Examples]

In this article, you learned how you can use the Node.Js forEach() to iterate over an iterable in JavaScript. When iterating over array elements, you should opt for forEach() whereas using map() and reduce() would work …

Deepak Prasad6 min read
devops

Steps to expose services using Kubernetes Ingress

Kubernetes Ingress provides a granular mechanism for routing requests into a cluster. Ingress does not replace Services but augments them with capabilities such as path-based routing.

Deepak Prasad9 min read
programming

3 ways to convert CHAR to INT in Java

There are 3 methods to convert char to int in java i.e ASCII values, getNumericalValue, ParseInt using ValueOf method.

Azka Iftikhar8 min read
programming

3 different ways to detect a loop in a Linked List

There are three ways to detect a loop in a linked list cycle. They are as listed below. Traversing through the list, Using HashSet, Using Floyd's Cycle Detection Algorithm

Deepak Prasad6 min read
databases

How to use pandas.Series.map() [Practical Examples]

The pandas.Series.map() performs the mapping by first matching the values of the outer Series with the index labels of the inner Series. It then returns a new Series, with the index labels of the outer Series but the …

Deepak Prasad4 min read
programming

Java Predicate Explained

Java predicate function is a pre-defined user interface. Predicate is a function that returns a boolean value. And the function test(T t) evaluates the predicate for the argument given.

Azka Iftikhar7 min read
programming

How to set up Java with Visual Studio Code

Step by Step instructions to set up Java with Visual Studio Code. Create and compile your first Java Program using VSC.

Deepak Prasad4 min read
programming

How to set up Java with Eclipse IDE [Step-by-Step]

Step by step instructions to set up Java with Eclipse IDE. create your first Java program using Eclipse and execute the same.

Deepak Prasad4 min read
programming

8 different ways to use assert in Node.js [Practical Examples]

The purpose of the assert module in Node.js is to provide various ways of asserting functions. For instance, if the assertion. It is used to test the functionality of functions in Node.js.

Deepak Prasad6 min read
databases

Let's explore pandas.DataFrame.resample with Examples

In this tutorial we explain usage of pandas resample using multiple methods and examples. Frequency conversion provides basic conversion of data using the new frequency intervals and allows the filling of missing data …

Deepak Prasad12 min read
databases

5 ways you can create histogram using pandas DataFrame

In this tutorial we learned to create histogram in Pandas with following parameters, with specific size, with number of bins, Histogram with specific color, with figsize

Deepak Prasad6 min read
databases

Learn to use pandas.unique() with Series/DataFrame

unique() function is used to get the distinct / unique data from Series/DataFrames. It can be applied on the columns in the dataframe. The unique() method returns a NumPy ndarray of unique values from the Series

Deepak Prasad4 min read
databases

Pandas DataFrame.rolling() Explained

Pandas rolling() function is used to provide the window calculations for the given pandas object. By using rolling we can calculate statistical operations like mean(), min() , max() and sum() on the rolling window.

Deepak Prasad7 min read
databases

Exploring pandas melt() function [Practical Examples]

Pandas melt() function is used to unpivot a DataFrame from wide to long format, optionally leaving identifiers set. A pivot table aggregates the values in a data set.

Deepak Prasad4 min read
programming

Java ListIterator Explained

In this article, we will discuss how we can traverse forward through a list and traverse backward through a list using java ListIterator. This iterator is one of the most powerful cursors in java, it is a bidirectional …

Azka Iftikhar7 min read
programming

4 different ways to read JSON file in NodeJS

In this tutorial we will cover following methods to read JSOn file in NodeJS; Using fs module, require function and third party NPM libraries such as jsonfile and bfj

Deepak Prasad6 min read
databases

Convert list of dictionaries to DataFrame

Pandas convert list of dictionaries to ataframe using pandas.DataFrame(), pandas.DataFrame() with index, pandas.DataFrame() with index and columns, pandas.DataFrame() with from_records() function, pandas.DataFrame() with …

Deepak Prasad6 min read
databases

Compare loc[] vs iloc[] vs at[] vs iat[] with Examples

In this article we will cover different examples to understand the difference between loc[] vs iloc[] and at[] vs iat[] in Python pandas

Deepak Prasad6 min read
databases

How to change the order of Pandas DataFrame columns

how to change the order of columns in panads dataframe using the following methods, Using reindex() function, sort_index() function, indexing or Move columns to particular position

Deepak Prasad7 min read