Found 1383 Articles for Open Source

Using the find -exec Command Option on Linux

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 for tasks like finding specific files and then performing an action on them, like deleting, moving, or editing. In this article, we will discuss the syntax and usage of the find -exec command option and provide examples of how it can be used. Syntax and Usage The basic syntax of ... Read More

Using Vim Registers on Linux

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 using registers in Vim in detail, including how to copy and paste text using registers, how to display register contents, and how to manipulate register contents. We'll also look at some advanced uses of registers and examples to help you understand how to use them effectively. Understanding Registers Before we ... Read More

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

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 same script simultaneously can cause conflicts, data loss, and other errors. In this article, we will discuss different methods to ensure that only one instance of a bash script runs on Linux. Using Flock One way to ensure that only one instance of a bash script runs on Linux is ... Read More

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

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 use examples to illustrate each scenario. Preparing Sample Files To get started, we need to create a directory called "dir_example" and another called "target". These directories will be used to store the files that will be used as examples in this tutorial. $ mkdir dir_example target Next, we will ... Read More

How to Kill a Detached screen Session on Linux

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 the command line. When using the GNU screen tool, we can sometimes end up with separate sessions that need cleaning up. In this quick tutorial, we'll look at some options for deleting a disconnected screen session. List of Sessions Before we start discussing how to end existing sessions, let's first ... Read More

Filtering Files Copied When Using rsync on Linux

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

527 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 files based on various criteria such as file type, size and modification time. In this article, we will explore in detail how to use rsync filters to selectively copy files during directory synchronization on a Linux system. Rsync Overview Rsync is a powerful and efficient file transfer tool that allows ... Read More

Calculate an MD5 Checksum of a Directory in Linux

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, or system. In this tutorial we will learn how to compute an MD5 checksum of an entire directory tree on Linux. We will compute a single hash value of all directory contents for comparison purposes. Get the list of all files in a directory tree To find out the collective ... Read More

Difference between PGP and GPG

Md. Sajid
Updated on 04-Apr-2023 12:36:18

4K+ Views

PGP and GPG are both very powerful tools for encrypting your data. Some differences are there between the two which you should be aware of before making a decision about which one to use. Read this article to find out more about PGP and GPG and how they are different from each other. What is PGP? PGP stands for "Pretty Good Privacy" and is a program that creates an encrypted, digital file of a message or document. The sender encrypts the file with a password and only the recipient can decrypt it with their own password. It is a type ... Read More

How to start tensorflow Docker jupyter notebook?

Diksha Patro
Updated on 17-Jan-2023 18:54:37

2K+ Views

Introduction Jupyter notebooks are useful for writing, testing, and debugging code. TensorFlow is a machine learning framework that can be used with Jupyter notebooks. In this article, we will explore how to use Docker to start a TensorFlow Jupyter notebook, which will allow us to take advantage of the benefits of both of these tools. Prerequisites Before getting started, you will need to have Docker and Docker Compose installed on your machine. You can check if it is installed using the following commands − $ docker --version $ docker-compose --version You can follow the installation instructions for your ... Read More

How to rebuild Docker container on file changes?

Diksha Patro
Updated on 06-Sep-2023 12:53:52

47K+ Views

Docker is a widely used containerization solution that allows programmers to easily package and distribute software in a lightweight and portable manner. The capability of rebuilding a container once modifications are made to its files is one of Docker's key features. This can be very helpful for a number of things, like making sure that code changes are appropriately reflected in a development environment or that code updates are always reflected in a containerized application. In this article, we will go into Docker's crucial feature and examine how it may be used to rebuild a container when files are changed. ... Read More

Advertisements