{"id":18451,"date":"2020-12-29T01:50:21","date_gmt":"2020-12-29T09:50:21","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=18451"},"modified":"2023-12-01T04:06:25","modified_gmt":"2023-12-01T12:06:25","slug":"linux-cp-command","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/linux-cp-command\/","title":{"rendered":"Linux cp Command: A Guide"},"content":{"rendered":"\n<p><em>The Linux cp command copies a file or a folder on a computer. You can move one or more files and folders at the same time. The syntax for cp is the name of the file to be copied followed by the place the copy should be located.<\/em><\/p>\n\n\n\n<p>Copying files and folders is a task almost everyone who works with Linux performs on a daily basis. But, using the command line, it\u2019s not as simple as dragging a file into another window on your computer. Rather, you need to use the <em>cp<\/em> command to copy files and folders.<\/p>\n\n\n\n<p>If you want to work with Linux in any capacity, it is not enough to simply become familiar with <a href=\"https:\/\/careerkarma.com\/blog\/what-is-coding-used-for\/\">what coding is<\/a> and the C programming language, which forms the basis of the Linux Kernel. You&#8217;ll also need to master the Linux cp command. In this guide, we\u2019re going to discuss how to use the Linux cp command to copy files and folders on Linux systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-linux-cp-command-copy-a-file\">Linux cp Command: Copy a File<\/h2>\n\n\n\n<p>The Linux cp command is used for copying files and directories to another location. To copy a file, specify &#8220;cp&#8221; followed by the name of a file to copy. Then, state the location at which the new file should appear. The new file does not need to have the same name as the one you are copying.<\/p>\n\n\n\n<p>Let&#8217;s take a look at the syntax for the Linux cp command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cp [source] [destination]<\/pre><\/div>\n\n\n\n<p>The \u201csource\u201d refers to the file or folder you want to move. \u201cdestination\u201d is the target directory where you want to move that file or folder.<\/p>\n\n\n\n<p>When \u201csource\u201d and \u201cdestination\u201d are both files, the source file will be copied into the destination file. If you specify multiple files or directories as the \u201csource\u201d, \u201cdestination\u201d must be a folder into which those files and directories can be moved.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-cp-linux-examples\">cp Linux Examples<\/h2>\n\n\n\n<p>Let\u2019s walk through a few examples to illustrate how this command works.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-cp-command-in-linux-copy-file-in-current-directory\">cp Command in Linux: Copy File in Current Directory<\/h3>\n\n\n\n<p>One of the most common usages of the Linux cp command is to copy content files in your current directory. Using the <a href=\"https:\/\/careerkarma.com\/blog\/linux-ls-command\/\">Linux <em>ls<\/em> command<\/a>, we can see that our current folder contains the following files:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>README.md\napp.sh\nconfig\/\nbin\/\napp\/<\/pre><\/div>\n\n\n\n<p>Suppose we want to create a copy of the file \u201capp.sh\u201d into a file called \u201c__init__.sh\u201d. We could do so using this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cp app.sh __init__.sh<\/pre><\/div>\n\n\n\n<p>When we run this command, the contents of \u201capp.sh\u201d are copied into a file \u201c__init__.sh\u201d. Because the file \u201c__init__.sh\u201d does not exist, it is created.<\/p>\n\n\n\n<p>If we run <em>ls<\/em>, we can see that our a regular file has been created based on our previous file:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>README.md\napp.sh\n__init__.sh\nconfig\/<\/pre><\/div>\n\n\n\n<p>We specified a new name for our copied file. We did not have to copy our file and then rename it using the Linux mv command.<\/p>\n\n\n\n<p>If you specify the same name as a file that already exists, the file that already exists will be overwritten. Indeed, the cp command can overwrite an existing file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-cp-command-in-linux-copy-file-to-another-directory\">cp Command in Linux: Copy File to Another Directory<\/h3>\n\n\n\n<p>We can also use the Linux cp command to copy a file into another directory. Suppose we want to create a copy of our \u201c__init__.sh\u201d file and store it in the \u201cconfig\u201d directory. We could do so using this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cp __init__.sh config\/<\/pre><\/div>\n\n\n\n<p>We can use <em>ls<\/em> to see the contents of our \u201cconfig\u201d folder:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>ls config\/<\/pre><\/div>\n\n\n\n<p>This command returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>__init__.py<\/pre><\/div>\n\n\n\n<p>A copy of the \u201c__init__.sh\u201d file has been created in the \u201cconfig\u201d directory.&nbsp;This file is called our &#8220;destination file,&#8221; like we referred to in the syntax example earlier.<\/p>\n\n\n\n<p>You can specify a new file name for the copy of the file you are creating. If you wanted to create a copy of \u201cREADME.md\u201d in the \u201cconfig\u201d directory and call it \u201creadme.txt\u201d, you could do so using this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cp README.md config\/readme.txt<\/pre><\/div>\n\n\n\n<p>This is similar to how we copied our file in the last example. We specified a new name for our new file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-copy-a-folder-using-the-linux-cp-command\">How to Copy a Folder Using the Linux cp Command<\/h2>\n\n\n\n<p>By default, the Linux cp command does not copy a directory. But, you can still use <em>cp<\/em> to copy a folder. To do so, you need to pass the <em>-R<\/em> flag.<\/p>\n\n\n\n<p>This will copy a folder and all of its contents into another folder. The syntax for this command is:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cp -R [source] [destination]<\/pre><\/div>\n\n\n\n<p>Suppose we want to copy the folder \u201cbin\u201d to \u201cbin_backup\u201d. We could do so using this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cp -R bin bin_backup<\/pre><\/div>\n\n\n\n<p>If the destination directory you specify exists, the contents of the source directory will be copied into the destination directory. Otherwise, a new folder will be created with the value you specified for \u201cdestination\u201d.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-copy-multiple-files-and-folders\">Copy Multiple Files and Folders<\/h2>\n\n\n\n<p>The Linux cp command allows you to copy multiple files and folders. The syntax for doing so is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cp [file1] [file2] \u2026 [destination]<\/pre><\/div>\n\n\n\n<p>Suppose we want to copy \u201capp.sh\u201d and \u201c__init__.sh\u201d into a directory called \u201cbin\u201d. We could do so using this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cp app.sh __init__.sh bin\/<\/pre><\/div>\n\n\n\n<p>When you\u2019re copying multiple files, the destination you specify must be a folder.<\/p>\n\n\n\n<p>Alternatively, if you want to copy multiple folders, you would specify folders in the same place as we specified file names above. So, if you wanted to copy the folders \u201cbin\u201d and \u201cconfig\u201d into the folder \u201capp\u201d, you could do so using this command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cp bin config app<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p>The Linux cp command allows you to easily copy files and folders. You can use <em>cp<\/em> to copy individual files and folders, or to copy multiple files and folders.<\/p>\n\n\n\n<p>If you want to find out more about this command, you can run <em>man cp<\/em> on your terminal. This will open up the Linux manual\u2019s description of how to use the cp command. The manual is quite long but it will give you incredibly detailed information on using the cp command.<\/p>\n\n\n\n<p>To find top Linux learning resources, books, and courses, check out our <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-linux\/\">How to Learn Linux guide<\/a>. We have a separate guide that you can use to <a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-command-line\/\">learn the command line<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"The Linux cp command copies a file or a folder on a computer. You can move one or more files and folders at the same time. The syntax for cp is the name of the file to be copied followed by the place the copy should be located. Copying files and folders is a task&hellip;","protected":false},"author":240,"featured_media":18452,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[18070],"tags":[],"class_list":{"0":"post-18451","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>Linux cp Command: A Guide | Career Karma<\/title>\n<meta name=\"description\" content=\"The Linux cp command allows you to copy files and folders. On Career Karma, learn how to use the Linux cp 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\/linux-cp-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Linux cp Command: A Guide\" \/>\n<meta property=\"og:description\" content=\"The Linux cp command allows you to copy files and folders. On Career Karma, learn how to use the Linux cp command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/linux-cp-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-12-29T09:50:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:06:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-GXEcTqlZHno-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"765\" \/>\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\/linux-cp-command\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-cp-command\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Linux cp Command: A Guide\",\"datePublished\":\"2020-12-29T09:50:21+00:00\",\"dateModified\":\"2023-12-01T12:06:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-cp-command\/\"},\"wordCount\":994,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-cp-command\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-GXEcTqlZHno-unsplash.jpg\",\"articleSection\":[\"Software Engineering\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/linux-cp-command\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-cp-command\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/linux-cp-command\/\",\"name\":\"Linux cp Command: A Guide | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-cp-command\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-cp-command\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-GXEcTqlZHno-unsplash.jpg\",\"datePublished\":\"2020-12-29T09:50:21+00:00\",\"dateModified\":\"2023-12-01T12:06:25+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Linux cp command allows you to copy files and folders. On Career Karma, learn how to use the Linux cp command.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-cp-command\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/linux-cp-command\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-cp-command\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-GXEcTqlZHno-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-GXEcTqlZHno-unsplash.jpg\",\"width\":1020,\"height\":765},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-cp-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\":\"Linux cp Command: A 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":"Linux cp Command: A Guide | Career Karma","description":"The Linux cp command allows you to copy files and folders. On Career Karma, learn how to use the Linux cp 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\/linux-cp-command\/","og_locale":"en_US","og_type":"article","og_title":"Linux cp Command: A Guide","og_description":"The Linux cp command allows you to copy files and folders. On Career Karma, learn how to use the Linux cp command.","og_url":"https:\/\/careerkarma.com\/blog\/linux-cp-command\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-12-29T09:50:21+00:00","article_modified_time":"2023-12-01T12:06:25+00:00","og_image":[{"width":1020,"height":765,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-GXEcTqlZHno-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\/linux-cp-command\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/linux-cp-command\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Linux cp Command: A Guide","datePublished":"2020-12-29T09:50:21+00:00","dateModified":"2023-12-01T12:06:25+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/linux-cp-command\/"},"wordCount":994,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/linux-cp-command\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-GXEcTqlZHno-unsplash.jpg","articleSection":["Software Engineering"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/linux-cp-command\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/linux-cp-command\/","url":"https:\/\/careerkarma.com\/blog\/linux-cp-command\/","name":"Linux cp Command: A Guide | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/linux-cp-command\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/linux-cp-command\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-GXEcTqlZHno-unsplash.jpg","datePublished":"2020-12-29T09:50:21+00:00","dateModified":"2023-12-01T12:06:25+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Linux cp command allows you to copy files and folders. On Career Karma, learn how to use the Linux cp command.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/linux-cp-command\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/linux-cp-command\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/linux-cp-command\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-GXEcTqlZHno-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/mimi-thian-GXEcTqlZHno-unsplash.jpg","width":1020,"height":765},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/linux-cp-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":"Linux cp Command: A 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\/18451","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=18451"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18451\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18452"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=18451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=18451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=18451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}