{"id":614,"date":"2012-02-27T06:51:27","date_gmt":"2012-02-27T11:51:27","guid":{"rendered":"https:\/\/www.bodhost.com\/blog\/?p=614"},"modified":"2026-02-26T13:59:06","modified_gmt":"2026-02-26T13:59:06","slug":"uses-of-tar-command-in-unix-and-linux-server","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/","title":{"rendered":"Uses of Tar Command in Unix and Linux Server"},"content":{"rendered":"\r\n<h3><strong>Uses of Tar Command in Unix and Linux Server :<\/strong><\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">For archiving purposes on the Unix platform, <strong>tar command<\/strong> is the command to be used. Knowing the various tar command options will help you to be a master of archive file manipulation.<\/p>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><span style=\"font-size: large;\">A. Create an archive with the tar command<\/span><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-heading\"><span style=\"font-size: medium;\">* Create an uncompressed tar archive with option cvf<\/span><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">It is the most basic command to create a tar archive.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar cvf archive_name.tar dirname\/\r\nNote :\r\nc \u2013 create a new archive\r\nv \u2013 verbosely list files which are processed.\r\nf \u2013 following is the archive file name<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-heading\"><span style=\"font-size: medium;\">* Create a tar gzipped archive with option cvzf<\/span><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The above used tar cvf, can&#8217;t offer any compression. So, if you want to utilize a gzip compression on the tar archive then you can utilize the z option as follows.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar cvzf archive_name.tar.gz dirname\/\r\nNote :\r\nz \u2013 filter the archive through gzip<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Note:<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">.tgz is similar as .tar.gz<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-heading\"><span style=\"font-size: medium;\">* Create a bzipped tar archive with option cvjf<\/span><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Create a bzip2 tar archive as shown below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar cvfj archive_name.tar.bz2 dirname\/\r\nNote :\r\nj \u2013 filter the archive through bzip2<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">.tbz and .tb2 is similar as .tar.bz2<\/p>\r\n\r\n\r\n\r\n\r\n\r\n<h4><span style=\"font-size: large;\"><strong>B. Extracting (untar) an archive with the tar command<\/strong><\/span><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-heading\"><span style=\"font-size: medium;\">* Extract a *.tar file with option xvf<\/span><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Extract a tar file with options x as shown below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar xvf archive_name.tar\r\nNote :\r\nx \u2013 extract files from archive<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-heading\"><span style=\"font-size: medium;\">* Extract a gzipped tar archive ( *.tar.gz ) with option xvzf<\/span><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use the option z for uncompressing a gzip tar archive.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar xvfz archive_name.tar.gz<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-heading\"><span style=\"font-size: medium;\">* Extract a bzipped tar archive ( *.tar.bz2 ) with option xvjf<\/span><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Use the option j for uncompressing a bzip2 tar archive.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar xvfj archive_name.tar.bz2<\/pre>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong><span style=\"font-size: large;\">C. Listing an archive with tar command<\/span><\/strong><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-heading\"><span style=\"font-size: medium;\">* View the tar archive file content without extracting with option tvf<\/span><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You can find out the *.tar file content before extracting as shown below.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar tvf archive_name.tar<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-heading\"><span style=\"font-size: medium;\">* View the *.tar.gz file content without extracting with option tvzf<\/span><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You can find out the *.tar.gz file content before extracting as shown below.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar tvfz archive_name.tar.gz<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-heading\"><span style=\"font-size: medium;\">* View the *.tar.bz2 file content without extracting using option tvjf<\/span><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You can find out the *.tar.bz2 file content before extracting as shown below.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar tvfj archive_name.tar.bz2<\/pre>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong><span style=\"font-size: large;\">D. Process To Add a file or directory to an existing archive With option -r<\/span><\/strong><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You can add additional files to an existing tar archive as shown below. Like, to append a file to *.tar file do the following:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar rvf archive_name.tar updatedfile<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">This updated file will be added to the existing archive_name.tar. Adding a directory to the tar is also similar,<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar rvf archive_name.tar newdir\/<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Note:<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You can&#8217;t add a file or directory to a compressed archive. In that case, you will get the following error<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar rvfz archive_name.tgz newfile\r\ntar: Cannot update compressed archives\r\nTry `tar --help' or `tar --usage' for more information.<\/pre>\r\n\r\n\r\n\r\n<h4 class=\"wp-block-heading\"><strong><span style=\"font-size: large;\">E. Way To Estimate The tar Archive Size<\/span><\/strong><\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Before creating the tar file you can estimate the tar file size ( in KB ) with the command below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ tar -cf - \/directory\/to\/archive\/ | wc -c\r\n20480<\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Before creating the tar.gz, tar.bz2 files, you can estimates the compressed tar file size ( in KB ) with the commands below:<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">$ tar -czf &#8211; \/directory\/to\/archive\/ | wc -c 508 $ tar -cjf &#8211; \/directory\/to\/archive\/ | wc -c 428<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Uses of Tar Command in Unix and Linux Server : For archiving purposes on the Unix platform, tar command is the command to be used. Knowing the various tar command&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[149],"tags":[77,151],"class_list":["post-614","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux-server","tag-tar-command"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"The Tar command is a versatile tool for archiving and compressing files in Unix and Linux servers. Learn how it can simplify data backup, transfer, and storage, and how to use it effectively.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Admin1\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"bodHOST | Web Hosting - Tips &amp; Tricks\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Uses of Tar Command in Unix and Linux Server | bodHOST\" \/>\n\t\t<meta property=\"og:description\" content=\"The Tar command is a versatile tool for archiving and compressing files in Unix and Linux servers. Learn how it can simplify data backup, transfer, and storage, and how to use it effectively.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-02-27T11:51:27+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-02-26T13:59:06+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Uses of Tar Command in Unix and Linux Server | bodHOST\" \/>\n\t\t<meta name=\"twitter:description\" content=\"The Tar command is a versatile tool for archiving and compressing files in Unix and Linux servers. Learn how it can simplify data backup, transfer, and storage, and how to use it effectively.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/#article\",\"name\":\"Uses of Tar Command in Unix and Linux Server | bodHOST\",\"headline\":\"Uses of Tar Command in Unix and Linux Server\",\"author\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/author\\\/admin1\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/cropped-Profile-Pic.png\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#articleImage\",\"width\":96,\"height\":96,\"caption\":\"bodHOST\"},\"datePublished\":\"2012-02-27T06:51:27+00:00\",\"dateModified\":\"2026-02-26T13:59:06+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/#webpage\"},\"articleSection\":\"Linux, Linux Server, tar command\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/category\\\/linux\\\/#listItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/category\\\/linux\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/#listItem\",\"name\":\"Uses of Tar Command in Unix and Linux Server\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/#listItem\",\"position\":3,\"name\":\"Uses of Tar Command in Unix and Linux Server\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#organization\",\"name\":\"bodHOST\",\"description\":\"Web Hosting - Tips & Tricks\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/cropped-Profile-Pic.png\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/#organizationLogo\",\"width\":96,\"height\":96,\"caption\":\"bodHOST\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/author\\\/admin1\\\/#author\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/author\\\/admin1\\\/\",\"name\":\"Admin1\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cd7e35fa8b64889a49e442de56b8ca06e2b3916e7deb2c547281a07b793043b6?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Admin1\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/#webpage\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/\",\"name\":\"Uses of Tar Command in Unix and Linux Server | bodHOST\",\"description\":\"The Tar command is a versatile tool for archiving and compressing files in Unix and Linux servers. Learn how it can simplify data backup, transfer, and storage, and how to use it effectively.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/uses-of-tar-command-in-unix-and-linux-server\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/author\\\/admin1\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/author\\\/admin1\\\/#author\"},\"datePublished\":\"2012-02-27T06:51:27+00:00\",\"dateModified\":\"2026-02-26T13:59:06+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/\",\"name\":\"bodHOST\",\"description\":\"Web Hosting - Tips & Tricks\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Uses of Tar Command in Unix and Linux Server | bodHOST","description":"The Tar command is a versatile tool for archiving and compressing files in Unix and Linux servers. Learn how it can simplify data backup, transfer, and storage, and how to use it effectively.","canonical_url":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/#article","name":"Uses of Tar Command in Unix and Linux Server | bodHOST","headline":"Uses of Tar Command in Unix and Linux Server","author":{"@id":"https:\/\/www.bodhost.com\/blog\/author\/admin1\/#author"},"publisher":{"@id":"https:\/\/www.bodhost.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png","@id":"https:\/\/www.bodhost.com\/blog\/#articleImage","width":96,"height":96,"caption":"bodHOST"},"datePublished":"2012-02-27T06:51:27+00:00","dateModified":"2026-02-26T13:59:06+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/#webpage"},"isPartOf":{"@id":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/#webpage"},"articleSection":"Linux, Linux Server, tar command"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.bodhost.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog\/category\/linux\/#listItem","name":"Linux"}},{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog\/category\/linux\/#listItem","position":2,"name":"Linux","item":"https:\/\/www.bodhost.com\/blog\/category\/linux\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/#listItem","name":"Uses of Tar Command in Unix and Linux Server"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/#listItem","position":3,"name":"Uses of Tar Command in Unix and Linux Server","previousItem":{"@type":"ListItem","@id":"https:\/\/www.bodhost.com\/blog\/category\/linux\/#listItem","name":"Linux"}}]},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/blog\/#organization","name":"bodHOST","description":"Web Hosting - Tips & Tricks","url":"https:\/\/www.bodhost.com\/blog\/","logo":{"@type":"ImageObject","url":"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/#organizationLogo","width":96,"height":96,"caption":"bodHOST"},"image":{"@id":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/blog\/author\/admin1\/#author","url":"https:\/\/www.bodhost.com\/blog\/author\/admin1\/","name":"Admin1","image":{"@type":"ImageObject","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/cd7e35fa8b64889a49e442de56b8ca06e2b3916e7deb2c547281a07b793043b6?s=96&d=mm&r=g","width":96,"height":96,"caption":"Admin1"}},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/#webpage","url":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/","name":"Uses of Tar Command in Unix and Linux Server | bodHOST","description":"The Tar command is a versatile tool for archiving and compressing files in Unix and Linux servers. Learn how it can simplify data backup, transfer, and storage, and how to use it effectively.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.bodhost.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/#breadcrumblist"},"author":{"@id":"https:\/\/www.bodhost.com\/blog\/author\/admin1\/#author"},"creator":{"@id":"https:\/\/www.bodhost.com\/blog\/author\/admin1\/#author"},"datePublished":"2012-02-27T06:51:27+00:00","dateModified":"2026-02-26T13:59:06+00:00"},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/blog\/#website","url":"https:\/\/www.bodhost.com\/blog\/","name":"bodHOST","description":"Web Hosting - Tips & Tricks","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.bodhost.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"bodHOST | Web Hosting - Tips &amp; Tricks","og:type":"article","og:title":"Uses of Tar Command in Unix and Linux Server | bodHOST","og:description":"The Tar command is a versatile tool for archiving and compressing files in Unix and Linux servers. Learn how it can simplify data backup, transfer, and storage, and how to use it effectively.","og:url":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/","og:image":"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png","og:image:secure_url":"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png","article:published_time":"2012-02-27T11:51:27+00:00","article:modified_time":"2026-02-26T13:59:06+00:00","twitter:card":"summary","twitter:title":"Uses of Tar Command in Unix and Linux Server | bodHOST","twitter:description":"The Tar command is a versatile tool for archiving and compressing files in Unix and Linux servers. Learn how it can simplify data backup, transfer, and storage, and how to use it effectively.","twitter:image":"https:\/\/www.bodhost.com\/blog\/wp-content\/uploads\/2026\/03\/cropped-Profile-Pic.png"},"aioseo_meta_data":{"post_id":"614","title":null,"description":"The Tar command is a versatile tool for archiving and compressing files in Unix and Linux servers. Learn how it can simplify data backup, transfer, and storage, and how to use it effectively.","keywords":[],"keyphrases":{"focus":{"keyphrase":"Command ","score":100,"analysis":{"keyphraseInTitle":{"score":9,"maxScore":9,"error":0},"keyphraseInDescription":{"score":9,"maxScore":9,"error":0},"keyphraseLength":{"score":9,"maxScore":9,"error":0,"length":1},"keyphraseInURL":{"score":5,"maxScore":5,"error":0},"keyphraseInIntroduction":{"score":9,"maxScore":9,"error":0},"keyphraseInSubHeadings":{"score":9,"maxScore":9,"error":0},"keyphraseInImageAlt":[]}},"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":[],"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":"","isEnabled":true},"graphs":[],"defaultGraph":"","defaultPostTypeGraph":""},"schema_type":null,"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,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2021-05-18 14:32:18","updated":"2026-02-27 09:33:40","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.bodhost.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.bodhost.com\/blog\/category\/linux\/\" title=\"Linux\">Linux<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUses of Tar Command in Unix and Linux Server\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.bodhost.com\/blog"},{"label":"Linux","link":"https:\/\/www.bodhost.com\/blog\/category\/linux\/"},{"label":"Uses of Tar Command in Unix and Linux Server","link":"https:\/\/www.bodhost.com\/blog\/uses-of-tar-command-in-unix-and-linux-server\/"}],"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/comments?post=614"}],"version-history":[{"count":10,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/614\/revisions"}],"predecessor-version":[{"id":5631,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/614\/revisions\/5631"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/media?parent=614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/categories?post=614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/tags?post=614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}