{"id":1388,"date":"2023-07-05T05:50:59","date_gmt":"2023-07-05T05:50:59","guid":{"rendered":"https:\/\/www.dedicatedcore.com\/blog\/?p=1388"},"modified":"2024-10-15T10:17:35","modified_gmt":"2024-10-15T10:17:35","slug":"xargs-command-linux","status":"publish","type":"post","link":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/","title":{"rendered":"How to Use xargs Command in Linux"},"content":{"rendered":"<p>Exploring the vast array of commands available in Linux frequently reveals little-known secrets that greatly boost command-line productivity. Of them, the &#8216;xargs&#8217; command stands out as a flexible instrument that provides a smooth means of converting regular input into useful commands. Gaining an understanding of the subtleties of &#8216;xargs&#8217; will help you. The Node.js VPS hosting offers <a href=\"https:\/\/www.dedicatedcore.com\/best-node-js-vps-hosting-mongodb\/\" target=\"_blank\" rel=\"noopener\">single-threaded programming<\/a> with MongoDB for efficient data handling and responsiveness.<\/p>\n<p>Especially to handle complex data changes with grace and streamline repetitious operations. This exploration aims to reveal the versatility and power of the Linux &#8216;xargs&#8217; tool. It offers useful tips and examples to enhance your command-line skills. Launch your windows vps hosting with <a href=\"https:\/\/www.dedicatedcore.com\/windows-vps-hosting-usa\/\" target=\"_blank\" rel=\"noopener\">high quality CPU and RAM<\/a> allocation in USA to run your server with the latest software.<\/p>\n<p>Some Linux commands accept parameters as command-line arguments in addition to input from the standard input (stdin). Others, on the other hand, are made to accept suggestions simply as an argument. Those Linux commands must make use of the xargs command to handle the standard input. To clear the Linux terminal screen which can improve your productivity to <a href=\"https:\/\/www.dedicatedcore.com\/blog\/clear-terminal-linux\/\" target=\"_blank\" rel=\"noopener\">concentrate on the current task<\/a> a &#8220;clear&#8221; command is been used.<\/p>\n<p><strong>Required Conditions<\/strong><\/p>\n<ul>\n<li>One that is running Linux<\/li>\n<li>Having access to the command line<\/li>\n<\/ul>\n<p><strong>What is the command for xargs?<\/strong><\/p>\n<p>Commands supplied via standard input are assembled and carried out by the xargs command. It accepts the input and transforms it into an argument for a command that will be used later. This capability is very helpful when using xargs in conjunction with operations like rm, cp, mkdir, and others in file management.<\/p>\n<p><strong>Examples of the xargs Command in Action<\/strong><\/p>\n<p>When used independently, xargs requests a text string from the user, which it then sends to the echo command.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1840\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/how-to-use-xargs-command.png\" alt=\"output from xargs command\" width=\"800\" height=\"150\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/how-to-use-xargs-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/how-to-use-xargs-command-300x56.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/how-to-use-xargs-command-150x28.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/how-to-use-xargs-command-768x144.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/how-to-use-xargs-command-100x19.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/how-to-use-xargs-command-700x131.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>The example displays an example input and then the echo command&#8217;s output.<\/p>\n<h4>Combine find with xargs.<\/h4>\n<p>In a pipeline, the search command frequently comes before xargs. Use it to supply a list of files so that xargs can handle them further. This is how the syntax appears:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find [location] -name \"[search-term]\" -type f | xargs [command]<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1841\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-location-command-files.png\" alt=\"command to find files\" width=\"800\" height=\"190\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-location-command-files.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-location-command-files-300x71.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-location-command-files-150x36.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-location-command-files-768x182.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-location-command-files-100x24.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/find-location-command-files-700x166.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>The aforementioned example shows how to locate all files with the.sh extension using the search command. After that, the list of files is fed to xargs, which deletes them using the rm command.<\/p>\n<p>However, files with blank spaces in their names are not automatically included by xargs.Use the -print0 option for find and the -0 option for xargs to include those files as well.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find [location] -name \"[search-term]\" -type f -print0 | xargs -0 [command]<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1842\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-from-find-xargs-command.png\" alt=\"using-xargs-command-with-find-command\" width=\"800\" height=\"210\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-from-find-xargs-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-from-find-xargs-command-300x79.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-from-find-xargs-command-150x39.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-from-find-xargs-command-768x202.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-from-find-xargs-command-100x26.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/output-from-find-xargs-command-700x184.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>At this point, all files ending in.sh are removed using rm.<\/p>\n<h4>Combine grep with xargs.<\/h4>\n<p>To find a string in the file list that the find command provides, use xargs and the grep command.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find . -name '[search-term]' | xargs grep '[string-to-find-in-files]'<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1843\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/use-xargs-grep-command-search-string.png\" alt=\"combine xargs with with grep\" width=\"800\" height=\"191\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/use-xargs-grep-command-search-string.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/use-xargs-grep-command-search-string-300x72.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/use-xargs-grep-command-search-string-150x36.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/use-xargs-grep-command-search-string-768x183.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/use-xargs-grep-command-search-string-100x24.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/use-xargs-grep-command-search-string-700x167.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>The aforementioned example looked for all files ending in.txt and piped them to xargs, which ran the grep command on them.<\/p>\n<h4>Xargs Several Invocations<\/h4>\n<p>Use the -I option to run more than one command with xargs. This is the syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[command-providing-input] | xargs -I % sh -c '[command-1] %; [command-2] %'<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1844\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-multiple-command.png\" alt=\"command for xargs multiple commands\" width=\"800\" height=\"230\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-multiple-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-multiple-command-300x86.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-multiple-command-150x43.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-multiple-command-768x221.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-multiple-command-100x29.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-multiple-command-700x201.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>The contents of file4.txt were shown first in the example. Then, for every word in the file, mkdir created a folder.<\/p>\n<h4>Examine Items From File<\/h4>\n<p>As previously stated, the standard input is read by xargs. To read the contents of a file, use the -a option instead.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">xargs -a [filename]<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1845\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-use-a-option-read-contents-file-instead.png\" alt=\"read items from file\" width=\"800\" height=\"150\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-use-a-option-read-contents-file-instead.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-use-a-option-read-contents-file-instead-300x56.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-use-a-option-read-contents-file-instead-150x28.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-use-a-option-read-contents-file-instead-768x144.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-use-a-option-read-contents-file-instead-100x19.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-use-a-option-read-contents-file-instead-700x131.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h4>Locate and Save Pictures Applying tar<\/h4>\n<p>When xargs is used with the tar command, it generates a tar.gz archive and adds files from the find command to it.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">find [location] -name \"[search-term]\" -type f -print0 | xargs -0 tar -cvzf [tar-gz-archive-name]<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1846\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tar-command-find-command.png\" alt=\"files by find command used with tar command\" width=\"800\" height=\"290\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tar-command-find-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tar-command-find-command-300x109.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tar-command-find-command-150x54.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tar-command-find-command-768x278.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tar-command-find-command-100x36.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/tar-command-find-command-700x254.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h4>Print Order<\/h4>\n<p>Use the -t option to view the commands that xargs is executing in standard output.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[command-providing-input] | xargs -t [command]<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1847\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-providing-input.png\" alt=\"commands executed by xargs in standard output using -t option\" width=\"800\" height=\"208\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-providing-input.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-providing-input-300x78.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-providing-input-150x39.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-providing-input-768x200.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-providing-input-100x26.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-providing-input-700x182.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>Take note of how xargs used the complete string supplied by echo to carry out the mkdir command in the example above.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">xargs Command Execution Approved<\/pre>\n<p>Certain xargs operations are irreversible, such as deleting directories and files. Use the -p option to regulate how those commands are executed.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[command-providing-input] | xargs -p [command]<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1848\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-p-command.png\" alt=\"approve xargs command execution\" width=\"800\" height=\"147\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-p-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-p-command-300x55.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-p-command-150x28.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-p-command-768x141.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-p-command-100x18.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-p-command-700x129.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>Before running the program, xargs shows a confirmation line when you use the -p option. Press y to continue or n to stop the process.<\/p>\n<h4>Maximum Output for Each Line<\/h4>\n<p>Controlling the total amount of arguments that xargs accepts at once is sometimes required. Use the -n option and the amount of arguments you want to limit xargs to to carry out this action:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[command-providing-input] | xargs -n [number] [command]<\/pre>\n<p>Xargs divides the string from the echo command into three parts in the example below. After that, it does a second echo for every component:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1849\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-n-command.png\" alt=\"command limits arguments xargs takes at same time\" width=\"800\" height=\"189\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-n-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-n-command-300x71.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-n-command-150x35.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-n-command-768x181.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-n-command-100x24.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-n-command-700x165.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h4>Indicate the separator.<\/h4>\n<p>A blank space is used as the xargs delimiter by default. Use the -d command followed by a single character or an escape character, like n (a new line), to modify the default delimiter.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">[command-providing-input] | xargs -d [new-delimiter] | xargs [command]<\/pre>\n<p>The xargs command in the example below tells the system to apply mkdir to each of the acquired arguments and use * as a delimiter.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1850\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-d-command.png\" alt=\"change the default delimiter\" width=\"800\" height=\"189\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-d-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-d-command-300x71.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-d-command-150x35.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-d-command-768x181.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-d-command-100x24.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/xargs-d-command-700x165.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h3>Enumerate Every Linux User Account on the Device<\/h3>\n<p>To arrange the output of operations like cut, use xargs. Take a look at this instance:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cut -d: -f1 &lt; \/etc\/passwd | sort | xargs<\/pre>\n<p>The etc\/passwd file is accessed by the cut command, which uses the : delimiter to break each line&#8217;s start in the file. Next, the output is fed to sort, which arranges the strings that were received, and lastly to the xargs window that shows them.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1851\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-list-all-linux-user-accounts-system.png\" alt=\"using xargs to organize output of commands\" width=\"800\" height=\"259\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-list-all-linux-user-accounts-system.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-list-all-linux-user-accounts-system-300x97.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-list-all-linux-user-accounts-system-150x49.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-list-all-linux-user-accounts-system-768x249.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-list-all-linux-user-accounts-system-100x32.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/command-list-all-linux-user-accounts-system-700x227.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h3>Eliminate White Spaces from the String<\/h3>\n<p>The xargs program is helpful for eliminating extra blank spaces from strings because it ignores them when searching for arguments.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">echo \"[string-with-unnecessary-spaces]\" | xargs<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1855\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-xargs-command-remove-blank-spaces.png\" alt=\"remove blank spaces in string\" width=\"800\" height=\"150\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-xargs-command-remove-blank-spaces.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-xargs-command-remove-blank-spaces-300x56.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-xargs-command-remove-blank-spaces-150x28.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-xargs-command-remove-blank-spaces-768x144.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-xargs-command-remove-blank-spaces-100x19.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-xargs-command-remove-blank-spaces-700x131.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h4>List Every File&#8217;s Lines, Words, and Characters<\/h4>\n<p>To see a list of files with the line, word, and character counts, use xargs in conjunction with the wc command.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">ls | xargs wc<\/pre>\n<p>The ls command was directed in the example below to pipe to xargs just the files that included the word &#8220;example.&#8221; After that, xargs added wc to that list:<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1854\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/ls-xargs-wc-command.png\" alt=\"wc command display list of files with line, word, character count\" width=\"800\" height=\"210\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/ls-xargs-wc-command.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/ls-xargs-wc-command-300x79.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/ls-xargs-wc-command-150x39.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/ls-xargs-wc-command-768x202.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/ls-xargs-wc-command-100x26.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/ls-xargs-wc-command-700x184.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<h4>Transfer File to Several Directories<\/h4>\n<p>Use xargs to copy files to several folders. The syntax is easy to understand:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">echo [directory-1] [directory-2] | xargs -n 1 cp -v [filename]<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1853\" src=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-cp-command-copy-files.png\" alt=\"cp command to copy given files to each directories\" width=\"800\" height=\"209\" srcset=\"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-cp-command-copy-files.png 800w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-cp-command-copy-files-300x78.png 300w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-cp-command-copy-files-150x39.png 150w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-cp-command-copy-files-768x201.png 768w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-cp-command-copy-files-100x26.png 100w, https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/echo-cp-command-copy-files-700x183.png 700w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/strong><\/p>\n<p>Directory names are provided by the echo command, and xargs copies the specified file into each directory using the cp command.<\/p>\n<h3>Final Words on How to Use xargs Command in Linux<\/h3>\n<p>The &#8216;xargs&#8217; command is a dynamic force that simplifies input handling and turns tedious jobs into efficient operations in the complex web of Linux command-line utilities. As we come to the end of our exploration of &#8216;xargs&#8217;, think about the newfound versatility it adds to your command-line toolkit. &#8216;xargs&#8217; is a useful tool for Linux users, as it may simplify complex procedures and analyze enormous datasets with ease.<\/p>\n<p>Accept its possibilities, play about with its syntax, and see for yourself how this modest command may revolutionize your command-line experience. Upon finishing this course, you ought to be familiar with using the xargs program. The article gave an overview of the available command options and demonstrated how to utilize xargs in conjunction with commonly used commands.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exploring the vast array of commands available in Linux frequently reveals little-known secrets that greatly boost command-line productivity. Of them, the &#8216;xargs&#8217; command stands out&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1857,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Exploring the vast array of commands available in Linux frequently reveals little-known secrets that greatly boost command-line productivity. Of them, the &#039;xargs&#039; command stands out as a flexible instrument that provides a smooth means of converting regular input into useful commands. Gaining an understanding of the subtleties of &#039;xargs&#039; will help you. The Node.js VPS\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"DC Team\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"DedicatedCore Blog - Great platform to start your startup journey\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"To Use Xargs Command in Linux [Explained with Examples]\" \/>\n\t\t<meta property=\"og:description\" content=\"Exploring the vast array of commands available in Linux frequently reveals little-known secrets that greatly boost command-line productivity. Of them, the &#039;xargs&#039; command stands out as a flexible instrument that provides a smooth means of converting regular input into useful commands. Gaining an understanding of the subtleties of &#039;xargs&#039; will help you. The Node.js VPS\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-07-05T05:50:59+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-10-15T10:17:35+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"To Use Xargs Command in Linux [Explained with Examples]\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Exploring the vast array of commands available in Linux frequently reveals little-known secrets that greatly boost command-line productivity. Of them, the &#039;xargs&#039; command stands out as a flexible instrument that provides a smooth means of converting regular input into useful commands. Gaining an understanding of the subtleties of &#039;xargs&#039; will help you. The Node.js VPS\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/#blogposting\",\"name\":\"To Use Xargs Command in Linux [Explained with Examples]\",\"headline\":\"How to Use xargs Command in Linux\",\"author\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/wp-content\\\/uploads\\\/linux-command-xargs.png\",\"width\":750,\"height\":380,\"caption\":\"use of linux xargs command\"},\"datePublished\":\"2023-07-05T05:50:59+00:00\",\"dateModified\":\"2024-10-15T10:17:35+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/#webpage\"},\"articleSection\":\"Uncategorized\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/#listItem\",\"position\":2,\"name\":\"Uncategorized\",\"item\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/#listItem\",\"name\":\"How to Use xargs Command in Linux\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/#listItem\",\"position\":3,\"name\":\"How to Use xargs Command in Linux\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/c\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#organization\",\"name\":\"DedicatedCore\",\"description\":\"Great platform to start your startup journey\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/\",\"telephone\":\"+919112444404\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/\",\"name\":\"DC Team\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b10cf0351b12192a46d71dedb93fe77b?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"DC Team\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/#webpage\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/\",\"name\":\"To Use Xargs Command in Linux [Explained with Examples]\",\"description\":\"Exploring the vast array of commands available in Linux frequently reveals little-known secrets that greatly boost command-line productivity. Of them, the 'xargs' command stands out as a flexible instrument that provides a smooth means of converting regular input into useful commands. Gaining an understanding of the subtleties of 'xargs' will help you. The Node.js VPS\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/author\\\/iseenlab\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/wp-content\\\/uploads\\\/linux-command-xargs.png\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/#mainImage\",\"width\":750,\"height\":380,\"caption\":\"use of linux xargs command\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/xargs-command-linux\\\/#mainImage\"},\"datePublished\":\"2023-07-05T05:50:59+00:00\",\"dateModified\":\"2024-10-15T10:17:35+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/\",\"name\":\"DedicatedCore Blog\",\"description\":\"Great platform to start your startup journey\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dedicatedcore.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"To Use Xargs Command in Linux [Explained with Examples]","description":"Exploring the vast array of commands available in Linux frequently reveals little-known secrets that greatly boost command-line productivity. Of them, the 'xargs' command stands out as a flexible instrument that provides a smooth means of converting regular input into useful commands. Gaining an understanding of the subtleties of 'xargs' will help you. The Node.js VPS","canonical_url":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/#blogposting","name":"To Use Xargs Command in Linux [Explained with Examples]","headline":"How to Use xargs Command in Linux","author":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author"},"publisher":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/linux-command-xargs.png","width":750,"height":380,"caption":"use of linux xargs command"},"datePublished":"2023-07-05T05:50:59+00:00","dateModified":"2024-10-15T10:17:35+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/#webpage"},"isPartOf":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/#webpage"},"articleSection":"Uncategorized"},{"@type":"BreadcrumbList","@id":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.dedicatedcore.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/#listItem","name":"Uncategorized"}},{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/#listItem","position":2,"name":"Uncategorized","item":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/#listItem","name":"How to Use xargs Command in Linux"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/#listItem","position":3,"name":"How to Use xargs Command in Linux","previousItem":{"@type":"ListItem","@id":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/#listItem","name":"Uncategorized"}}]},{"@type":"Organization","@id":"https:\/\/www.dedicatedcore.com\/blog\/#organization","name":"DedicatedCore","description":"Great platform to start your startup journey","url":"https:\/\/www.dedicatedcore.com\/blog\/","telephone":"+919112444404"},{"@type":"Person","@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author","url":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/","name":"DC Team","image":{"@type":"ImageObject","@id":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/b10cf0351b12192a46d71dedb93fe77b?s=96&d=mm&r=g","width":96,"height":96,"caption":"DC Team"}},{"@type":"WebPage","@id":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/#webpage","url":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/","name":"To Use Xargs Command in Linux [Explained with Examples]","description":"Exploring the vast array of commands available in Linux frequently reveals little-known secrets that greatly boost command-line productivity. Of them, the 'xargs' command stands out as a flexible instrument that provides a smooth means of converting regular input into useful commands. Gaining an understanding of the subtleties of 'xargs' will help you. The Node.js VPS","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/#breadcrumblist"},"author":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author"},"creator":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/author\/iseenlab\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.dedicatedcore.com\/blog\/wp-content\/uploads\/linux-command-xargs.png","@id":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/#mainImage","width":750,"height":380,"caption":"use of linux xargs command"},"primaryImageOfPage":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/#mainImage"},"datePublished":"2023-07-05T05:50:59+00:00","dateModified":"2024-10-15T10:17:35+00:00"},{"@type":"WebSite","@id":"https:\/\/www.dedicatedcore.com\/blog\/#website","url":"https:\/\/www.dedicatedcore.com\/blog\/","name":"DedicatedCore Blog","description":"Great platform to start your startup journey","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.dedicatedcore.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"DedicatedCore Blog - Great platform to start your startup journey","og:type":"article","og:title":"To Use Xargs Command in Linux [Explained with Examples]","og:description":"Exploring the vast array of commands available in Linux frequently reveals little-known secrets that greatly boost command-line productivity. Of them, the 'xargs' command stands out as a flexible instrument that provides a smooth means of converting regular input into useful commands. Gaining an understanding of the subtleties of 'xargs' will help you. The Node.js VPS","og:url":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/","article:published_time":"2023-07-05T05:50:59+00:00","article:modified_time":"2024-10-15T10:17:35+00:00","twitter:card":"summary_large_image","twitter:title":"To Use Xargs Command in Linux [Explained with Examples]","twitter:description":"Exploring the vast array of commands available in Linux frequently reveals little-known secrets that greatly boost command-line productivity. Of them, the 'xargs' command stands out as a flexible instrument that provides a smooth means of converting regular input into useful commands. Gaining an understanding of the subtleties of 'xargs' will help you. The Node.js VPS"},"aioseo_meta_data":{"post_id":"1388","title":"To Use Xargs Command in Linux [Explained with Examples]","description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2023-12-20 06:07:31","updated":"2026-08-13 18:02:02","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.dedicatedcore.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/\" title=\"Uncategorized\">Uncategorized<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tHow to Use xargs Command in Linux\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.dedicatedcore.com\/blog"},{"label":"Uncategorized","link":"https:\/\/www.dedicatedcore.com\/blog\/c\/uncategorized\/"},{"label":"How to Use xargs Command in Linux","link":"https:\/\/www.dedicatedcore.com\/blog\/xargs-command-linux\/"}],"_links":{"self":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/1388"}],"collection":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/comments?post=1388"}],"version-history":[{"count":11,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/1388\/revisions"}],"predecessor-version":[{"id":2453,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/posts\/1388\/revisions\/2453"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media\/1857"}],"wp:attachment":[{"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/media?parent=1388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/categories?post=1388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dedicatedcore.com\/blog\/wp-json\/wp\/v2\/tags?post=1388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}