

{"id":109309,"date":"2022-05-17T09:00:49","date_gmt":"2022-05-17T03:30:49","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=109309"},"modified":"2022-05-17T09:35:57","modified_gmt":"2022-05-17T04:05:57","slug":"linux-cp-command-with-examples","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/","title":{"rendered":"Linux cp command with Examples"},"content":{"rendered":"<p>In this article, you will learn about the cp command or copy command in Linux. We will go through what the cp command is, its operation modes, and the different options used with the copy command. In the end, we shall also be looking into some practical examples of how to use the copy command.<\/p>\n<h3>What is \u2018cp\u2019 command in Linux?<\/h3>\n<p>Cp is an abbreviation for \u201ccopy\u201d. This tool or utility is one of the easiest to understand. As the name suggests, this tool helps in copying files. The most basic way to use this tool is to copy single or multiple files.<\/p>\n<p>By definition, the cp is a command-line-based utility that helps in copying files and directories in UNIX and Linux-based operating systems. Though the command can get slightly more intimidating than this. It is also capable of copying files and directories in various special ways.<\/p>\n<p>The working of the copy command is very simple, cp simply creates an image of a file on a disk with a different file name. Cp on its own doesn&#8217;t enclose a wide variety of administration scenarios. You can combine cp with many other commands to make the best out of it.<\/p>\n<p>As a Linux user (or any other operating system) copying files and folders is a very common day-to-day task. Just to make things slightly more efficient and simple, the cp command helps in doing the same.<\/p>\n<p>Most Linux users prefer the cp command in the terminal that the GUI!<\/p>\n<h3>Operation modes of Linux cp command<\/h3>\n<p>The cp command has 3 major principle modes of operation. These modes are expressed by the type of arguments given to the program to copy files. These 3 modes are:<\/p>\n<p>1. Copying a file to another file<\/p>\n<p>2. Copying one or more files to a directory<\/p>\n<p>3. Copying entire directories into a directory<\/p>\n<p>These modes depend on the number and type of arguments passed in the cp command. Let us look into each of the modes, this time based on the arguments:<\/p>\n<h4>1. 2 file names (Copying a file to another file)<\/h4>\n<p>If you enter 2 file names in the cp command, the tool copies the contents from the 1st file to the 2nd file (never vice versa). If at all the 2nd file you enter does not exist on your computer, the tool will automatically create the second folder and copy the contents of the 1st folder (the first folder must exist always, else it will print an error)<\/p>\n<h4>2. More than one argument (Copying one or more files to a directory)<\/h4>\n<p>If you enter one or more than 1 argument and also specify the file names followed by a name of a directory, then the cp utility will copy the contents of each of the source files into the destination directory you specify. If at all the destination directory you specify does not exist on your computer, the tool will automatically create a directory with that name.<\/p>\n<h4>3. 2 directory names (Copying entire directories into a directory)<\/h4>\n<p>If you enter 2 directory names in the command, the cp tool will copy the contents of the first (source) directory into the second (destination) directory. This mode of operation needs an extra option \u201c-R\u201d. This is to indicate the recursive copying of directories. If at all the destination directory you specify does not exist on your computer, the tool will automatically create a directory with that name.<\/p>\n<p><strong>Note:<\/strong> You have seen that if a destination file or directory does not exist, the tool will automatically create it for you. However, if it already exists, then it simply overwrites it without any warning, so choose your destination file or directory with care.<\/p>\n<h3>Syntax of cp\/copy command in Linux<\/h3>\n<p>As we have seen, the cp tool has 2 modes of operation. We have also seen that the modes of operation depend on the arguments and count of files we give, hence it is important to know the syntax of each mode of operation. The syntax automatically determines the mode of operation of the cp tool.<\/p>\n<h4>1. Copying a file to another file (2 file names)<\/h4>\n<p>As we have seen, to copy the contents of 1 source file to a destination file we need only 2 files names:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cp &lt;options&gt; &lt;source file&gt; &lt;destination file&gt;<\/pre>\n<h4>2. Copying one or more files to a directory (More than one argument)<\/h4>\n<p>to copy the contents of multiple source files to a destination file, we need to enter the names of the multiple files followed by the destination directory:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cp &lt;options&gt;&lt;source file1&gt;&lt;source file2&gt; &lt; destination directory&gt;<\/pre>\n<h4>3. Copying entire directories into a directory (2 directory names)<\/h4>\n<p>to copy the contents of a source directory to a destination directory, we need to enter the names of the source and destination directories:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cp -R &lt;source directory&gt; &lt;destination directory&gt;<\/pre>\n<h3>Options used with cp command in Linux<\/h3>\n<p>Before we look at how to use the cp command, let&#8217;s get a better picture of the options used with the cp command.<\/p>\n<p><strong>1. &#8211;attributes-only<\/strong><\/p>\n<p>This option copies only the attributes and not the file data.<\/p>\n<p><strong>2. &#8211;backup &lt;control&gt;<\/strong><\/p>\n<p>This option makes a backup of each existing destination file.<\/p>\n<p><strong>3. -b<\/strong><\/p>\n<p>This option is very similar to the \u201c&#8211;backup\u201d option, except this option does not accept any arguments.<\/p>\n<p><strong>4. -copy-contents<\/strong><\/p>\n<p>This option copies contents of special files when recursive.<\/p>\n<p><strong>5. -f \/ &#8211;force<\/strong><\/p>\n<p>This option removes and tries again if an existing destination file cannot be opened.<\/p>\n<p><strong>6. -i \/ &#8211;interactive<\/strong><\/p>\n<p>This option prompts before overwriting.<\/p>\n<p><strong>7. -H<\/strong><\/p>\n<p>This option follows command-line symbolic links in the source.<\/p>\n<p><strong>8. -l \/ &#8211;link<\/strong><\/p>\n<p>This option hard links files instead of copying them.<\/p>\n<p><strong>9. -L \/ &#8211;dereference<\/strong><\/p>\n<p>This option always follows symbolic links in the source.<\/p>\n<p><strong>10. -n<\/strong><\/p>\n<p>This option does not overwrite an existing file.<\/p>\n<p><strong>11. -p<\/strong><\/p>\n<p>This option never follows symbolic links in the source. This option is the complete reverse of the option \u201c-L\u201d.<\/p>\n<p><strong>12. &#8211;parents<\/strong><\/p>\n<p>This option uses the full source file name under the directory.<\/p>\n<p><strong>13. &#8211;remove-destination<\/strong><\/p>\n<p>This option deletes or remove each file before trying to open it.<\/p>\n<p><strong>14. &#8211;sparse = &lt;when&gt;<\/strong><\/p>\n<p>This option controls the creation of sparse filters.<\/p>\n<p><strong>15. &#8211;strip-trailing-slashes<\/strong><\/p>\n<p>This option removes any trailing slashes from each source argument.<\/p>\n<p><strong>16. -s<\/strong><\/p>\n<p>This option makes symbolic links instead of copying.<\/p>\n<p><strong>17. -S<\/strong><\/p>\n<p>This option overrides the usual backup suffix.<\/p>\n<p><strong>18. -t<\/strong><\/p>\n<p>This option copies all source arguments into a directory.<\/p>\n<p><strong>19. -T<\/strong><\/p>\n<p>This option treats the destination as a normal file.<\/p>\n<p><strong>20. -u<\/strong><\/p>\n<p>This option copies only when the source file is newer than the destination file or when the destination file is missing.<\/p>\n<p><strong>21. -v<\/strong><\/p>\n<p>This option provides a verbose for a better understanding of what is being done.<\/p>\n<p><strong>22. -x<\/strong><\/p>\n<p>This option stays on this file system.<\/p>\n<p><strong>23. &#8211; Z<\/strong><\/p>\n<p>This option sets the SELinux security context of the destination file to the default type<\/p>\n<p><strong>24. &#8211;help<\/strong><\/p>\n<p>This option displays all the options, syntax, and use of the cp command to provide a better understanding to the user.<\/p>\n<p><strong>25. &#8211;version<\/strong><\/p>\n<p>This option outputs the version information of the cp tool you are currently using.<\/p>\n<p>PHEW! Those are a lot of options for a command that does a simple task of copying files. If at all you need any help on the syntax or option, you can always use the \u201c&#8211;help\u201d option to get a better understanding<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/cp-help.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109358\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/cp-help.webp\" alt=\"cp help\" width=\"891\" height=\"1120\" \/><\/a><\/p>\n<h3>Examples of cp command<\/h3>\n<p>Now that you have seen the operational modes syntaxes and the different options used with the cp command, let us do a few practical commands that help us copy files and directories.<\/p>\n<h4>Copying a file to a directory<\/h4>\n<p>To copy a file to a directory, you can your the syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cp -R &lt;filename&gt; &lt;directory name&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/copying-a-file-to-a-directory.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109359\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/copying-a-file-to-a-directory.webp\" alt=\"copying a file to a directory\" width=\"1184\" height=\"233\" \/><\/a><\/p>\n<h4>Copying a directory to a directory<\/h4>\n<p>To copy a file to a directory, you can your the syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cp &lt;source&gt; &lt;directory name&gt;<\/pre>\n<h4><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/copying-a-directory-to-a-directory.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109361\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/copying-a-directory-to-a-directory.webp\" alt=\"copying a directory to a directory\" width=\"1024\" height=\"288\" \/><\/a><\/h4>\n<h4>Copying multiple files to a directory<\/h4>\n<p>To copy a file to a directory, you can your the syntax:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">cp &lt;options&gt;&lt;source file1&gt;&lt;source file2&gt; &lt; destination directory&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/copying-multiple-files-to-a-directory.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109362\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/copying-multiple-files-to-a-directory.webp\" alt=\"copying multiple files to a directory\" width=\"957\" height=\"328\" \/><\/a><\/p>\n<h4>Overwriting with prompt<\/h4>\n<p>You can overwrite the files with the same syntax as copying files, however, the names of the files you are copying must already exist in the destination file. If you want cp to prompt when you are overwriting, use the option \u201c-i\u201d.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/overwriting-with-prompt.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109363\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/overwriting-with-prompt.webp\" alt=\"overwriting with prompt\" width=\"1101\" height=\"137\" \/><\/a><\/p>\n<h4>Providing verbose while copying<\/h4>\n<p>To provide verbose while copying files or directories use the option \u201c-v\u201d.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/providing-verbose-while-copying.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109360\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/providing-verbose-while-copying.webp\" alt=\"providing verbose while copying\" width=\"1120\" height=\"290\" \/><\/a><\/p>\n<h4>Avoid overwriting existing files<\/h4>\n<p>If you don\u2019t want to overwrite the existing files, use the \u201c-n\u201d option<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/avoid-overwriting-existing-files.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109364\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/avoid-overwriting-existing-files.webp\" alt=\"avoid overwriting existing files\" width=\"1112\" height=\"73\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>As you have seen, the cp command is a really helpful and efficient tool that helps in copying files. You have now learned the uses of the cp command, its operation modes along with the syntax, the various option used with the cp command, and also some examples of how to use the cp command in overwriting, copying multiple files, providing verbose, prompting and many more.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, you will learn about the cp command or copy command in Linux. We will go through what the cp command is, its operation modes, and the different options used with the&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":109357,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[26880,26879],"class_list":["post-109309","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-copy-command-in-linux","tag-linux-cp-command"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Linux cp command with Examples - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn about cp command or copy command in linux. See its operation modes, and the different options used with the copy command with examples.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux cp command with Examples - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn about cp command or copy command in linux. See its operation modes, and the different options used with the copy command with examples.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-17T03:30:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-17T04:05:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/linux-cp.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Linux cp command with Examples - DataFlair","description":"Learn about cp command or copy command in linux. See its operation modes, and the different options used with the copy command with examples.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/","og_locale":"en_US","og_type":"article","og_title":"Linux cp command with Examples - DataFlair","og_description":"Learn about cp command or copy command in linux. See its operation modes, and the different options used with the copy command with examples.","og_url":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-05-17T03:30:49+00:00","article_modified_time":"2022-05-17T04:05:57+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/linux-cp.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Linux cp command with Examples","datePublished":"2022-05-17T03:30:49+00:00","dateModified":"2022-05-17T04:05:57+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/"},"wordCount":1400,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/linux-cp.webp","keywords":["Copy command in linux","Linux cp command"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/","url":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/","name":"Linux cp command with Examples - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/linux-cp.webp","datePublished":"2022-05-17T03:30:49+00:00","dateModified":"2022-05-17T04:05:57+00:00","description":"Learn about cp command or copy command in linux. See its operation modes, and the different options used with the copy command with examples.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/linux-cp.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/04\/linux-cp.webp","width":1200,"height":628,"caption":"linux cp"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/linux-cp-command-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"Linux cp command with Examples"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/109309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=109309"}],"version-history":[{"count":3,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/109309\/revisions"}],"predecessor-version":[{"id":109366,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/109309\/revisions\/109366"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/109357"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=109309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=109309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=109309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}