Pradeep Jhuriya has Published 99 Articles

The Meaning of IFS in Bash Scripting on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 20-Jan-2023 15:07:52

10K+ Views

Introduction In Bash scripts on Linux, the "IFS" (Internal Field Separator) variable plays an important role in controlling how fields in a string are separated. IFS defaults to a space, tab, and newline character, which means that, by default, fields in a string are separated by any combination of these ... Read More

Using the find -exec Command Option on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 20-Jan-2023 15:02:13

6K+ Views

Introduction The find command in Linux is a versatile and powerful tool for finding files and directories on a file system. The “-exec” option is a useful addition to the find command that allows you to execute a command on any file or directory it finds. This can be useful ... Read More

Using Vim Registers on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 20-Jan-2023 14:58:48

265 Views

Introduction Vim is a powerful text editor widely used on Linux systems. One of the features that makes Vim so powerful is its support for registers. registers are essentially notes that allow you to quickly and easily store and retrieve text. In this article, we will discuss the basics of ... Read More

Ensure Only One Instance of a Bash Script Is Running on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 20-Jan-2023 14:55:35

2K+ Views

Introduction When running a bash script on Linux, it's important to ensure that only one instance of the script is running at a time. This is especially important for scripts that perform critical tasks, such as scripts that update databases or scripts that send email. Running multiple instances of the ... Read More

Pass the Output of a Command as an Argument for Another on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 20-Jan-2023 14:51:39

1K+ Views

Introduction When working with the Linux command line, we often use multiple commands that take important data as arguments. In this tutorial, we'll explore various scenarios on how to use the output of one command as an argument to another. We will create an environment to test our strategies and ... Read More

How to Kill a Detached screen Session on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 20-Jan-2023 14:48:43

2K+ Views

Introduction Separate screen sessions are an excellent way to perform background processes on a Linux machine. However, sometimes it may be necessary to kill a separate screen session that is no longer necessary. In this article, we will show you how to remove a separate screen session on Linux using ... Read More

Filtering Files Copied When Using rsync on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 20-Jan-2023 14:44:20

524 Views

Introduction The Linux command-line utility rsync is a powerful and flexible tool for synchronizing files and directories across different computers and locations. It is commonly used for a variety of tasks including backups, file transfers and data replication. One of the main features of rsync is its ability to filter ... Read More

Calculate an MD5 Checksum of a Directory in Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 20-Jan-2023 14:26:11

3K+ Views

Introduction During our daily use of Linux, we may want to check if there are any changes to any of the files in a directory. Or we might want to confirm that the contents of one directory are the same as those of another directory on a different location, disk, ... Read More

Keeping SSH session alive on Linux

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 17-Jan-2023 17:13:39

12K+ Views

Introduction Secure Shell (SSH) is a network protocol that allows secure remote connections between two systems. It is commonly used to access and manage Linux servers remotely. However, one of the problems with using SSH is that your session can be terminated due to downtime or network outages. This can ... Read More

Writing Text to File Using Linux Cat Command

Pradeep Jhuriya

Pradeep Jhuriya

Updated on 17-Jan-2023 17:12:20

41K+ Views

Introduction The Linux cat command is a powerful utility that allows users to concatenate, view and create files. One of its useful features is the ability to write text to a file, either by appending it to the end of the file or by overwriting the existing content of the ... Read More

Advertisements