- Linux Resources
This article covers the usage of the 'replace' module in Ansible for replacing a string in a file. In fact, Ansible provide multiple ways that you can use to replace a string, an entire line or words that match a certain pattern. There are two modules that you can use to achieve this: the replace module and the inline module.
This article covers a few options of the RSYNC command along with a few examples that elaborated on the usage of this command. In fact, with rsync, you will be able to use this tool very efficiently for transferring data from one location to another.
The syntax for the rsync command changes depending on the usage of the tool. We will cover all the scenarios in the following examples. Rsync syntax in its most basic form looks like this:
$ rsync options SOURCE DESTINATION
Remote data transfers require you to specify a host's address, but more on that later.
The rsync tool comes with many options. You can enter rsync in your terminal and get all the details. We will list some of the most common rsync options:
This article covers the process of running a remote command with SSH on a Linux system along with actually running a command remotely. In fact, you will be able to run any command on a remote system of your choice provided that you know the correct username of that system as well as its password with which you will be able to access it remotely.
This article covers the concept of the SED command in Linux along with a few useful examples to elaborate on its usage. In fact, SED is a text stream editor used on Unix systems to edit files quickly and efficiently. The tool searches through, replaces, adds, and deletes lines in a text file without opening the file in a text editor.
The main syntax for using the Linux sed command is:
$ sed OPTIONS... [SCRIPT] [INPUTFILE...]
You can execute sed with the following command-line options:
This article covers how to Use Tags in Ansible Playbook. In fact, you might want to run specific tasks instead of running an entire playbook file. This helps to reduce the total playbook execution time, especially when dealing with a large playbook file.
This article covers the usage of the TAR command in Linux. In fact, the GNU tar (short for Tape ARchiver) command is the most widely used archiving utility in Linux systems. Available directly in the terminal, the tar command helps create, extract, and list archive contents.