{"id":18650,"date":"2020-11-22T19:58:58","date_gmt":"2020-11-23T03:58:58","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=18650"},"modified":"2023-12-01T04:04:50","modified_gmt":"2023-12-01T12:04:50","slug":"tar-command","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/tar-command\/","title":{"rendered":"tar Command: A Beginner&#8217;s Guide"},"content":{"rendered":"\n<p><em>The tar command is used to create compressed archives which represent a file or collection of files. A tar file, commonly known as a &#8220;tarball,&#8221; a gzip, or a bzip file, will have an extension ending with .tar or .tar.gz.<\/em><\/p>\n\n\n\n<p>You\u2019ve just downloaded a file from the internet and it has the \u201c.tar\u201d extension. You try to unzip it using traditional unzipping programs, but it doesn\u2019t want to open. What\u2019s going on?<\/p>\n\n\n\n<p>You may be having trouble because \u201c.tar\u201d files aren\u2019t zipped; they are their own file type. Opening a .tar file can be frustrating, especially because the command you can use to open it has a lot of options.<\/p>\n\n\n\n<p>In this guide, we\u2019re going to help you overcome that frustration. We\u2019ll discuss how you can create a compressed file and how you can open one using the tar command in Linux.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-the-linux-tar-command\">What is the Linux tar Command?<\/h2>\n\n\n\n<p>The tar command lets you create compressed archives which contain a particular file or set of files. The resultant archive files are commonly known as tarballs, gzip, bzip, or tar files.<\/p>\n\n\n\n<p>A tar file is a special format that groups files into one. It\u2019s similar to a .zip file in that it can hold multiple files, but it is its own file type. Tar files have the suffix .tar or .tar.gz.<\/p>\n\n\n\n<p>Using the tar command in Linux, you can open, view, and create a tar file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-tar-command-open-a-file\">tar Command: Open a File<\/h2>\n\n\n\n<p>If you have a tar archive file that you want to open, all you need to do is use this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>tar -xzvf linux_files.tar.gz<\/pre><\/div>\n\n\n\n<p>This <a href=\"https:\/\/careerkarma.com\/blog\/linux-command-line\/\">Linux command line operation<\/a> returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>x linux\/\nx linux\/names.txt\nx linux\/app.txt\nx linux\/README.md\nx linux\/config\/app.sh<\/pre><\/div>\n\n\n\n<p>The -xzvf flags tell the tar command that you want to extract files from an archive. That\u2019s a handy way to remember this list of four characters: it starts with x because it allows you to extract files.<\/p>\n\n\n\n<p>By default, this command will extract the contents of archive_name.tar.gz into your working directory. You can override this behavior using the \u201c-C\u201d flag at the end of the command. This flag allows you to specify a directory into which the contents of the tar file should be moved:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>tar -xzvf linux_files.tar.gz -C \/home\/careerkarma\/Documents<\/pre><\/div>\n\n\n\n<p>This command will extract our archive into the \/home\/careerkarma\/Documents folder on our Linux computer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-tar-command-view-a-file\">tar Command: View a File<\/h2>\n\n\n\n<p>When you are sent a tar file, your first instinct may be to open it up. How else are you going to see what\u2019s in the file? But, you can preview the file without extracting its contents to your computer. The following command will let you list the contents of a tar file without extracting its full contents to your computer:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>tar -tvf linux_files.tar.gz<\/pre><\/div>\n\n\n\n<p>Our command returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>drwxr--r--  0 James  staff   \t0 Jun 12 11:03 linux\/\n-rw-r--r--  0 James  staff  \t89 Jun 12 09:04 linux\/names.txt\n-rw-r--r--  0 James  staff   \t2 Jun 12 09:57 linux\/app.txt\n-rwxr--r--  0 James  staff   \t0 Jun 12 08:06 linux\/README.md\n-rw-r--r--  0 James  staff   \t2 Jun 12 10:26 linux\/config\/app.sh<\/pre><\/div>\n\n\n\n<p>This command returns an output that is similar to what you would see if you run the <a href=\"https:\/\/careerkarma.com\/blog\/linux-ls-command\/\"><\/a><a href=\"https:\/\/careerkarma.com\/blog\/linux-ls-command\/\"><\/a><a href=\"https:\/\/careerkarma.com\/blog\/linux-ls-command\/\">Linux <\/a>ls command. The ls command lists the files in a directory. In this case, our list of files reflects the contents of our tar file. We haven\u2019t opened it up; we\u2019ve only peeked inside.<\/p>\n\n\n\n<p>The \u201c-tvf\u201d flags tell our command to print out a list of all the files in our tarball. In our example above, we can see that all the files in our tarball are in a directory called \u201clinux\u201d. When we open this file up, all of these files will be moved onto our computer.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-tar-command-create-a-tar-file\">tar Command: Create a .tar File<\/h2>\n\n\n\n<p>In the Linux world, there are a lot of files stored in .tar.gz files. If you\u2019ve got some data you want to store in one, you are in the right place. You can easily compress files and directories into a single tar file using the tar command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>tar -czvf file_name.tar.gz \/path\/to\/folder<\/pre><\/div>\n\n\n\n<p>Consider this example:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>tar -czvf linux_archive.tar.gz \/home\/careerkarma\/linux<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>a linux\na linux\/names.txt\na linux\/app.txt\na linux\/README.md\na linux\/config\/app.sh<\/pre><\/div>\n\n\n\n<p>The output of this command shows us a list of the files that have been archived.<\/p>\n\n\n\n<p>This command creates an archive file called \u201clinux_archive.tar.gz\u201d based on the contents of the \/home\/careerkarma\/linux directory. Here\u2019s what the flags mean that we have used:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>c: Create an archive<\/li><li>z: Compress the archive using gzip<\/li><li>v: Show progress in the terminal<\/li><li>f: Specify the filename of the archive<\/li><\/ul>\n\n\n\n<p>You can remember these by thinking that \u201cc\u201d is for \u201ccreate.\u201d The \u201czvf\u201d are the same flags that we used to open our file in our first example. While these don\u2019t exactly seem memorable, once you\u2019ve opened a few tar files you will get used to the syntax. Our tar archive is a single file.<\/p>\n\n\n\n<p>In this example, we\u2019ve compressed one directory into a tar file. The tar command allows us to specify multiple directories or files, too. To do so, you need to provide a list of the files and directories that you want to compress. Try running the following command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>tar -czvf linux_archive.tar.gz \/home\/careerkarma\/linux \/home\/careerkarma\/linux_guides<\/pre><\/div>\n\n\n\n<p>Our code returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>a linux\na linux\/names.txt\na linux\/app.txt\na linux\/README.md\na linux\/config\/app.sh\na linux_guides\/tutorial.md<\/pre><\/div>\n\n\n\n<p>You can see that the contents of our \u201clinux\u201d and \u201clinux_guides\u201d folders have been compressed into one archive.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-exclude-files-and-directories\">How to Exclude Files and Directories<\/h2>\n\n\n\n<p>Being able to compress an entire folder is useful, but there may be a case where you want to compress an entire folder aside from a file. You can do this by using the \u201c\u2013exclude\u201d flag at the end of your tar command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>tar -czvf linux_archive.tar.gz \/home\/careerkarma\/linux --exclude=\/home\/careerkarma\/linux\/app.txt<\/pre><\/div>\n\n\n\n<p>This command will archive everything in the \/home\/careerkarma\/linux folder excluding the file \u201capp.txt\u201d. We could also combine the \u201c\u2013exclude\u201d flag with a wildcard if we want to exclude all files that end in a particular file extension:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>tar -czvf linux_archive.tar.gz \/home\/careerkarma\/linux --exclude=\/home\/careerkarma\/linux\/*.txt<\/pre><\/div>\n\n\n\n<p>All the files in our \u201clinux\u201d folder will be archived except for those which end in \u201c.txt\u201d.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p>Being a competent Linux user involves much more than being knowledgeable in C and other <a href=\"https:\/\/careerkarma.com\/blog\/what-is-coding-used-for\/\">coding languages<\/a>. In this article, we have taught you how to create compressed archives using the tar command. <\/p>\n\n\n\n<p>The tar command allows you to compress files into tarballs, read the contents of a tarball and open a tarball. As a reminder, here are the commands you can use to work with tar:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Open a file: tar -xzvf [filename]<\/li><li>View a file: tar -tvf [filename]<\/li><li>Create a file: tar -czvf [name_of_new_file] [files_or_folders_to_archive]<\/li><\/ul>\n\n\n\n<p>Now you\u2019re ready to start using the tar command like a Linux professional!<\/p>\n\n\n\n<p>To learn more about the command line, read our complete guide on <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-linux\/\">How to Learn Linux<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"The tar command is used to create compressed archives which represent a file or collection of files. A tar file, commonly known as a \"tarball,\" a gzip, or a bzip file, will have an extension ending with .tar or .tar.gz. You\u2019ve just downloaded a file from the internet and it has the \u201c.tar\u201d extension. You&hellip;","protected":false},"author":240,"featured_media":18651,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[18070],"tags":[],"class_list":{"0":"post-18650","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-software-engineering-skills"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Software Engineering","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>tar Command: A Beginner&#039;s Guide %<\/title>\n<meta name=\"description\" content=\"The tar command allows you to view, create and open .tar files. On Career Karma, learn how to use the Linux tar command.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/tar-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"tar Command: A Beginner&#039;s Guide\" \/>\n<meta property=\"og:description\" content=\"The tar command allows you to view, create and open .tar files. On Career Karma, learn how to use the Linux tar command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/tar-command\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-23T03:58:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:04:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/tar-command\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/tar-command\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"tar Command: A Beginner&#8217;s Guide\",\"datePublished\":\"2020-11-23T03:58:58+00:00\",\"dateModified\":\"2023-12-01T12:04:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/tar-command\/\"},\"wordCount\":1053,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/tar-command\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg\",\"articleSection\":[\"Software Engineering\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/tar-command\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/tar-command\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/tar-command\/\",\"name\":\"tar Command: A Beginner's Guide %\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/tar-command\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/tar-command\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg\",\"datePublished\":\"2020-11-23T03:58:58+00:00\",\"dateModified\":\"2023-12-01T12:04:50+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The tar command allows you to view, create and open .tar files. On Career Karma, learn how to use the Linux tar command.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/tar-command\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/tar-command\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/tar-command\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/tar-command\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Software Engineering\",\"item\":\"https:\/\/careerkarma.com\/blog\/software-engineering-skills\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"tar Command: A Beginner&#8217;s Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"tar Command: A Beginner's Guide %","description":"The tar command allows you to view, create and open .tar files. On Career Karma, learn how to use the Linux tar command.","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:\/\/careerkarma.com\/blog\/tar-command\/","og_locale":"en_US","og_type":"article","og_title":"tar Command: A Beginner's Guide","og_description":"The tar command allows you to view, create and open .tar files. On Career Karma, learn how to use the Linux tar command.","og_url":"https:\/\/careerkarma.com\/blog\/tar-command\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-11-23T03:58:58+00:00","article_modified_time":"2023-12-01T12:04:50+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/tar-command\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/tar-command\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"tar Command: A Beginner&#8217;s Guide","datePublished":"2020-11-23T03:58:58+00:00","dateModified":"2023-12-01T12:04:50+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/tar-command\/"},"wordCount":1053,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/tar-command\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg","articleSection":["Software Engineering"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/tar-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/tar-command\/","url":"https:\/\/careerkarma.com\/blog\/tar-command\/","name":"tar Command: A Beginner's Guide %","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/tar-command\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/tar-command\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg","datePublished":"2020-11-23T03:58:58+00:00","dateModified":"2023-12-01T12:04:50+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The tar command allows you to view, create and open .tar files. On Career Karma, learn how to use the Linux tar command.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/tar-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/tar-command\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/tar-command\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/sabri-tuzcu-wkO0q0UTqc8-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/tar-command\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Software Engineering","item":"https:\/\/careerkarma.com\/blog\/software-engineering-skills\/"},{"@type":"ListItem","position":3,"name":"tar Command: A Beginner&#8217;s Guide"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=18650"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18650\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18651"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=18650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=18650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=18650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}