Pradeep Jhuriya has Published 99 Articles

Implement a Counter in Bash Script on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 17-Jan-2023 17:11:01

2K+ Views

Introduction As a Linux enthusiast, you may have come across situations where you needed to perform some repetitive tasks and wished if you had a counter that could keep track of the number of times you performed a certain task. Well, guess what? Bash scripting allows you to do just ... Read More

Count Duplicate Lines in a Text File on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 17-Jan-2023 17:07:45

10K+ Views

Introduction There are several reasons why you might want to count the number of duplicate lines in a text file on a Linux system. For example, you may want to find out if there are any errors in your data or you may want to optimize your file by removing ... Read More

How to Use the Paste Command on Linux?

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 17-Jan-2023 17:00:51

292 Views

Introduction The Paste command in Linux is a useful tool for merging multiple files or lines of text into a single file or output. It is commonly used in conjunction with the cut command, which allows users to cut specific lines or sections of text and paste them elsewhere. In ... Read More

Measure CPU usage for a process on Linux?

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 12-Jan-2023 11:10:17

6K+ Views

Introduction On modern multi-core CPUs, it is often useful to know the CPU usage of individual cores for a particular process. This can be helpful for identifying bottlenecks in the system, or for understanding the workload distribution across CPU cores. In this article, we will see how to measure separate ... Read More

Partitioning Disks in Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 12-Jan-2023 11:05:46

2K+ Views

Introduction In Linux, a disk partition is a logical division of a hard disk drive (HDD) or solid-state drive (SSD) that is used to manage data in a more organized manner. Partitions allow you to separate data by function, such as separating system files from user files, or to set ... Read More

Delete Multiple Files at Once in Bash

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 12-Jan-2023 10:56:15

6K+ Views

Introduction Bash is a Unix shell and command language that is commonly used on Linux systems. It allows users to perform a variety of tasks, including deleting files. In this article, we will look at how to delete multiple files at once in Bash on a Linux system. We will ... Read More

Creating a Temporary File in Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 12-Jan-2023 10:54:21

5K+ Views

Introduction In Linux, it is often necessary to create temporary files for various purposes, such as storing intermediate data during processing or storing configuration information for a script. Temporary files are usually created in the /tmp directory, which is a standard location for storing temporary files on most Linux systems. ... Read More

What is the LD_PRELOAD Trick on Linux?

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 04-Jan-2023 13:03:02

4K+ Views

Introduction LD_PRELOAD is a powerful and advanced feature in the Linux dynamic linker that allows users to preload shared object files into the address space of a process (before it starts executing). This can be used to override certain functions in the process with custom implementations or to inject additional ... Read More

Running Multiple Commands in the Background on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 04-Jan-2023 12:28:11

1K+ Views

Introduction Executing multiple commands in the background is a useful feature in Linux that allows users to execute multiple tasks simultaneously. This can be particularly helpful when running long-running commands that may take a while to complete, as it allows the user to continue working on other tasks while the ... Read More

Freeing up a TCP/IP Port on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 04-Jan-2023 12:22:05

4K+ Views

Introduction TCP/IP ports are used to connect and communicate with different devices and applications on a network. In Linux, sometimes a specific port may be in use by a particular application or process, preventing other applications from using it. In such cases, it is necessary to free up the port ... Read More

Advertisements