{"id":6719,"date":"2024-01-15T08:51:37","date_gmt":"2024-01-15T15:51:37","guid":{"rendered":"https:\/\/ioflood.com\/blog\/?p=6719"},"modified":"2024-01-15T08:53:11","modified_gmt":"2024-01-15T15:53:11","slug":"install-touch-command-linux","status":"publish","type":"post","link":"https:\/\/ioflood.com\/blog\/install-touch-command-linux\/","title":{"rendered":"Linux File Creation: How to Install &#038; Use &#8216;touch&#8217; Command"},"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\/Installation-of-touch-in-a-Linux-terminal-for-creating-or-updating-files-300x300.jpg\" alt=\"Installation of touch in a Linux terminal for creating or updating files\" width=\"300\" height=\"300\" title=\"\"><\/figure>\n<\/div>\n<p>Are you struggling with creating or modifying files in your Linux environment? The &#8216;touch&#8217; command, akin to a skilled craftsman, can help you effortlessly create or modify the timestamps of your files. Yet, many Linux users might find the task of installing and using this command a bit daunting. But fear not, the &#8216;touch&#8217; command is a versatile tool that is worth mastering. Additionally, the &#8216;touch&#8217; command is a standard utility on most Linux distributions, making it a straightforward process once you understand the steps.<\/p>\n<p><strong>In this guide, we will walk you through the process of installing and using the &#8216;touch&#8217; command in Linux.<\/strong> We will provide you with installation instructions for APT-based distributions like Debian and Ubuntu, as well as YUM-based distributions like CentOS and AlmaLinux. We will delve into more advanced topics like compiling from source and installing a specific version of the command. Finally, we will wrap up with guidance on how to use the &#8216;touch&#8217; command and verify the correct version is installed.<\/p>\n<p>So, let&#8217;s dive in and begin mastering file creation and modification with the &#8216;touch&#8217; command in Linux!<\/p>\n<h2>TL;DR: How Do I Install and Use the &#8216;Touch&#8217; Command in Linux?<\/h2>\n<blockquote><p>\n  In most Linux distributions, the <code>'touch'<\/code> command comes pre-installed. You can verify this with, <code>which touch<\/code>. However, if it isn&#8217;t installed to your system, you can add it via the coreutils package with the commands: <code>sudo apt-get install coreutils<\/code> or <code>sudo yum install coreutils<\/code>. To use it, simply type <code>touch filename<\/code> in the terminal. This will create a new file with the given filename if it doesn&#8217;t already exist, or update the timestamp if it does.\n<\/p><\/blockquote>\n<pre><code class=\"language-bash line-numbers\"># Create a new file or update the timestamp of an existing file\n\ntouch myFile.txt\n\n# Output:\n# No output if the command is successful. A new file named 'myFile.txt' is created if it doesn't exist, or the timestamp of 'myFile.txt' is updated if it does exist.\n<\/code><\/pre>\n<p>This is a basic way to install and use the &#8216;touch&#8217; command in Linux. However, the &#8216;touch&#8217; command has many more features and uses that can help you manage your files more effectively. Continue reading for a more detailed guide on how to install and use the &#8216;touch&#8217; command in Linux, including advanced usage scenarios and troubleshooting tips.<\/p>\n<h2>Understanding and Installing the &#8216;Touch&#8217; Command in Linux<\/h2>\n<p>The &#8216;touch&#8217; command is a simple yet powerful tool in Linux. It allows you to create new empty files and update the access and modification times of existing files. This command is highly useful in file management, scripting, and automation. Now, let&#8217;s dive into how to install and use the &#8216;touch&#8217; command in Linux.<\/p>\n<h3>Installing &#8216;Touch&#8217; Command with APT<\/h3>\n<p>If you&#8217;re using a Debian-based Linux distribution like Ubuntu, you can install the &#8216;touch&#8217; command using the APT package manager. In most cases, it comes pre-installed. However, if it&#8217;s not, you can install it by installing the &#8216;coreutils&#8217; package that includes &#8216;touch&#8217; and other essential utilities.<\/p>\n<p>Here&#8217;s how to do it:<\/p>\n<pre><code class=\"language-bash line-numbers\">sudo apt-get update\nsudo apt-get install coreutils\n\n# Output:\n# The system will update the package lists and then install the coreutils package. The 'touch' command will be available after this process.\n<\/code><\/pre>\n<h3>Installing &#8216;Touch&#8217; Command with YUM<\/h3>\n<p>For CentOS, Fedora, or other RedHat-based distributions, the &#8216;touch&#8217; command can be installed using the YUM package manager. Similar to the APT package manager, &#8216;touch&#8217; usually comes pre-installed. If not, you can install it by installing the &#8216;coreutils&#8217; package.<\/p>\n<p>Here&#8217;s how you can do it:<\/p>\n<pre><code class=\"language-bash line-numbers\">sudo yum check-update\nsudo yum install coreutils\n\n# Output:\n# The system will check for updates and then install the coreutils package. The 'touch' command will be available after this process.\n<\/code><\/pre>\n<h3>Installing &#8216;Touch&#8217; Command with Pacman<\/h3>\n<p>If you&#8217;re using an Arch-based distribution like Manjaro, you can use the Pacman package manager to install the &#8216;touch&#8217; command. Again, it comes pre-installed in most cases, but if it&#8217;s not, you can install it by installing the &#8216;coreutils&#8217; package.<\/p>\n<p>Here&#8217;s how to do it:<\/p>\n<pre><code class=\"language-bash line-numbers\">sudo pacman -Syu\nsudo pacman -S coreutils\n\n# Output:\n# The system will update all packages and then install the coreutils package. The 'touch' command will be available after this process.\n<\/code><\/pre>\n<p>Now that we&#8217;ve covered the installation process, let&#8217;s move on to how to use the &#8216;touch&#8217; command in Linux.<\/p>\n<h2>Installing &#8216;Touch&#8217; Command from Source Code<\/h2>\n<p>If your Linux distribution doesn&#8217;t include the &#8216;touch&#8217; command, or you need a specific version, you can compile it from source code. The source code for &#8216;touch&#8217; is available as part of the GNU Core Utilities package, which you can download from the <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.gnu.org\/software\/coreutils\/\" target=\"_blank\" rel=\"noopener\">GNU website<\/a>.<\/p>\n<p>Here&#8217;s a step-by-step guide on how to compile and install &#8216;touch&#8217; from source:<\/p>\n<pre><code class=\"language-bash line-numbers\"># Download the source code\nwget http:\/\/ftp.gnu.org\/gnu\/coreutils\/coreutils-8.32.tar.xz\n\n# Extract the archive\ntar -xf coreutils-8.32.tar.xz\n\n# Navigate into the directory\n\ncd coreutils-8.32\n\n# Configure the build\n.\/configure\n\n# Compile the code\nmake\n\n# Install the utilities\nsudo make install\n\n# Output:\n# The 'touch' command will be installed along with other core utilities.\n<\/code><\/pre>\n<h2>Installing Different Versions of &#8216;Touch&#8217; Command<\/h2>\n<h3>From Source Code<\/h3>\n<p>To install a specific version of &#8216;touch&#8217; from source code, you need to download the corresponding version of the Core Utilities package. The version number is included in the package&#8217;s URL. For example, to download version 8.30, you would replace &#8216;8.32&#8217; with &#8216;8.30&#8217; in the URL.<\/p>\n<h3>Using Package Managers<\/h3>\n<h4>APT<\/h4>\n<p>On Debian-based distributions, you can install a specific version of a package using the following syntax:<\/p>\n<pre><code class=\"language-bash line-numbers\">sudo apt-get install coreutils=8.30*\n\n# Output:\n# The specified version of the coreutils package will be installed.\n<\/code><\/pre>\n<h4>YUM<\/h4>\n<p>On RedHat-based distributions, you can use the &#8216;yum&#8217; package manager to install a specific version of a package. However, YUM doesn&#8217;t support this feature by default. You need to enable the &#8216;yum-versionlock&#8217; plugin.<\/p>\n<pre><code class=\"language-bash line-numbers\">sudo yum install yum-versionlock\nsudo yum versionlock coreutils-8.30*\nsudo yum install coreutils\n\n# Output:\n# The specified version of the coreutils package will be installed.\n<\/code><\/pre>\n<h3>Version Comparison<\/h3>\n<p>Different versions of &#8216;touch&#8217; may include bug fixes, new features, or improved compatibility with certain systems. Here&#8217;s a summary of the key differences between versions:<\/p>\n<table>\n<thead>\n<tr>\n<th>Version<\/th>\n<th>Key Changes<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>8.30<\/td>\n<td>Added support for nanosecond precision<\/td>\n<\/tr>\n<tr>\n<td>8.31<\/td>\n<td>Fixed a bug that caused incorrect timestamps on NFS file systems<\/td>\n<\/tr>\n<tr>\n<td>8.32<\/td>\n<td>Improved compatibility with POSIX standards<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Basic Usage and Verification<\/h2>\n<h3>Using the &#8216;Touch&#8217; Command<\/h3>\n<p>The basic usage of the &#8216;touch&#8217; command is to create a new file or update the timestamp of an existing file. You can also create multiple files at once by specifying more than one filename.<\/p>\n<pre><code class=\"language-bash line-numbers\">touch file1.txt file2.txt file3.txt\n\n# Output:\n# No output if the command is successful. New files named 'file1.txt', 'file2.txt', and 'file3.txt' are created if they don't exist, or the timestamps of these files are updated if they do exist.\n<\/code><\/pre>\n<h3>Verifying the Installation<\/h3>\n<p>To verify that &#8216;touch&#8217; is installed correctly, you can use the &#8216;which&#8217; command. This command will display the path to the &#8216;touch&#8217; executable if it is installed.<\/p>\n<pre><code class=\"language-bash line-numbers\">which touch\n\n# Output:\n# \/usr\/bin\/touch\n<\/code><\/pre>\n<p>This output indicates that &#8216;touch&#8217; is installed and available at the path &#8216;\/usr\/bin\/touch&#8217;.<\/p>\n<h2>Exploring Alternative Methods for File Creation in Linux<\/h2>\n<p>While the &#8216;touch&#8217; command is a powerful tool for creating and modifying files in Linux, it&#8217;s not the only method available. Let&#8217;s look at some alternative commands you can use to create and modify files in Linux, such as the &#8216;echo&#8217; and &#8216;printf&#8217; commands.<\/p>\n<h3>Using &#8216;Echo&#8217; Command<\/h3>\n<p>The &#8216;echo&#8217; command in Linux is primarily used to display text. However, you can also use it to create files and write content to them.<\/p>\n<pre><code class=\"language-bash line-numbers\">echo \"This is a sample text\" &gt; sample.txt\n\n# Output:\n# A new file named 'sample.txt' is created with the content 'This is a sample text'.\n<\/code><\/pre>\n<p>The &#8216;>&#8217; operator redirects the output of the &#8216;echo&#8217; command to a file. If the file doesn&#8217;t exist, it will be created. If it does exist, the content will be overwritten.<\/p>\n<h3>Using &#8216;Printf&#8217; Command<\/h3>\n<p>The &#8216;printf&#8217; command is another alternative for creating files in Linux. It&#8217;s similar to &#8216;echo&#8217;, but it provides more control over the formatting of the output.<\/p>\n<pre><code class=\"language-bash line-numbers\">printf \"This is a sample text\n\" &gt; sample.txt\n\n# Output:\n# A new file named 'sample.txt' is created with the content 'This is a sample text'.\n<\/code><\/pre>\n<p>In the above example, the &#8216;<br \/>\n&#8216; sequence creates a new line. This is useful when you want to create a file with multiple lines of text.<\/p>\n<h3>Comparing &#8216;Touch&#8217;, &#8216;Echo&#8217;, and &#8216;Printf&#8217;<\/h3>\n<table>\n<thead>\n<tr>\n<th>Command<\/th>\n<th>Advantages<\/th>\n<th>Disadvantages<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>&#8216;touch&#8217;<\/td>\n<td>Creates empty files quickly, updates file timestamps<\/td>\n<td>Cannot add content to files<\/td>\n<\/tr>\n<tr>\n<td>&#8216;echo&#8217;<\/td>\n<td>Creates files and adds content, simple to use<\/td>\n<td>Overwrites file content, less control over formatting<\/td>\n<\/tr>\n<tr>\n<td>&#8216;printf&#8217;<\/td>\n<td>Creates files and adds content, more control over formatting<\/td>\n<td>More complex syntax<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>In conclusion, while the &#8216;touch&#8217; command is a quick and efficient way to create files and update timestamps in Linux, the &#8216;echo&#8217; and &#8216;printf&#8217; commands provide more flexibility by allowing you to create files and add content at the same time. Depending on your specific needs, you might find one method more suitable than the others.<\/p>\n<h2>Solving Common &#8216;Touch&#8217; Command Issues in Linux<\/h2>\n<p>While the &#8216;touch&#8217; command is a powerful tool, you might encounter some issues when using it. Let&#8217;s discuss some common problems and their solutions.<\/p>\n<h3>Permission Denied Errors<\/h3>\n<p>When using the &#8216;touch&#8217; command, you might encounter a &#8216;Permission denied&#8217; error. This usually happens when you try to create a file in a directory where you don&#8217;t have write permissions.<\/p>\n<pre><code class=\"language-bash line-numbers\">touch \/root\/sample.txt\n\n# Output:\n# touch: cannot touch '\/root\/sample.txt': Permission denied\n<\/code><\/pre>\n<p>To solve this issue, you can use the &#8216;sudo&#8217; command to run &#8216;touch&#8217; with root privileges. However, be careful when using &#8216;sudo&#8217;, as it allows you to modify any part of the system.<\/p>\n<pre><code class=\"language-bash line-numbers\">sudo touch \/root\/sample.txt\n\n# Output:\n# No output if the command is successful. A new file named 'sample.txt' is created in the \/root directory.\n<\/code><\/pre>\n<h3>No Such File or Directory Errors<\/h3>\n<p>Another common issue is the &#8216;No such file or directory&#8217; error. This happens when you try to create a file in a directory that doesn&#8217;t exist.<\/p>\n<pre><code class=\"language-bash line-numbers\">touch \/nonexistent_directory\/sample.txt\n\n# Output:\n# touch: cannot touch '\/nonexistent_directory\/sample.txt': No such file or directory\n<\/code><\/pre>\n<p>To solve this issue, you can create the directory before running the &#8216;touch&#8217; command. You can use the &#8216;mkdir&#8217; command to create directories.<\/p>\n<pre><code class=\"language-bash line-numbers\">mkdir \/home\/user\/new_directory\n\ntouch \/home\/user\/new_directory\/sample.txt\n\n# Output:\n# No output if the command is successful. A new directory named 'new_directory' is created in the \/home\/user directory, and a new file named 'sample.txt' is created in the new_directory.\n<\/code><\/pre>\n<h3>Invalid Option Errors<\/h3>\n<p>The &#8216;touch&#8217; command supports several options, such as &#8216;-a&#8217; to change the access time or &#8216;-m&#8217; to change the modification time. If you use an invalid option, &#8216;touch&#8217; will display an &#8216;Invalid option&#8217; error.<\/p>\n<pre><code class=\"language-bash line-numbers\">touch -z sample.txt\n\n# Output:\n# touch: invalid option -- 'z'\n<\/code><\/pre>\n<p>To solve this issue, check the man page for &#8216;touch&#8217; to see the valid options. You can access the man page by typing &#8216;man touch&#8217; in the terminal.<\/p>\n<pre><code class=\"language-bash line-numbers\">man touch\n\n# Output:\n# The manual page for the 'touch' command is displayed, listing all valid options and their descriptions.\n<\/code><\/pre>\n<h2>Final Considerations<\/h2>\n<p>While the &#8216;touch&#8217; command is simple to use, it&#8217;s important to understand the underlying file system permissions and directory structure to avoid errors. Always check the man page if you&#8217;re unsure about an option, and use &#8216;sudo&#8217; carefully to avoid modifying files unintentionally.<\/p>\n<h2>Understanding File Management and Timestamps in Linux<\/h2>\n<p>Before diving deeper into the &#8216;touch&#8217; command, it&#8217;s essential to understand the fundamentals of file management in Linux. At its core, file management involves creating, modifying, and deleting files and directories.<\/p>\n<h3>The Significance of File Timestamps<\/h3>\n<p>In Linux, every file and directory has three timestamps associated with it:<\/p>\n<ol>\n<li>Access Time (atime): The time when the file was last read.<\/li>\n<li>Modification Time (mtime): The time when the file was last modified.<\/li>\n<li>Change Time (ctime): The time when the file&#8217;s metadata (like permissions or ownership) was last changed.<\/li>\n<\/ol>\n<p>You can view these timestamps using the &#8216;stat&#8217; command:<\/p>\n<pre><code class=\"language-bash line-numbers\">stat sample.txt\n\n# Output:\n# File: sample.txt\n# Size: 0       Blocks: 0       IO Block: 4096  regular empty file\n# Device: 801h\/2049d    Inode: 265633   Links: 1\n# Access: (0644\/-rw-r--r--)  Uid: ( 1000\/    user)   Gid: ( 1000\/    user)\n# Access: 2022-03-01 12:00:00.000000000 +0000\n# Modify: 2022-03-01 12:00:00.000000000 +0000\n# Change: 2022-03-01 12:00:00.000000000 +0000\n# Birth: -\n<\/code><\/pre>\n<p>In this output, the &#8216;Access&#8217;, &#8216;Modify&#8217;, and &#8216;Change&#8217; lines show the three timestamps for the file &#8216;sample.txt&#8217;.<\/p>\n<h3>The Role of &#8216;Touch&#8217; Command in Managing Timestamps<\/h3>\n<p>The &#8216;touch&#8217; command plays a vital role in managing these timestamps. When you &#8216;touch&#8217; a file, you update its access and modification times to the current time. If the file doesn&#8217;t exist, &#8216;touch&#8217; creates a new file. This can be useful in various scenarios, such as when a program depends on the file&#8217;s timestamps to perform certain operations.<\/p>\n<p>For instance, let&#8217;s update the timestamps of our &#8216;sample.txt&#8217; file:<\/p>\n<pre><code class=\"language-bash line-numbers\">touch sample.txt\nstat sample.txt\n\n# Output:\n# The 'Access' and 'Modify' timestamps of 'sample.txt' are updated to the current time.\n<\/code><\/pre>\n<p>As you can see, the &#8216;touch&#8217; command is a powerful tool for managing file timestamps in Linux. Understanding these basics will help you use &#8216;touch&#8217; and other file management commands more effectively.<\/p>\n<h2>Expanding Your Linux Command Toolkit<\/h2>\n<p>The &#8216;touch&#8217; command is just the tip of the iceberg when it comes to file management in Linux. It&#8217;s part of a larger set of commands that allow you to manage files, navigate directories, and automate tasks. Understanding these commands can take your Linux skills to the next level.<\/p>\n<h3>Harnessing the Power of &#8216;Find&#8217; and &#8216;Stat&#8217; Commands<\/h3>\n<p>The &#8216;find&#8217; command allows you to search for files and directories based on different criteria like name, type, size, and modification time. For instance, you can use &#8216;find&#8217; to locate all &#8216;.txt&#8217; files in a directory:<\/p>\n<pre><code class=\"language-bash line-numbers\">find \/home\/user -name '*.txt'\n\n# Output:\n# \/home\/user\/file1.txt\n# \/home\/user\/file2.txt\n# \/home\/user\/file3.txt\n<\/code><\/pre>\n<p>The &#8216;stat&#8217; command, on the other hand, provides detailed information about a file or directory, including its size, permissions, and timestamps. You&#8217;ve already seen an example of &#8216;stat&#8217; in the previous section.<\/p>\n<h3>Automating Tasks with Shell Scripts<\/h3>\n<p>Once you&#8217;re comfortable with individual commands, you can combine them into shell scripts to automate tasks. For example, you could write a script that uses &#8216;touch&#8217; to create a new file, &#8216;echo&#8217; to write content to the file, and &#8216;find&#8217; to locate the file:<\/p>\n<pre><code class=\"language-bash line-numbers\">#!\/bin\/bash\ntouch \/home\/user\/sample.txt\necho \"This is a sample text\" &gt; \/home\/user\/sample.txt\nfind \/home\/user -name 'sample.txt'\n\n# Output:\n# \/home\/user\/sample.txt\n<\/code><\/pre>\n<p>This script creates a new file named &#8216;sample.txt&#8217;, writes some text to it, and then locates the file in the &#8216;\/home\/user&#8217; directory.<\/p>\n<h3>Further Resources for Mastering Linux Commands<\/h3>\n<p>If you&#8217;re interested in learning more about Linux commands and file management, here are a few resources to help you on your journey:<\/p>\n<ol>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.gnu.org\/software\/coreutils\/coreutils.html\" target=\"_blank\" rel=\"noopener\">GNU Core Utilities<\/a>: This is the official documentation for the GNU Core Utilities, which includes &#8216;touch&#8217;.<\/p>\n<\/li>\n<li>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/linuxcommand.org\/\" target=\"_blank\" rel=\"noopener\">The Linux Command Line<\/a>: This website provides a comprehensive introduction to the Linux command line, including tutorials and examples.<\/p>\n<\/li>\n<li>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/tldp.org\/LDP\/abs\/html\/\" target=\"_blank\" rel=\"noopener\">Advanced Bash-Scripting Guide<\/a>: This guide covers advanced topics in bash scripting, including automation and error handling.<\/p>\n<\/li>\n<\/ol>\n<p>By exploring these resources and practicing different commands, you can become proficient in Linux file management and scripting.<\/p>\n<h2>Wrapping Up: Installing the &#8216;Touch&#8217; Command in Linux<\/h2>\n<p>In this comprehensive guide, we&#8217;ve delved into the &#8216;touch&#8217; command in Linux, a versatile tool for file creation and modification. We&#8217;ve explored how to install and use this command, from basic usage for beginners to advanced techniques for more experienced users.<\/p>\n<p>We started with the basics, learning how to install and use the &#8216;touch&#8217; command in Linux. We then delved into more advanced usage, such as installing from source code and dealing with different versions. Along the way, we discussed common issues that you might encounter when using the &#8216;touch&#8217; command, such as permission errors and directory issues, and provided solutions to these problems.<\/p>\n<p>We also looked at alternative methods for file creation and modification in Linux, such as the &#8216;echo&#8217; and &#8216;printf&#8217; commands. 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;touch&#8217;<\/td>\n<td>Quick file creation, updates file timestamps<\/td>\n<td>Cannot add content to files<\/td>\n<\/tr>\n<tr>\n<td>&#8216;echo&#8217;<\/td>\n<td>Creates files and adds content<\/td>\n<td>Overwrites existing content<\/td>\n<\/tr>\n<tr>\n<td>&#8216;printf&#8217;<\/td>\n<td>Creates files and adds content, more control over formatting<\/td>\n<td>More complex syntax<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Whether you&#8217;re a beginner just starting out with Linux or an experienced user looking to expand your command toolkit, we hope this guide has given you a deeper understanding of the &#8216;touch&#8217; command and its alternatives.<\/p>\n<p>With its balance of speed, simplicity, and power, the &#8216;touch&#8217; command is a valuable tool for any Linux user. Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you struggling with creating or modifying files in your Linux environment? The &#8216;touch&#8217; command, akin to a skilled craftsman, can help you effortlessly create or modify the timestamps of your files. Yet, many Linux users might find the task of installing and using this command a bit daunting. But fear not, the &#8216;touch&#8217; command [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":16036,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124,3,9],"tags":[],"class_list":["post-6719","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\/6719","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=6719"}],"version-history":[{"count":6,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/6719\/revisions"}],"predecessor-version":[{"id":15908,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/6719\/revisions\/15908"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media\/16036"}],"wp:attachment":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media?parent=6719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/categories?post=6719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/tags?post=6719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}