{"id":6579,"date":"2024-01-02T15:26:50","date_gmt":"2024-01-02T22:26:50","guid":{"rendered":"https:\/\/ioflood.com\/blog\/?p=6579"},"modified":"2024-01-02T15:28:59","modified_gmt":"2024-01-02T22:28:59","slug":"install-diff-command-linux","status":"publish","type":"post","link":"https:\/\/ioflood.com\/blog\/install-diff-command-linux\/","title":{"rendered":"How to Install and Use &#8216;diff&#8217; | Linux File Comparison Guide"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/ioflood.com\/blog\/wp-content\/uploads\/2024\/01\/Illustration-of-a-Linux-terminal-displaying-the-installation-of-the-diff-command-for-file-comparison-300x300.jpg\" alt=\"Illustration of a Linux terminal displaying the installation of the diff command for file comparison\" width=\"300\" height=\"300\" title=\"\"><\/figure>\n<\/div>\n<p>Are you grappling with file comparison in Linux? The &#8216;diff&#8217; command is a powerful ally that compares files line by line. However, installing and using this command can be daunting, especially for beginners. Luckily, it&#8217;s a crucial part of most package management systems, making it a breeze to install once you understand the process.<\/p>\n<p><strong>In this guide, we will walk you through the process of installing and using the &#8216;diff&#8217; command in Linux.<\/strong> We will cover installation methods for both APT-based distributions like Debian and Ubuntu, and YUM-based distributions like CentOS and AlmaLinux. We will also delve into advanced topics such as compiling from source and installing a specific version of the &#8216;diff&#8217; command. Finally, we will provide guidance on how to use the &#8216;diff&#8217; command and verify that the correct version is installed.<\/p>\n<p>Let&#8217;s get started and master the &#8216;diff&#8217; command in Linux!<\/p>\n<h2>TL;DR: How Do I Install and Use the &#8216;diff&#8217; Command in Linux?<\/h2>\n<blockquote><p>\n  The <code>'diff'<\/code> command is typically pre-installed in most Linux distributions. You can verify this with, <code>diff --version<\/code>. If for some reason it is not installed to your system, you can add it with, <code>sudo [apt\/yum] install diffutils<\/code>. To use it, you can execute the command <code>diff file1 file2<\/code> in the terminal. This will compare file1 and file2 line by line and display the differences.\n<\/p><\/blockquote>\n<pre><code class=\"language-bash line-numbers\"># Create two files with some content\n\necho 'Hello, World!' &gt; file1.txt\necho 'Hello, Planet!' &gt; file2.txt\n\n# Use the diff command to compare the files\ndiff file1.txt file2.txt\n\n# Output:\n# 1c1\n# &lt; Hello, World!\n# ---\n# &gt; Hello, Planet!\n<\/code><\/pre>\n<p>This command compares the contents of file1.txt and file2.txt, and the output indicates that &#8216;World!&#8217; in the first file differs from &#8216;Planet!&#8217; in the second file.<\/p>\n<p>This is a basic way to use the &#8216;diff&#8217; command in Linux, but there&#8217;s much more to learn about this versatile tool. Continue reading for more detailed information and advanced usage scenarios.<\/p>\n<h2>Getting Started with the &#8216;diff&#8217; Command<\/h2>\n<p>The &#8216;diff&#8217; command is a powerful tool in Linux that allows you to compare the contents of two files line by line. It&#8217;s an essential command for developers, system administrators, or anyone who needs to identify differences between text files. It&#8217;s particularly useful when comparing different versions of a file, such as code files or configuration files.<\/p>\n<h3>Installing &#8216;diff&#8217; Command with APT<\/h3>\n<p>On Debian-based distributions like Ubuntu, the &#8216;diff&#8217; command is usually pre-installed. If it&#8217;s not, you can install it using the APT package manager. Here&#8217;s how:<\/p>\n<pre><code class=\"language-bash line-numbers\">sudo apt update\nsudo apt install diffutils\n\n# Output:\n# Reading package lists... Done\n# Building dependency tree\n# Reading state information... Done\n# diffutils is already the newest version (1:3.7-3).\n# 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.\n<\/code><\/pre>\n<p>This command updates your package list and installs the &#8216;diffutils&#8217; package, which includes the &#8216;diff&#8217; command.<\/p>\n<h3>Installing &#8216;diff&#8217; Command with YUM<\/h3>\n<p>On Red Hat-based distributions like CentOS, you can use the YUM package manager to install &#8216;diff&#8217;. Here&#8217;s how:<\/p>\n<pre><code class=\"language-bash line-numbers\">sudo yum install diffutils\n\n# Output:\n# Loaded plugins: fastestmirror, ovl\n# Loading mirror speeds from cached hostfile\n# Package diffutils-3.3-5.el7.x86_64 already installed and latest version\n# Nothing to do\n<\/code><\/pre>\n<p>This command installs the &#8216;diffutils&#8217; package, which includes the &#8216;diff&#8217; command.<\/p>\n<h3>Using the &#8216;diff&#8217; Command<\/h3>\n<p>Once you&#8217;ve installed the &#8216;diff&#8217; command, you can start comparing files. Here&#8217;s a simple example:<\/p>\n<pre><code class=\"language-bash line-numbers\"># Create two new files with some content\necho 'Hello, World!' &gt; file1.txt\necho 'Hello, Universe!' &gt; file2.txt\n\n# Use the diff command to compare the files\ndiff file1.txt file2.txt\n\n# Output:\n# 1c1\n# &lt; Hello, World!\n# ---\n# &gt; Hello, Universe!\n<\/code><\/pre>\n<p>This command compares the contents of file1.txt and file2.txt. The output indicates that &#8216;World!&#8217; in the first file differs from &#8216;Universe!&#8217; in the second file. With this basic understanding, you are now ready to explore more advanced uses of the &#8216;diff&#8217; command.<\/p>\n<h2>Installing &#8216;diff&#8217; from Source Code<\/h2>\n<p>If you need a specific version of &#8216;diff&#8217; or want to customize its features, you might consider installing it from source code. This process is more complex, but it offers greater control over the installation.<\/p>\n<pre><code class=\"language-bash line-numbers\"># Download the source code\ncurl -O https:\/\/ftp.gnu.org\/gnu\/diffutils\/diffutils-3.7.tar.gz\n\n# Extract the tarball\ntar xvf diffutils-3.7.tar.gz\ncd diffutils-3.7\/\n\n# Compile and install\n.\/configure\nmake\nsudo make install\n\n# Output:\n# 'diff' is now installed from source\n<\/code><\/pre>\n<p>This series of commands downloads the source code for &#8216;diff&#8217;, extracts it, and then compiles and installs the program.<\/p>\n<h2>Installing Different Versions of &#8216;diff&#8217;<\/h2>\n<p>Different versions of &#8216;diff&#8217; may include various features or bug fixes. Here&#8217;s how to install different versions from source and using package managers.<\/p>\n<h3>Installing Different Versions from Source<\/h3>\n<p>The process of installing different versions from source is similar to the one described above. You just need to replace the version number in the URL with the version you need.<\/p>\n<h3>Installing Different Versions with APT<\/h3>\n<p>On Debian-based systems, you can use the APT package manager to install specific versions of packages. However, the available versions depend on the repositories your system is using.<\/p>\n<pre><code class=\"language-bash line-numbers\"># Check available versions\napt-cache policy diffutils\n\n# Install specific version\nsudo apt install diffutils=3.3-3\n\n# Output:\n# 'diffutils' version 3.3-3 is now installed\n<\/code><\/pre>\n<h3>Installing Different Versions with YUM<\/h3>\n<p>On Red Hat-based systems, you can use the YUM package manager to install specific versions of packages. This also depends on your system&#8217;s repositories.<\/p>\n<pre><code class=\"language-bash line-numbers\"># Check available versions\nyum --showduplicates list diffutils\n\n# Install specific version\nsudo yum install diffutils-3.3-5.el7.x86_64\n\n# Output:\n# 'diffutils' version 3.3-5.el7.x86_64 is now installed\n<\/code><\/pre>\n<h3>Version Comparison<\/h3>\n<p>Here&#8217;s a brief comparison of some &#8216;diff&#8217; versions and their main features:<\/p>\n<table>\n<thead>\n<tr>\n<th>Version<\/th>\n<th>Key Features<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>3.3<\/td>\n<td>Basic file comparison<\/td>\n<\/tr>\n<tr>\n<td>3.5<\/td>\n<td>Introduced directory comparison<\/td>\n<\/tr>\n<tr>\n<td>3.7<\/td>\n<td>Added support for large files<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Using &#8216;diff&#8217; and Verifying Installation<\/h2>\n<p>Once you&#8217;ve installed &#8216;diff&#8217;, you can use it to compare files or directories. Here&#8217;s an example of how to compare directories:<\/p>\n<pre><code class=\"language-bash line-numbers\"># Create two directories and some files\necho 'Hello, World!' &gt; dir1\/file1.txt\necho 'Hello, Universe!' &gt; dir2\/file2.txt\n\n# Use the diff command to compare the directories\ndiff -r dir1\/ dir2\/\n\n# Output:\n# Only in dir1\/: file1.txt\n# Only in dir2\/: file2.txt\n<\/code><\/pre>\n<p>This command compares the contents of the two directories. The output shows that file1.txt only exists in dir1 and file2.txt only exists in dir2.<\/p>\n<p>To verify that &#8216;diff&#8217; is installed correctly, you can use the &#8216;&#8211;version&#8217; option:<\/p>\n<pre><code class=\"language-bash line-numbers\">diff --version\n\n# Output:\n# diff (GNU diffutils) 3.7\n<\/code><\/pre>\n<p>This command displays the version of &#8216;diff&#8217;, confirming that it&#8217;s installed and ready to use.<\/p>\n<h2>Exploring Alternatives to &#8216;diff&#8217;: &#8216;cmp&#8217; and Version Control Systems<\/h2>\n<p>While the &#8216;diff&#8217; command is an excellent tool for comparing files, there are alternative methods that you might find useful depending on your specific needs. Let&#8217;s explore two of these alternatives: the &#8216;cmp&#8217; command and the use of version control systems.<\/p>\n<h3>Comparing Files with &#8216;cmp&#8217;<\/h3>\n<p>The &#8216;cmp&#8217; command in Linux is used to compare two files byte by byte. It&#8217;s a simpler tool than &#8216;diff&#8217;, and it stops comparing upon finding the first difference.<\/p>\n<pre><code class=\"language-bash line-numbers\"># Create two new files with some content\necho 'Hello, World!' &gt; file1.txt\necho 'Hello, Universe!' &gt; file2.txt\n\n# Use the cmp command to compare the files\ncmp file1.txt file2.txt\n\n# Output:\n# file1.txt file2.txt differ: byte 8, line 1\n<\/code><\/pre>\n<p>The &#8216;cmp&#8217; command is useful when you need a quick, simple comparison between two files. However, it doesn&#8217;t provide as much detail as the &#8216;diff&#8217; command, especially for larger files or directories.<\/p>\n<h3>Comparing Files with Version Control Systems<\/h3>\n<p>Version control systems like Git provide robust tools for comparing files and tracking changes over time. This is especially useful in software development, where you often need to track changes across multiple versions of a file.<\/p>\n<pre><code class=\"language-bash line-numbers\"># Initialize a new git repository\ngit init\n\n# Create a new file and commit it\necho 'Hello, World!' &gt; file.txt\ngit add file.txt\ngit commit -m 'Initial commit'\n\n# Make a change to the file and commit it\necho 'Hello, Universe!' &gt; file.txt\ngit commit -am 'Update file'\n\n# Compare the current file with the previous version\ngit diff HEAD~1 file.txt\n\n# Output:\n# diff --git a\/file.txt b\/file.txt\n# index 2d9263c..5f7d754 100644\n# --- a\/file.txt\n# +++ b\/file.txt\n# @@ -1 +1 @@\n# -Hello, World!\n# +Hello, Universe!\n<\/code><\/pre>\n<p>This series of commands creates a new Git repository, creates and commits a file, makes a change to the file and commits it, and then compares the current version of the file with the previous version. Git&#8217;s comparison tools are much more advanced than &#8216;diff&#8217; or &#8216;cmp&#8217;, making it a great choice for complex projects.<\/p>\n<p>In conclusion, while the &#8216;diff&#8217; command is a powerful tool for comparing files in Linux, there are alternative methods that might be more suitable depending on your needs. The &#8216;cmp&#8217; command offers a simpler, quicker comparison, while version control systems like Git provide advanced comparison tools and the ability to track changes over time.<\/p>\n<h2>Troubleshooting Common &#8216;diff&#8217; Command Issues<\/h2>\n<p>While the &#8216;diff&#8217; command in Linux is a powerful tool, you may encounter some common issues when using it. Let&#8217;s go through some of these problems and their solutions.<\/p>\n<h3>No Output from &#8216;diff&#8217; Command<\/h3>\n<p>If you run the &#8216;diff&#8217; command and get no output, it means the files you are comparing are identical. However, if you&#8217;re expecting differences and see none, you may want to check if you&#8217;re comparing the correct files.<\/p>\n<pre><code class=\"language-bash line-numbers\">echo 'Hello, World!' &gt; file1.txt\necho 'Hello, World!' &gt; file2.txt\ndiff file1.txt file2.txt\n\n# Output:\n# [No output]\n<\/code><\/pre>\n<p>In this example, both files contain the same text, so the &#8216;diff&#8217; command produces no output.<\/p>\n<h3>&#8216;diff&#8217; Command Not Found<\/h3>\n<p>If you get a &#8216;command not found&#8217; error when trying to use the &#8216;diff&#8217; command, it means the command is not installed on your system or it&#8217;s not in your PATH.<\/p>\n<pre><code class=\"language-bash line-numbers\">diff file1.txt file2.txt\n\n# Output:\n# bash: diff: command not found\n<\/code><\/pre>\n<p>In this case, you need to install the &#8216;diff&#8217; command or adjust your PATH. We&#8217;ve already discussed how to install &#8216;diff&#8217; in previous sections.<\/p>\n<h3>Large Files or Directories<\/h3>\n<p>The &#8216;diff&#8217; command can be slow when comparing large files or directories. In such cases, you might want to use tools like &#8216;diff -r&#8217; for directories or &#8216;cmp&#8217; for files, which can be faster.<\/p>\n<pre><code class=\"language-bash line-numbers\"># Compare large directories\ndiff -r large_dir1\/ large_dir2\/\n\n# Output:\n# [Output may take a while]\n<\/code><\/pre>\n<p>In this example, comparing large directories with &#8216;diff -r&#8217; can take a while. Consider using other tools or methods for large files or directories.<\/p>\n<h3>File Format Differences<\/h3>\n<p>The &#8216;diff&#8217; command compares files line by line, so differences in file formats or line endings can cause unexpected results. If you&#8217;re comparing files from different systems (like Windows and Linux), you might need to normalize the files first.<\/p>\n<pre><code class=\"language-bash line-numbers\"># Normalize file from Windows to Unix format\n\ndos2unix file1.txt\n\n# Now you can compare the files\ndiff file1.txt file2.txt\n\n# Output:\n# [Output depends on the contents of the files]\n<\/code><\/pre>\n<p>In this example, the &#8216;dos2unix&#8217; command is used to normalize a file from Windows format to Unix format, allowing &#8216;diff&#8217; to compare it correctly with a Unix file.<\/p>\n<h2>Understanding File Comparison in Linux<\/h2>\n<p>File comparison in Linux is a fundamental concept that underlies many operations in system administration and software development. It&#8217;s the process of checking two or more files for differences in content. This is crucial in many scenarios, such as identifying changes in configuration files, tracking modifications in code files, and comparing data sets.<\/p>\n<h3>The Importance of &#8216;diff&#8217; Command<\/h3>\n<p>The &#8216;diff&#8217; command is one of the most commonly used tools for file comparison in Linux. It compares files line by line and outputs the differences. It&#8217;s a powerful tool that can be used in a variety of ways, from basic file comparison to advanced tasks like creating patches for software updates.<\/p>\n<pre><code class=\"language-bash line-numbers\"># Let's create two files with minor differences\necho -e 'Hello, World!\nGoodbye, World!' &gt; file1.txt\necho -e 'Hello, World!\nFarewell, World!' &gt; file2.txt\n\n# Now, let's use the diff command\ndiff file1.txt file2.txt\n\n# Output:\n# 2c2\n#  Farewell, World!\n<\/code><\/pre>\n<p>In this example, we created two files with a slight difference in the second line. When we run the &#8216;diff&#8217; command, it shows us exactly where the files differ. This kind of detailed output is what makes &#8216;diff&#8217; such a valuable tool.<\/p>\n<h3>File Comparison in Software Development<\/h3>\n<p>In software development, file comparison is essential for tracking changes in code, identifying bugs, and managing versions. Developers often need to compare different versions of a code file to see what has changed, and the &#8216;diff&#8217; command is a perfect tool for this task.<\/p>\n<h3>File Comparison in System Administration<\/h3>\n<p>System administrators often need to compare configuration files. A small change in a configuration file can have a significant impact on a system&#8217;s behavior, so being able to identify these changes quickly is crucial. The &#8216;diff&#8217; command, with its line-by-line comparison, is an excellent tool for this purpose.<\/p>\n<p>Understanding the basics of file comparison and the &#8216;diff&#8217; command in Linux is essential for anyone working with Linux systems. Whether you&#8217;re a developer tracking changes in your code, or a system administrator maintaining the stability of your systems, mastering the &#8216;diff&#8217; command is a valuable skill.<\/p>\n<h2>The Power of File Comparison in Larger Projects<\/h2>\n<p>As your projects grow in size and complexity, the importance of file comparison becomes even more pronounced. Whether you&#8217;re managing a large codebase, maintaining an extensive configuration setup, or working with large data sets, tools like the &#8216;diff&#8217; command become invaluable.<\/p>\n<p>The &#8216;diff&#8217; command, combined with version control systems, can help you keep track of changes, identify potential issues, and maintain consistency across your project.<\/p>\n<pre><code class=\"language-bash line-numbers\"># Assume we have a large project with many files\n# We make some changes in multiple files\n\n# We can use diff to check all changes made\ngit diff\n\n# Output:\n# [Shows differences between the current state and the last commit in all project files]\n<\/code><\/pre>\n<p>In this example, we use &#8216;diff&#8217; in conjunction with Git to display differences across an entire project. This can be particularly useful in large projects where tracking individual file changes can be challenging.<\/p>\n<h3>Exploring Patching and Merging<\/h3>\n<p>Beyond simple file comparison, you can use &#8216;diff&#8217; to generate patches \u2014 a list of differences between two files. These patches can then be applied to other files using the &#8216;patch&#8217; command. This is a common practice in open-source projects where contributors submit patches for bugs or feature additions.<\/p>\n<pre><code class=\"language-bash line-numbers\"># Generate a patch\n\ndiff -u original.txt modified.txt &gt; changes.patch\n\n# Apply the patch to another file\n\npatch another.txt &lt; changes.patch\n\n# Output:\n# patching file another.txt\n<\/code><\/pre>\n<p>In this example, we generate a patch file using &#8216;diff&#8217; and then apply this patch to another file using the &#8216;patch&#8217; command. This allows us to propagate changes from one file to multiple others efficiently.<\/p>\n<h3>Further Resources for Mastering &#8216;diff&#8217;<\/h3>\n<p>To deepen your understanding of the &#8216;diff&#8217; command and related concepts, consider exploring the following resources:<\/p>\n<ul>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.gnu.org\/software\/diffutils\/manual\/\" target=\"_blank\" rel=\"noopener\">GNU diffutils manual<\/a>: This is the official manual for &#8216;diff&#8217; and related utilities. It provides in-depth information about the command&#8217;s usage and options.<\/p>\n<\/li>\n<li>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.thegeekdiary.com\/diff-command-examples-in-linux\/\" target=\"_blank\" rel=\"noopener\">Linux &#8216;diff&#8217; tutorial on Geek&#8217;s Diary<\/a>: This tutorial provides a comprehensive overview of the &#8216;diff&#8217; command, including examples and explanations.<\/p>\n<\/li>\n<li>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/git-scm.com\/docs\/git-diff\" target=\"_blank\" rel=\"noopener\">File comparison in Git<\/a>: This Git documentation page explains how Git uses file comparison, which could be useful if you&#8217;re working on software development projects.<\/p>\n<\/li>\n<\/ul>\n<h2>Wrapping Up: Installing the &#8216;diff&#8217; Command in Linux<\/h2>\n<p>In this comprehensive guide, we&#8217;ve delved into the world of the &#8216;diff&#8217; command in Linux, a powerful tool for comparing files and directories. This command is a fundamental part of system administration and software development, providing the ability to pinpoint changes and discrepancies in text files.<\/p>\n<p>We started with the basics, demonstrating how to install and use the &#8216;diff&#8217; command in both APT-based distributions like Debian and Ubuntu, and YUM-based distributions like CentOS and AlmaLinux. We then ventured into more advanced territory, discussing how to install &#8216;diff&#8217; from source code and how to install specific versions of the command.<\/p>\n<p>We tackled common issues you might encounter when using &#8216;diff&#8217;, such as no output from the command, &#8216;command not found&#8217; errors, slow performance with large files or directories, and differences in file formats or line endings. For each issue, we provided solutions and workarounds, equipping you with the knowledge to overcome these challenges.<\/p>\n<p>We also explored alternative approaches to file comparison in Linux, such as the &#8216;cmp&#8217; command and the use of version control systems like Git. Here&#8217;s a quick comparison of these methods:<\/p>\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Pros<\/th>\n<th>Cons<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>&#8216;diff&#8217; Command<\/td>\n<td>Detailed line-by-line comparison<\/td>\n<td>Can be slow with large files or directories<\/td>\n<\/tr>\n<tr>\n<td>&#8216;cmp&#8217; Command<\/td>\n<td>Quick byte-by-byte comparison<\/td>\n<td>Less detailed than &#8216;diff&#8217;<\/td>\n<\/tr>\n<tr>\n<td>Version Control Systems<\/td>\n<td>Advanced comparison tools, track changes over time<\/td>\n<td>More complex than &#8216;diff&#8217; or &#8216;cmp&#8217;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Whether you&#8217;re just starting out with the &#8216;diff&#8217; command or you&#8217;re looking to level up your file comparison skills, we hope this guide has given you a deeper understanding of the &#8216;diff&#8217; command and its capabilities.<\/p>\n<p>With its balance of detail and control, the &#8216;diff&#8217; command is a powerful tool for file comparison in Linux. Now, you&#8217;re well equipped to leverage its benefits. Happy file comparing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you grappling with file comparison in Linux? The &#8216;diff&#8217; command is a powerful ally that compares files line by line. However, installing and using this command can be daunting, especially for beginners. Luckily, it&#8217;s a crucial part of most package management systems, making it a breeze to install once you understand the process. In [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":14826,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124,3,9],"tags":[],"class_list":["post-6579","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash","category-linux","category-sysadmin","cat-124-id","cat-3-id","cat-9-id","has_thumb"],"_links":{"self":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/6579","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/comments?post=6579"}],"version-history":[{"count":6,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/6579\/revisions"}],"predecessor-version":[{"id":15053,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/6579\/revisions\/15053"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media\/14826"}],"wp:attachment":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media?parent=6579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/categories?post=6579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/tags?post=6579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}