{"id":18452,"date":"2022-03-03T15:17:10","date_gmt":"2022-03-03T15:17:10","guid":{"rendered":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/"},"modified":"2022-03-03T15:17:10","modified_gmt":"2022-03-03T15:17:10","slug":"how-to-copy-files-and-directories-in-the-linux-terminal","status":"publish","type":"post","link":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/","title":{"rendered":"How to Copy Files and Directories in the Linux Terminal"},"content":{"rendered":"<p> <a href=\"https:\/\/go.fiverr.com\/visit\/?bta=1052423&nci=17043\" Target=\"_Top\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"https:\/\/fiverr.ck-cdn.com\/tn\/serve\/?cid=40081059\" loading=\"lazy\"  width=\"601\" height=\"201\"><\/a>\n<\/p>\n<div>\n<figure style=\"width: 1200px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage wp-image-733456 size-full \" data-pagespeed-lazy-srcset=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/06\/linux-computer.png?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/06\/linux-computer.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" sizes=\"auto, 400w, 1200w\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/06\/linux-computer.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" loading=\"lazy\" alt=\"Linux terminal in a laptop screen.\" width=\"1200\" height=\"675\" data-crediturl=\"https:\/\/www.shutterstock.com\/image-vector\/command-line-interface-cli-programming-language-1278851809\" data-credittext=\"fatmawati achmad zaenuri\/Shutterstock.com\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" loading=\"lazy\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\"><span class=\"type:primaryImage imagecredit\"><a href=\"https:\/\/www.shutterstock.com\/image-vector\/command-line-interface-cli-programming-language-1278851809\">fatmawati achmad zaenuri\/Shutterstock.com<\/a><\/span><\/figcaption><\/figure>\n<p>Like any other operating system, you can <a href=\"https:\/\/www.howtogeek.com\/203741\/how-to-copy-and-paste-text-into-the-linux-terminal\/\">copy and paste<\/a> files and directories (folders) in a Linux distribution using the desktop interface. But you can save time by copying those files in the Terminal. Here\u2019s how.<\/p>\n<p><strong>RELATED:<\/strong> <a href=\"https:\/\/www.howtogeek.com\/203741\/how-to-copy-and-paste-text-into-the-linux-terminal\/\"><strong><em>How to Copy and Paste Text into the Linux Terminal<\/em><\/strong><\/a><\/p>\n<h2 role=\"heading\" aria-level=\"2\">Copy Files and Directories in Linux<\/h2>\n<p><code>cp<\/code> and <code>rsync<\/code> are two of the most popular commands that you can use to quickly copy files and directories in Linux. We\u2019ll introduce you to both of them.<\/p>\n<h3>Using the cp Command<\/h3>\n<p><code>cp<\/code> stands for copy and is, you guessed it, used to copy files and directories in Linux. You can use <code>cp<\/code> to copy files to a directory, copy one directory to another, and copy multiple files to a single directory. Here are all examples that demonstrate the use of the <code>cp<\/code> command.<\/p>\n<p>Consider\u00a0<code>cp<\/code>\u2018s syntax in its simplest form.<\/p>\n<pre>cp [file] [directory]<\/pre>\n<p>An example of its use would look like this.<\/p>\n<pre>cp Test1.txt copy_Test1_here\/<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-781483 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/01\/cp-command-to-copy-a-file-to-directory-3-e1643230043509.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" loading=\"lazy\" alt=\"cp command to copy a file to directory\" width=\"651\" height=\"176\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" loading=\"lazy\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The above command will copy the text file <code>Test1.txt<\/code> to the <code>copy_Test1_here\/<\/code> directory.<\/p>\n<p>If you have multiple files that you need to copy to one directory, simply list each file with a space in between.<\/p>\n<pre>cp Test1.txt Test2.txt Test3.txt Test4.txt copy_all_Tests_here\/<\/pre>\n<p>You can also copy a file to a directory but save it using a different name. Here\u2019s the syntax for that.<\/p>\n<pre>cp [file] [directory]\/[new filename]<\/pre>\n<p>This will copy the contents of the first tile and save it in the directory as the new filename. A real-life example of the same would look like this.<\/p>\n<p>Given that there\u2019s a file <code>Test1.txt<\/code> that needs to be copied to the directory <code>copy_Test1_here<\/code> as <code>Test2.txt<\/code>\u00a0:<\/p>\n<pre>cp Test1.txt copy_Test1_here\/Test2.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-781482\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/01\/copy-file-to-directory-with-different-name-1.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" loading=\"lazy\" alt=\"copy file to directory with different name\" width=\"650\" height=\"169\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" loading=\"lazy\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Want to keep it in the same directory? You can copy a file and rename it like so:<\/p>\n<pre>cp Test1.txt Test2.txt<\/pre>\n<p>Want to copy an entire directory? Let\u2019s assume that <code>dir_1<\/code> and <code>dir_2<\/code> are two directories in <code>\/Desktop<\/code> . To copy <code>dir_1<\/code> to <code>dir_2<\/code> using the <code>cp<\/code> command, here\u2019s what you need to type.<\/p>\n<pre>cp -a dir_1 dir_2<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-780510 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/01\/cp-copy-a-directory-to-another-directory-e1642817106750.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" loading=\"lazy\" alt=\"cp copy a directory to another directory\" width=\"599\" height=\"123\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" loading=\"lazy\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Here option <code>-a<\/code> stands for \u201carchive\u201d and is used to let the computer know that we\u2019re dealing with directories. The command copies the directory\u00a0<code>dir_1<\/code>\u00a0to <code>dir_2<\/code> .<\/p>\n<p>If you\u2019re unsure if the file or directory was copied to the destination location, you can also use the option <code>-v<\/code> to <a href=\"https:\/\/www.howtogeek.com\/448446\/how-to-use-the-ls-command-on-linux\/\">print the names of the files or directories<\/a> that were copied (like a computer program output).<\/p>\n<p>For example, let\u2019s assume that there\u2019s a file <code>Test_Example<\/code> that needs to be copied to <code>dir_1<\/code> . To display the output of the copy operation, you\u2019d use the <code>-v<\/code> option.<\/p>\n<pre>cp -v Test_Example.txt dir_1<\/pre>\n<p>The output would look like this:<\/p>\n<pre>'Test_Example.txt' -&gt; 'dir_1\/Test_Example.txt<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-781485 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/01\/cp-with-verbose-output-e1643230065634.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" loading=\"lazy\" alt=\"cp with verbose output\" width=\"648\" height=\"101\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" loading=\"lazy\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p><strong>RELATED:<\/strong> <a href=\"https:\/\/www.howtogeek.com\/412055\/37-important-linux-commands-you-should-know\/\"><strong><em>37 Important Linux Commands You Should Know<\/em><\/strong><\/a><\/p>\n<h3>Using the Rsync Command<\/h3>\n<p>The <code>rsync<\/code> command stands for \u201cRemote Sync\u201d and is primarily used to <a href=\"https:\/\/www.howtogeek.com\/135533\/how-to-use-rsync-to-backup-your-data-on-linux\/\">transfer files and directories<\/a> between computers on the same network. However, it also allows copying files and directories on the same PC. Here are some examples.<\/p>\n<p><strong>RELATED:<\/strong> <a href=\"https:\/\/www.howtogeek.com\/135533\/how-to-use-rsync-to-backup-your-data-on-linux\/\"><strong><em>How to Use rsync to Backup Your Data on Linux<\/em><\/strong><\/a><\/p>\n<p>Considering that we have two directories <code>dir_1<\/code> , <code>dir_2<\/code> , and a file <code>Test.txt<\/code> in <code>dir_1<\/code> . If we want to copy the file to <code>dir_2<\/code> , here\u2019s what the <code>rsync<\/code> command to do the same would look like.<\/p>\n<pre>rsync -v dir_1\/Test.txt dir_2&#13;\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-781484 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/01\/rsync-copy-a-file-to-directory-1-e1643230286189.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" loading=\"lazy\" alt=\"rsync copy a file to directory\" width=\"648\" height=\"189\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" loading=\"lazy\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/pre>\n<p>Here <code>-v<\/code> is short for \u201cverbose.\u201d It causes the details of the file transfer to appear, similar to the <code>-v<\/code>\u00a0option in the <code>cp<\/code> command. This allows you to confirm the copy was successful. Here\u2019s what the output will be in our case:<\/p>\n<pre>sent 110 bytes  received 35 bytes 290.00 bytes\/sec&#13;\ntotal size is 24 speedup is 0.17<\/pre>\n<p>You can also copy multiple files at once from one directory to another.\u00a0Assume that you\u2019re in <code>\/Desktop<\/code> in which there are two directories <code>dir_1<\/code> and <code>dir_2<\/code> . <code>dir_1<\/code> has four files <code>test1<\/code> , <code>test2<\/code> , <code>test3<\/code> , and <code>test4<\/code> and you want to copy them to <code>dir_2<\/code>. Here\u2019s how you can do that using <code>rsync<\/code>:<\/p>\n<pre>rsync -v\u00a0dir_1\/Test1.txt dir_1\/Test2.txt dir_1\/Test3.txt dir_1\/Test4.txt dir_2<\/pre>\n<p>The above command will copy the files <code>test1<\/code> , <code>test2<\/code> , <code>test3<\/code> , and <code>test4<\/code> to the directory <code>dir_2<\/code> .<\/p>\n<p>To copy one directory to another, we must use the <code>-a<\/code> option. Here\u2019s an example of how to copy directories using Rsync.<\/p>\n<pre>rsync -av dir_1 dir_2<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-781486 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/01\/rsync-copy-a-directory-to-directory-1-e1643230305453.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" loading=\"lazy\" alt=\"rsync copy a directory to directory\" width=\"650\" height=\"291\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" loading=\"lazy\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you\u2019re new to Linux and commands seem hard to follow, make sure to take your time and familiarize yourself with <a href=\"https:\/\/www.howtogeek.com\/757339\/10-basic-linux-commands-for-beginners\/\">basic Linux commands<\/a> first. You can also learn a lot about commands by using the <a href=\"https:\/\/www.howtogeek.com\/663440\/how-to-use-linuxs-man-command-hidden-secrets-and-basics\/\"><code>man<\/code>\u00a0command<\/a>.<\/p>\n<p>Apart from <code>rsync<\/code> and <code>cp<\/code>, <a href=\"https:\/\/www.howtogeek.com\/411366\/how-to-copy-files-with-the-install-command-on-linux\/\">the <code>install<\/code> command<\/a> also allows you to copy files in Linux.<\/p>\n<p><strong>RELATED:<\/strong> <a href=\"https:\/\/www.howtogeek.com\/411366\/how-to-copy-files-with-the-install-command-on-linux\/\"><strong><em>How to Copy Files Using the &#8220;install&#8221; Command on Linux<\/em><\/strong><\/a><\/p>\n<\/div>\n<iframe data-lazy=\"true\" data-src=\"https:\/\/www.fiverr.com\/gig_widgets?id=U2FsdGVkX18x7XQvttUTrv1oEqmGNGTgvvCUiUoJ\/AP4z\/UyMz8lXGOLpu15jIMxBbTR0gmD5uBoFvhC4KWeALQRp3h\/X\/AwcVD0K8Wj9H\/ZzYKzcCNHosB9oS4SCJJFWiN85P9ICAc4OgCoE\/wHKIY7CDkf2\/DQ1vqGvk4smVe5cRDEmrLPCWi4FC8p40VUhSmWQ5udCm0zoJtorgWv3vbDQw0kKYkwn39ozAnQXDe+YvWMxkLFWA+O3TFwkJvdkIK+\/AUSnRssPKt5WHY0FhNOxnSPcLslEL4G4\/RfP95ve99U+kRnDy3X+KtzdQLY+u935ghON\/o3UE4IMv9oN6JX9RnxzL\/LRcOgnHigxStSGPKsZYtnz8RWNVT\/rOLAibqiWJadC5MYHRbekF3eg6FOGrQGkXYbsn0+a5aovnlLCbLwIqY9fcS17UX8J235iQ6cdmHNbrPeS84CMm34RA==&affiliate_id=1052423&strip_google_tagmanager=true\" loading=\"lazy\" data-with-title=\"true\" class=\"fiverr_nga_frame\" frameborder=\"0\" height=\"350\" width=\"100%\" referrerpolicy=\"no-referrer-when-downgrade\" data-mode=\"random_gigs\" onload=\" var frame = this; var script = document.createElement('script'); script.addEventListener('load', function() { window.FW_SDK.register(frame); }); script.setAttribute('src', 'https:\/\/www.fiverr.com\/gig_widgets\/sdk'); document.body.appendChild(script); \" ><\/iframe>\n<br \/><a href=\"https:\/\/www.howtogeek.com\/778790\/how-to-copy-files-and-directories-in-linux-terminal\/\">Source link <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>fatmawati achmad zaenuri\/Shutterstock.com Like any other operating system, you can copy and paste files and directories (folders) in a Linux distribution using the desktop interface&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":18453,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-18452","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-universe"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Copy Files and Directories in the Linux Terminal - mailinvest.blog<\/title>\n<meta name=\"description\" content=\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Copy Files and Directories in the Linux Terminal - mailinvest.blog\" \/>\n<meta property=\"og:description\" content=\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/\" \/>\n<meta property=\"og:site_name\" content=\"mailinvest.blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/freelanceracademic\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-03T15:17:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/03\/linux-computer.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2392\" \/>\n\t<meta property=\"og:image:height\" content=\"1342\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin@mailinvest.blog\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin@mailinvest.blog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/\"},\"author\":{\"name\":\"admin@mailinvest.blog\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/person\\\/012701c4c204d4e4ebd34f926cfd31a4\"},\"headline\":\"How to Copy Files and Directories in the Linux Terminal\",\"datePublished\":\"2022-03-03T15:17:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/\"},\"wordCount\":682,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/linux-computer.png\",\"articleSection\":[\"Tech Universe\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/\",\"name\":\"How to Copy Files and Directories in the Linux Terminal - mailinvest.blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/linux-computer.png\",\"datePublished\":\"2022-03-03T15:17:10+00:00\",\"description\":\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/#primaryimage\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/linux-computer.png\",\"contentUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/linux-computer.png\",\"width\":2392,\"height\":1342},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/2022\\\/03\\\/03\\\/how-to-copy-files-and-directories-in-the-linux-terminal\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mailinvest.blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Copy Files and Directories in the Linux Terminal\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#website\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/\",\"name\":\"mailinvest.blog\",\"description\":\"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis. mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.\",\"publisher\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mailinvest.blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#organization\",\"name\":\"mailinvest\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/default.png\",\"contentUrl\":\"https:\\\/\\\/mailinvest.blog\\\/wp-content\\\/uploads\\\/2022\\\/01\\\/default.png\",\"width\":1000,\"height\":1000,\"caption\":\"mailinvest\"},\"image\":{\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/freelanceracademic\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/mailinvest.blog\\\/#\\\/schema\\\/person\\\/012701c4c204d4e4ebd34f926cfd31a4\",\"name\":\"admin@mailinvest.blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g\",\"caption\":\"admin@mailinvest.blog\"},\"sameAs\":[\"https:\\\/\\\/mailinvest.blog\",\"admin@mailinvest.blog\"],\"url\":\"https:\\\/\\\/mailinvest.blog\\\/index.php\\\/author\\\/adminmailinvest-blog\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Copy Files and Directories in the Linux Terminal - mailinvest.blog","description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","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:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/","og_locale":"en_US","og_type":"article","og_title":"How to Copy Files and Directories in the Linux Terminal - mailinvest.blog","og_description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","og_url":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/","og_site_name":"mailinvest.blog","article_publisher":"https:\/\/www.facebook.com\/freelanceracademic\/","article_published_time":"2022-03-03T15:17:10+00:00","og_image":[{"width":2392,"height":1342,"url":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/03\/linux-computer.png","type":"image\/png"}],"author":"admin@mailinvest.blog","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin@mailinvest.blog","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/#article","isPartOf":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/"},"author":{"name":"admin@mailinvest.blog","@id":"https:\/\/mailinvest.blog\/#\/schema\/person\/012701c4c204d4e4ebd34f926cfd31a4"},"headline":"How to Copy Files and Directories in the Linux Terminal","datePublished":"2022-03-03T15:17:10+00:00","mainEntityOfPage":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/"},"wordCount":682,"commentCount":0,"publisher":{"@id":"https:\/\/mailinvest.blog\/#organization"},"image":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/#primaryimage"},"thumbnailUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/03\/linux-computer.png","articleSection":["Tech Universe"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/","url":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/","name":"How to Copy Files and Directories in the Linux Terminal - mailinvest.blog","isPartOf":{"@id":"https:\/\/mailinvest.blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/#primaryimage"},"image":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/#primaryimage"},"thumbnailUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/03\/linux-computer.png","datePublished":"2022-03-03T15:17:10+00:00","description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis.mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what's new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","breadcrumb":{"@id":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/#primaryimage","url":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/03\/linux-computer.png","contentUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/03\/linux-computer.png","width":2392,"height":1342},{"@type":"BreadcrumbList","@id":"https:\/\/mailinvest.blog\/index.php\/2022\/03\/03\/how-to-copy-files-and-directories-in-the-linux-terminal\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mailinvest.blog\/"},{"@type":"ListItem","position":2,"name":"How to Copy Files and Directories in the Linux Terminal"}]},{"@type":"WebSite","@id":"https:\/\/mailinvest.blog\/#website","url":"https:\/\/mailinvest.blog\/","name":"mailinvest.blog","description":"Technology is forever changing, and there are always new pieces of technology to replace obsolete ones. Tons of people enjoy reading tech blogs on a daily basis. mailinvest.blog tracks all the latest consumer technology breakthroughs and shows you what&#039;s new, what matters and how technology can enrich your life. mailinvest.blog also provides the information, tools, and advice that helps when deciding what to buy.","publisher":{"@id":"https:\/\/mailinvest.blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mailinvest.blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mailinvest.blog\/#organization","name":"mailinvest","url":"https:\/\/mailinvest.blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mailinvest.blog\/#\/schema\/logo\/image\/","url":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/01\/default.png","contentUrl":"https:\/\/mailinvest.blog\/wp-content\/uploads\/2022\/01\/default.png","width":1000,"height":1000,"caption":"mailinvest"},"image":{"@id":"https:\/\/mailinvest.blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/freelanceracademic\/"]},{"@type":"Person","@id":"https:\/\/mailinvest.blog\/#\/schema\/person\/012701c4c204d4e4ebd34f926cfd31a4","name":"admin@mailinvest.blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/98ed217bd0f3d6a6dcae2d9b0c76e305b049a07275e315e1407e19ec8b08e139?s=96&d=mm&r=g","caption":"admin@mailinvest.blog"},"sameAs":["https:\/\/mailinvest.blog","admin@mailinvest.blog"],"url":"https:\/\/mailinvest.blog\/index.php\/author\/adminmailinvest-blog\/"}]}},"_links":{"self":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/posts\/18452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/comments?post=18452"}],"version-history":[{"count":0,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/posts\/18452\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/media\/18453"}],"wp:attachment":[{"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/media?parent=18452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/categories?post=18452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mailinvest.blog\/index.php\/wp-json\/wp\/v2\/tags?post=18452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}