{"id":1758,"date":"2022-12-01T12:30:00","date_gmt":"2022-12-01T18:30:00","guid":{"rendered":"https:\/\/www.linuxcloudvps.com\/blog\/?p=1758"},"modified":"2023-08-29T09:18:43","modified_gmt":"2023-08-29T14:18:43","slug":"10-useful-tar-commands-in-linux-with-examples","status":"publish","type":"post","link":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/","title":{"rendered":"10 Useful tar Commands in Linux With Examples"},"content":{"rendered":"\n<p>This blog post will show you the ten most used tar <a href=\"https:\/\/www.linuxcloudvps.com\" title=\"\">commands in Linux<\/a> with examples.<\/p>\n\n\n\n<p>The tar command in Linux provides archiving functionality for compressing or decompressing archive files and modifying and maintaining them. With the tar command, we can create <strong>tar<\/strong>, <strong>gz<\/strong>, <strong>bz2<\/strong> and <strong>gzip<\/strong> archives. Administrators use these commands when they want to save some disk space on the servers or when they are migrating files over two host machines.<\/p>\n\n\n\n<p>In this tutorial, we are going to execute the tar commands on Ubuntu 22.04 OS, but you can choose any Linux distro. Let&#8217;s get started!<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fresh install of Ubuntu 22.04<\/li>\n\n\n\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Update the System<\/h2>\n\n\n\n<p>If you have a fresh installation of Ubuntu 22.04, it is recommended to update the system packages to the latest versions available.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt update -y &amp;&amp; sudo apt upgrade -y<\/pre>\n\n\n\n<p>Once the system is updated, we are ready to show you the <strong>tar<\/strong> commands in Linux with examples.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Syntax of the tar command<\/h2>\n\n\n\n<p>The tar command have the following syntax:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> tar [options][archive-file] [file or directory for archiving]<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">2. Tar.gz Archive File Creation<\/h2>\n\n\n\n<p>To create a <strong>tar.gz<\/strong> archive file, execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar -cvzf wordpress.tar.gz wordpress\/<\/pre>\n\n\n\n<p>This will create <strong>gzip<\/strong> compressed file specified with the <strong>z<\/strong> option and the <strong>v<\/strong> option to show the progress while the file is being zipped.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. Archive File Creation<\/h2>\n\n\n\n<p>To create an archive file, execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar -cf wordpress.tar wordpress\/<\/pre>\n\n\n\n<p>This will make a new file, defined with the <strong>c<\/strong> option, and the file name type specified with the <strong>f<\/strong> option.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4. Tar.bz2 Archive File Creation<\/h2>\n\n\n\n<p>To create a <strong>tar.bz2<\/strong> archive file, execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar cvfj wordpress.tar.bz2 wordpress\/<\/pre>\n\n\n\n<p>This will create <strong>a tar.bz2<\/strong> archive file with highly compressed files in it. That is why is used the <strong>j<\/strong> option.<\/p>\n\n\n\n<p>Now, lets check the sizes of each compressed file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">62M     wordpress.tar\n18M     wordpress.tar.bz2\n21M     wordpress.tar.gz\n<\/pre>\n\n\n\n<p>As you can see, the <strong>wordpress.tar.bz2<\/strong> has the smallest size. This is because we used the <strong>j<\/strong> option for highly compressed tar files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5. List the content of Tar.gz Archived File<\/h2>\n\n\n\n<p>To see the files in the compressed tar.gz archive file, execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar -tf wordpress.tar.gz<\/pre>\n\n\n\n<p>The option <strong>t<\/strong> in this command is for listing the content.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6. List the content of Tar Archived File<\/h2>\n\n\n\n<p>To see the files in the compressed tar archived file, execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar -tf wordpress.tar<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">7. List the content of Tar.bz2 Archived File<\/h2>\n\n\n\n<p>To see the files in the compressed tar.bz2 archived file execute the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar -tf wordpress.tar.bz2<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">8. Uncompress Tar.gz, Tar, and Tar.bz2 Archived Files<\/h2>\n\n\n\n<p>To extract the <strong>tar, tar.gz, and tar.bz2<\/strong> archived files, you need to use option <strong>x<\/strong>. Execute the following commands one by one to extract previously archived files. Option <strong>v<\/strong> is for progress and is up to you if you want to use it or not.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar -xvf wordpress.tar.gz\n\ntar -xvf wordpress.tar\n\ntar -xvf wordpress.tar.bz2\n\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">9. Untar Single file<\/h2>\n\n\n\n<p>To untar the single file <strong>index.php<\/strong> from Tar.gz, Tar, and Tar.bz2 archived files execute the following commands respectively:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">tar -xvf wordpress.tar.gz wordpress\/index.php\n\ntar -xvf wordpress.tar wordpress\/index.php\n\ntar -xvf wordpress.tar.bz2 wordpress\/index.php\n\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">10. The Man Command for tar<\/h2>\n\n\n\n<p>There are plenty of tar commands used on a daily basis by system administrators. If you want to know more about the <strong>tar<\/strong> command, just execute the <strong>man tar<\/strong> command in your terminal, and you will get the output like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@host:~# man tar\nTAR(1)                                                                     GNU TAR Manual                                                                    TAR(1)\n\nNAME\n       tar - an archiving utility\n\nSYNOPSIS\n   Traditional usage\n       tar {A|c|d|r|t|u|x}[GnSkUWOmpsMBiajJzZhPlRvwo] [ARG...]\n\n   UNIX-style usage\n       tar -A [OPTIONS] ARCHIVE ARCHIVE\n\n\t\t\t.\n\t\t\t.\n\t\t\t.\n\t\t\t.\n\t\t\t.<\/pre>\n\n\n\n<p>We trust that today&#8217;s guide on useful tar commands was straightforward and useful. <\/p>\n\n\n\n<p>Now, it&#8217;s your turn:<\/p>\n\n\n\n<p>Is there any part you think we didn&#8217;t cover, or do you need further clarification on any of the commands? Do you have any recommendations for other topics or tutorials you&#8217;d like us to work on? <\/p>\n\n\n\n<p>Your feedback is valuable, so please leave a comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This blog post will show you the ten most used tar commands in Linux with examples. The tar command in Linux provides archiving functionality for compressing or decompressing archive files and modifying and maintaining them. With the tar command, we can create tar, gz, bz2 and gzip archives. Administrators use these commands when they want &#8230; <a title=\"10 Useful tar Commands in Linux With Examples\" class=\"read-more\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/\" aria-label=\"More on 10 Useful tar Commands in Linux With Examples\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":1779,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[207,260,13],"tags":[253,132,266],"class_list":["post-1758","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guide","category-linux","category-tutorials","tag-commands","tag-linuxcloudvps","tag-tar"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>10 Useful tar Commands in Linux With Examples | LinuxCloudVPS Blog<\/title>\n<meta name=\"description\" content=\"This blog post will show you the ten most used tar commands in Linux with examples. The tar command in Linux provides archiving functionality for\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"10 Useful tar Commands in Linux With Examples | LinuxCloudVPS Blog\" \/>\n<meta property=\"og:description\" content=\"This blog post will show you the ten most used tar commands in Linux with examples. The tar command in Linux provides archiving functionality for\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxCloudVPS Blog\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/LinuxCloudVPS\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-01T18:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-29T14:18:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2022\/12\/useful-tar-commands-in-linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:site\" content=\"@LinuxCloudVPS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\"},\"headline\":\"10 Useful tar Commands in Linux With Examples\",\"datePublished\":\"2022-12-01T18:30:00+00:00\",\"dateModified\":\"2023-08-29T14:18:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/\"},\"wordCount\":590,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/useful-tar-commands-in-linux.webp\",\"keywords\":[\"commands\",\"linuxcloudvps\",\"tar\"],\"articleSection\":[\"Guide\",\"Linux\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/\",\"name\":\"10 Useful tar Commands in Linux With Examples | LinuxCloudVPS Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/useful-tar-commands-in-linux.webp\",\"datePublished\":\"2022-12-01T18:30:00+00:00\",\"dateModified\":\"2023-08-29T14:18:43+00:00\",\"description\":\"This blog post will show you the ten most used tar commands in Linux with examples. The tar command in Linux provides archiving functionality for\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/useful-tar-commands-in-linux.webp\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/useful-tar-commands-in-linux.webp\",\"width\":742,\"height\":372,\"caption\":\"useful tar commands in linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/10-useful-tar-commands-in-linux-with-examples\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"10 Useful tar Commands in Linux With Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"name\":\"LinuxCloudVPS\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#organization\",\"name\":\"LinuxCloudVPS\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/logo.png\",\"width\":217,\"height\":25,\"caption\":\"LinuxCloudVPS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"http:\\\/\\\/www.facebook.com\\\/LinuxCloudVPS\",\"https:\\\/\\\/x.com\\\/LinuxCloudVPS\",\"http:\\\/\\\/www.linkedin.com\\\/company\\\/linuxcloudvps-com\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/#\\\/schema\\\/person\\\/ed907227ee7d151c617e6d0fe74f531a\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/www.linuxcloudvps.com\\\/\"],\"url\":\"https:\\\/\\\/www.linuxcloudvps.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"10 Useful tar Commands in Linux With Examples | LinuxCloudVPS Blog","description":"This blog post will show you the ten most used tar commands in Linux with examples. The tar command in Linux provides archiving functionality for","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:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/","og_locale":"en_US","og_type":"article","og_title":"10 Useful tar Commands in Linux With Examples | LinuxCloudVPS Blog","og_description":"This blog post will show you the ten most used tar commands in Linux with examples. The tar command in Linux provides archiving functionality for","og_url":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/","og_site_name":"LinuxCloudVPS Blog","article_publisher":"http:\/\/www.facebook.com\/LinuxCloudVPS","article_published_time":"2022-12-01T18:30:00+00:00","article_modified_time":"2023-08-29T14:18:43+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2022\/12\/useful-tar-commands-in-linux.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@LinuxCloudVPS","twitter_site":"@LinuxCloudVPS","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/#article","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/"},"author":{"name":"admin","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a"},"headline":"10 Useful tar Commands in Linux With Examples","datePublished":"2022-12-01T18:30:00+00:00","dateModified":"2023-08-29T14:18:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/"},"wordCount":590,"commentCount":0,"publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2022\/12\/useful-tar-commands-in-linux.webp","keywords":["commands","linuxcloudvps","tar"],"articleSection":["Guide","Linux","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/","name":"10 Useful tar Commands in Linux With Examples | LinuxCloudVPS Blog","isPartOf":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2022\/12\/useful-tar-commands-in-linux.webp","datePublished":"2022-12-01T18:30:00+00:00","dateModified":"2023-08-29T14:18:43+00:00","description":"This blog post will show you the ten most used tar commands in Linux with examples. The tar command in Linux provides archiving functionality for","breadcrumb":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/#primaryimage","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2022\/12\/useful-tar-commands-in-linux.webp","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2022\/12\/useful-tar-commands-in-linux.webp","width":742,"height":372,"caption":"useful tar commands in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/www.linuxcloudvps.com\/blog\/10-useful-tar-commands-in-linux-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.linuxcloudvps.com\/blog\/"},{"@type":"ListItem","position":2,"name":"10 Useful tar Commands in Linux With Examples"}]},{"@type":"WebSite","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#website","url":"https:\/\/www.linuxcloudvps.com\/blog\/","name":"LinuxCloudVPS","description":"","publisher":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.linuxcloudvps.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#organization","name":"LinuxCloudVPS","url":"https:\/\/www.linuxcloudvps.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","contentUrl":"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2023\/08\/logo.png","width":217,"height":25,"caption":"LinuxCloudVPS"},"image":{"@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["http:\/\/www.facebook.com\/LinuxCloudVPS","https:\/\/x.com\/LinuxCloudVPS","http:\/\/www.linkedin.com\/company\/linuxcloudvps-com"]},{"@type":"Person","@id":"https:\/\/www.linuxcloudvps.com\/blog\/#\/schema\/person\/ed907227ee7d151c617e6d0fe74f531a","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/www.linuxcloudvps.com\/"],"url":"https:\/\/www.linuxcloudvps.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/comments?post=1758"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1758\/revisions"}],"predecessor-version":[{"id":1955,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/posts\/1758\/revisions\/1955"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media\/1779"}],"wp:attachment":[{"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/media?parent=1758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/categories?post=1758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcloudvps.com\/blog\/wp-json\/wp\/v2\/tags?post=1758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}