Get IP Address of a Machine from Bash

Abhishek Nair
Updated on 28-Jan-2025 17:18:45

334 Views

IP address stands for Internet Protocol address, which is a unique string of numbers assigned to each device connected to a computer network that uses the Internet Protocol for communication. A system needs an IP address for various networking tasks in Linux, like setting up network connections, configuring services like file sharing, SSH or FTP or troubleshooting network-related issues, etc. An IP address can be classified into two main categories, public and private. A public IP address usually can be accessed from the Internet, whereas private addresses are reserved for internal use within your private network without being directly exposed. ... Read More

Convert an Image to Grayscale from Bash

Abhishek Nair
Updated on 28-Jan-2025 17:04:55

271 Views

Converting images to grayscale is a common image processing task that can be easily accomplished using command-line tools in Bash. This tutorial will show you several methods to convert images to grayscale using popular image manipulation utilities. Using ImageMagick ImageMagick is one of the most powerful and widely used command-line tools for image manipulation. Before you can use it, you must install it on your system. In Ubuntu, you can install it using apt as − # Debian/Ubuntu $ sudo apt install imagemagick # RedHat/CentOS $ sudo dnf install ImageMagick After installation, here are some of the methods ... Read More

Add File Extension to Files from Bash

Abhishek Nair
Updated on 28-Jan-2025 16:57:32

249 Views

In an operating system, file extensions usually help identify file types and ensure proper handling by applications. When working with files in a Unix-like operating system including Linux, you may encounter situations where files sometimes lack extensions, making it difficult to identify their types or open them with the appropriate applications. Fortunately, Bash, the default shell on many Linux distributions, provides powerful tools to simplify the process of adding file extensions. This tutorial will guide you through various options that you can use to add file extensions to files using Bash. Adding File Extension using the mv Command The simplest ... Read More

Install Artix Linux in VirtualBox

Abhishek Nair
Updated on 28-Jan-2025 16:45:31

407 Views

Artix Linux is a fast, customizable and user-friendly Linux distribution based on Arch Linux. It is now more stable and secure than its predecessors while using real init systems instead of systemd. Artix Linux can be installed either by console (text-based) or GUI installer. Although GUI installers are an easier and faster option at least for beginners and novice users. In this article, we'll cover installation of Artix Linux via GUI installer method. Besides there are some pre-requisites that you need to have on your system before beginning the installation, which we'll cover next. Prerequisites Ensure that VirtualBox is installed ... Read More

Configure CentOS Local YUM Repository

Abhishek Nair
Updated on 28-Jan-2025 16:22:28

304 Views

Yum repository is a central database of software that is used for installation/upgrade of packages on a Red Hat/CentOS based Linux server. This repository includes software that are used by system as well as for user level programs. An administrator can set-up a custom local yum repository instead of using the default ones provided by the OS for several reasons like: to provide normal or specialized software packages possibly in a restricted network environment; to maintain version levels across a set of servers; to optimize network bandwidth usage; to adhere to organization policy for maintaining security or possibly a combination ... Read More

Change Apache Port in Linux

Abhishek Nair
Updated on 28-Jan-2025 16:11:41

182 Views

Apache HTTP server (often called Apache) is an open-source, cross-platform web server developed by Apache Software Foundation. It is one of the most popular web servers available used for hosting web sites and serving web content. By default, Apache works on port 80/tcp for HTTP and 443/tcp for HTTPS. There are situations (like security considerations, port conflicts with other programs or need to run multiple web servers) where one may need to modify these default ports which the web server listens on. Changing Apache Port on Linux Read this tutorial to learn how to change HTTP port for Apache on ... Read More

Generate a Resume with HTML and CSS

Souvik Chakraborty
Updated on 28-Jan-2025 15:46:31

530 Views

Generating a resume with HTML and CSS make an attractive resume that can easily be distributed. A resume is a vital document that has been used in the course of employment so as to present oneself for the job. In this article, you will learn how to create a clear and concise resume, with proper division of sections and appropriate style with HTML and CSS. We have discussed how to create a resume using HTML and CSS. The main consideration will be the hierarchy and how such sections would look and function on a professional level online across various devices. ... Read More

Show Word Document in HTML Page Using JavaScript

Souvik Chakraborty
Updated on 28-Jan-2025 14:58:43

1K+ Views

To show a word document in an HTML page using JavaScript is important where you are required to read Word documents within your browser. This article will discuss two approaches to accomplishing this in JavaScript. They both allow you to teach your application how to load.docx files and display them on your webpage to the user. In this article, our task is to show a word document in an HTML page using JavaScript. We will be either using a .docx file from our system or using URL. Approaches to Show a Word Document in HTML Using Mammoth.js Library ... Read More

Java NumberFormat getPercentageInstance Method

Samual Sam
Updated on 28-Jan-2025 14:58:02

663 Views

In this article, we will learn the NumberFormat.getPercentageInstance() method. Java provides powerful tools for formatting numbers, currencies, and percentages through the java.text.NumberFormatclass. One of the most useful methods in this class is the getPercentageInstance() method. NumberFormat.getPercentageInstance() method The NumberFormat.getPercentageInstance() method is a static method that returns a NumberFormat instance configured to format numbers as percentages. This method can be used with or without a Locale parameter.  Syntax − public static NumberFormat getPercentageInstance()public static NumberFormat getPercentageInstance(Locale locale) Without Locale: If no locale is specified, the method uses the default locale of the JVM. ... Read More

Get Size of Directory in Java

Shiva Keerthi
Updated on 28-Jan-2025 14:57:26

894 Views

A group of files combined stored at a common location is known as a “Directory”. A directory not only contains a group of files but also it can contain a group of other directories as well. A directory is also known as a “Folder”. Directories are a fundamental component of file systems and are used by different operating systems to provide a logical organization of files and to help us perform file management tasks such as searching, sorting, and moving files. In this section, we are going to write a Java program to get the size of a directory. What is ... Read More

Advertisements