{"id":18429,"date":"2020-06-24T18:18:19","date_gmt":"2020-06-25T01:18:19","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=18429"},"modified":"2023-12-01T03:22:20","modified_gmt":"2023-12-01T11:22:20","slug":"linux-command-line","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/linux-command-line\/","title":{"rendered":"A Beginner&#8217;s Guide to the Linux Command Line"},"content":{"rendered":"\n<p>Those of you old enough to remember when the earliest computers were introduced may recall MS-DOS and other command-line systems. The first computers did not have pretty desktops like we have come to expect today and were only told what to do using a series of written commands.<br><\/p>\n\n\n\n<p>Desktops have largely replaced command-line interfaces for modern users and with good reason: it takes a lot of work to navigate a command line. Who wants to type in a command to find a file when you can just use your desktop? While the command line may not be as useful for ordinary users, it can give programmers superpowers.<br><\/p>\n\n\n\n<p>Command lines may seem intimidating. There\u2019s lots of black and white text, and sometimes you can see scary error messages. In this guide, we\u2019re going to help you get to grips with the command line so you\u2019ll be ready to work with command line interfaces like a professional.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-why-do-we-use-the-command-line\">Why Do We Use the Command Line?<\/h2>\n\n\n\n<p>Consider the following scenario: you need to read the first three lines of all the files in a folder. You could go and find those files on your desktop and then open them all individually, but that would take a lot of work. What if you wanted to search all of those files?<br><\/p>\n\n\n\n<p>This is not a feature of desktop-based interfaces because most consumers don\u2019t need to use it. Programmers, on the other hand, do often need these features.<br><\/p>\n\n\n\n<p>The command line is still used widely by developers because it gives you more control over your computer. You can find files, navigate through your computer, monitor processes and perform a number of other tasks through the command line. You can even sign in to other computers and access their command line interfaces, if you have permission to log in.<br><\/p>\n\n\n\n<p>The command line is most associated with Linux users and system administrators, but it\u2019s a tool most developers use at some point. To install Python on your computer, you can either download IDLE online or you can use the command line. But to run a complex program and install its libraries, you may have to use the command line.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-getting-started-with-the-command-line\">Getting Started With the Command Line<\/h2>\n\n\n\n<p>The command line allows you to navigate through your computer and run programs. You can think of the command line as a way to talk directly with your computer. Whereas desktop interfaces control what you can and can\u2019t do, the world \u2013 or computer \u2013 is your oyster when you\u2019re working with the command line.<br><\/p>\n\n\n\n<p>Firstly, open a terminal window. On Linux and Unix-based systems such as macOS, the command line is called Bash and you can open it by searching for the program \u201cTerminal\u201d on your computer. There are also applications out there like Hyper which you can install as alternatives to the default terminal on your computer.<br><\/p>\n\n\n\n<p>Once you\u2019ve set up a terminal, you\u2019re ready to start. Let\u2019s discuss a few of the most common commands \u2013 instructions \u2013 you\u2019ll need to know when using the command line.<br><\/p>\n\n\n\n<p>We\u2019re going to split this tutorial into three parts:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Moving around the file system<\/li>\n\n\n\n<li>Changing files and directories<\/li>\n\n\n\n<li>Input and output<\/li>\n<\/ul>\n\n\n\n<p>Let\u2019s begin.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-part-1-how-to-navigate-through-your-files\">Part 1: How to Navigate Through Your Files<\/h2>\n\n\n\n<p>Before we talk about making changes to a file system and scripting, we\u2019ve got to talk about the basics. The place where every newbie to Linux starts is finding files on their system.<br><\/p>\n\n\n\n<p>In your command line, type in the following command:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>ls<\/pre><\/div>\n\n\n\n<p>What do you see? In my case, I see the following:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>Applications\tDesktop\t Documents\tDownloads\tLibrary\t\tPictures\t\tPublic\t\t    Sites<\/pre><\/div>\n\n\n\n<p>This command allows you to list the contents of a folder. Running this command helped me see that the folder I\u2019m in right now contains a number of other folders, like Pictures and Desktop. You can also list the contents of a specific folder by specifying the name of that folder:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>ls Desktop<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-working-directories-and-filesystems\">Working Directories and Filesystems<\/h3>\n\n\n\n<p>The folder that you\u2019re currently in when using the command line is called your current working directory. By default, the <code>ls<\/code> command runs in your current working directory, unless you specify a folder whose contents you want to list.&nbsp;<br><\/p>\n\n\n\n<p>Files in Linux use a tree structure and so each folder can contain many subfolders. At the top of the tree is a folder called the root directory. On a Linux computer, this is found at \/.&nbsp;<br><\/p>\n\n\n\n<p>If you want to know what directory you are currently viewing, you can use the command pwd:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>pwd<\/pre><\/div>\n\n\n\n<p>This command returns:  \/Users\/James. pwd allows me to see where I am in the filesystem.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-moving-around-the-filesystem\">Moving Around the Filesystem<\/h3>\n\n\n\n<p>On a desktop computer, it\u2019s easy to move around the filesystem. All you need to do is open a folder viewer like \u201cFinder\u201d on Mac and click on a folder. With the command line, it\u2019s also easy to move around the filesystem. Instead of clicking on folders, you can use the <code>cd<\/code> command to move around the filesystem:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cd folder-name<\/pre><\/div>\n\n\n\n<p>In my case, if I run <code>cd Desktop\/<\/code>, I am moved to the Desktop. If I run <code>pwd<\/code> again, \/Users\/James\/Desktop is returned. This is because cd has changed my current working directory to the Desktop folder.<br><\/p>\n\n\n\n<p><code>cd<\/code> is an easy command to remember because it stands for change directory. When you start using this command, you\u2019ll know that in order to Change Directory, you need to use cd.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-create-a-directory\">How to Create a Directory<\/h3>\n\n\n\n<p>You now know how to move around the filesystem and view files and folders. The next step is to actually create a folder. Creating a folder in the command line is accomplished using the <code>mkdir<\/code> command. This command creates a new empty folder at the location you specify.<br><\/p>\n\n\n\n<p>The following command will create a folder called \u201cnew-folder\u201d in your current working directory:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>mkdir new-folder<\/pre><\/div>\n\n\n\n<p>Now, if I run <code>ls<\/code> again, I can see that a new folder has been added to my current working directory (which we changed in the last example to be \/Users\/James\/Desktop):<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>to-do.md\tnew-folder<\/pre><\/div>\n\n\n\n<p>As you can see, there are two items in my Desktop folder. There\u2019s a file called \u201cto-do.md\u201d, and there is the new folder that we just created called \u201cnew-folder\u201d.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-part-2-changing-files-and-folders\">Part 2: Changing Files and Folders<\/h2>\n\n\n\n<p>Well done on making it this far. Go make yourself a cup of tea or coffee as a reward, or do something else that you enjoy! The Linux command line isn\u2019t the easiest tool to learn for beginners, so you should congratulate yourself on completing part one of this tutorial.<br><\/p>\n\n\n\n<p>Now we\u2019re going to discuss how to change the filesystem. So far, we\u2019ve listed files and created folders, but that\u2019s only the start of what we can do with the command line.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-create-and-edit-a-file\">How to Create and Edit a File<\/h3>\n\n\n\n<p>You are probably used to clicking \u201cFile &gt; New\u201d to create a new file on your computer. That\u2019s the procedure that most programs use to create new files. In the Linux command line, it\u2019s a different story. All you need to do to create a file is run the \u201ctouch\u201d command:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>touch linux_tutorial.txt<\/pre><\/div>\n\n\n\n<p>When executed, this command creates a file called \u201clinux_tutorial.txt\u201d. It is an empty file, but we can open and edit it as we want.<br><\/p>\n\n\n\n<p>In Linux, there are a number of different ways you can edit files. One of the most common ways in which beginners edit files is through <code>nano<\/code>, an easy-to-use text file editing tool for the command line. Run this command in your terminal:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>nano linux_tutorial.txt<\/pre><\/div>\n\n\n\n<p>This command will allow you to see the contents of the file we created and edit the file. Once you\u2019ve made your edits, press Command-X (or equivalent), type Y, then press enter. This will save your changes to the file.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-copy-a-file\">How to Copy a File<\/h3>\n\n\n\n<p>Right click. Copy. Right click. Paste. That\u2019s how you copy and paste files on a desktop computer. You\u2019ll notice a trend going on, but this is not the case with the command line. To copy a file or folder on the command line, you can use the <code>cp<\/code> command.<br><\/p>\n\n\n\n<p>Here\u2019s an example of this command in action:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cp linux_tutorial.txt linux_tutorial_part_two.txt<\/pre><\/div>\n\n\n\n<p>This command allows us to copy the file \u201clinux_tutorial.txt\u201d into a file called \u201clinux_tutorial_part_two.txt\u201d. The first word after \u201ccp\u201d is the file you want to copy and the second is the destination where you want to copy that file or folder.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-move-a-file\">How to Move a File<\/h3>\n\n\n\n<p>You can use the <code>mv<\/code> command to move a file into a folder in Linux. The first argument you specify should be the file that you want to move and the second one should be the folder in which you want to move that file.<br><\/p>\n\n\n\n<p>The following command allows us to move our \u201clinux_tutorial.txt\u201d file into the folder \u201cnew-folder\u201d:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>mv linux_tutorial.txt new-folder\/<\/pre><\/div>\n\n\n\n<p>The <code>\/<\/code> at the end of our folder name is not required, but it helps show that we are moving our file into a folder.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-delete-a-file-or-folder\">How to Delete a File or Folder<\/h3>\n\n\n\n<p>You can use the <code>rm<\/code> command to delete files and folders. The <code>rm<\/code> command itself allows you to delete files or blank folders. If you want to delete a folder which contains files, you need to specify the <code>-r<\/code> flag alongside the command.<br><\/p>\n\n\n\n<p><em>In Linux, a flag is used to modify the behavior of a command. For instance, the \u201c-r\u201d flag removes all files and folders within a folder, when used with the \u201crm\u201d command. Another example of a flag is \u201cls -a\u201d, which lists all the contents of a folder, including hidden files and folders.<\/em><br><\/p>\n\n\n\n<p>The following command deletes the contents of the \u201cnew-folder\u201d folder on our desktop:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>rm -r new-folder\/<\/pre><\/div>\n\n\n\n<p>It\u2019s worth noting that when a file is deleted in Linux, it is gone. There is no trash can like there is on your desktop. Before you delete a file, double check to make sure that the file you have selected is in fact the one that you want to delete.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-part-3-input-and-output\">Part 3: Input and Output<\/h2>\n\n\n\n<p>You\u2019ve reached part three, the final portion of this tutorial. In this section, we\u2019re going to talk about viewing files, searching files and redirection. You now know how to move around the filesystem and make changes to files, but there\u2019s more we can do with these commands.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-viewing-files\">Viewing Files<\/h3>\n\n\n\n<p>When you see Linux experts using the command <code>cat<\/code>, you should know that they\u2019re not talking about the animal. They are talking about the command that allows you to view a file. The <code>cat<\/code> command displays the contents of a file to the terminal.<br><\/p>\n\n\n\n<p>This command allows us to see the contents of the \u201clinux_tutorial.txt\u201d file:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>cat linux_tutorial.txt<\/pre><\/div>\n\n\n\n<p>In my case, this returns:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>This is a Linux tutorial.\nIt's still a work in progress.<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-searching-files\">Searching Files<\/h3>\n\n\n\n<p>When you\u2019re working with files in Linux, it\u2019s common to want to search through that file. That\u2019s where the <code>grep<\/code> command comes in handy. While the <code>grep<\/code> command can get quite complicated if you use different flags, it\u2019s quite easy to use if you keep it simple.<br><\/p>\n\n\n\n<p>Suppose we want to search for the word \u201cLinux\u201d in our \u201clinux_tutorial.txt\u2019 article. We could do so using this command:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>grep \"Linux\" linux_tutorial.txt<\/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>This is a Linux tutorial.<\/pre><\/div>\n\n\n\n<p>You can see that the <code>grep<\/code> command has searched through our file and returned the line of text which includes our search. If the word \u201cLinux\u201d had appeared multiple times in our file, then each line containing the word would have been returned.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-redirection\">Redirection<\/h3>\n\n\n\n<p>In Linux, redirection is a technique where you can use the output of a file or command as an input for another.<br><\/p>\n\n\n\n<p>Suppose you want to make a list of all the files and folders in your \u201cDesktop\u201d folder and save it to a folder called \u201cfolders.txt\u201d. You could accomplish this task using the following command:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>ls &gt; folders.txt<\/pre><\/div>\n\n\n\n<p>Open the \u201cfolders.txt\u201d file using nano (or your preferred text editor) and you\u2019ll see that the output of the <code>ls<\/code> command was added to this file.<br><\/p>\n\n\n\n<p>In this example, the\u201d &gt;\u201d symbol is used to redirect outputs from the command on the left hand side of the symbol to the command on the right hand side. It\u2019s worth noting that this symbol replaces the contents of a file. If you want to add the result of a command to the end of a file, you should use the \u201c&gt;&gt;\u201d symbol.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n\n\n\n<p>Congratulations! You\u2019ve made it. Give yourself a pat on the back because the Linux command line is a difficult tool for beginners to learn. It looks very different from a desktop interface and movies don\u2019t exactly do it justice.<br><\/p>\n\n\n\n<p>In movies, the command line looks intimidating and is associated with hacking; in the real world, it\u2019s a valuable tool in the arsenal of any Linux operating system user or programmer.&nbsp;<br><\/p>\n\n\n\n<p>In this guide, we discussed three main parts of working with Linux systems: navigating the file system, making changes to files, and input and output.<br><\/p>\n\n\n\n<p>There\u2019s still a lot more for you to learn. There\u2019s a variety of flags you can use to customize the commands we\u2019ve discussed in this tutorial even further. We\u2019ve not even talked about piping or environmental variables. To find out more about a command, you can run \u201cman [command]\u201d in your terminal. This will show you the manual page for that command.<br><\/p>\n\n\n\n<p>The commands we\u2019ve talked about here are the foundation of the Linux command line. If you don\u2019t know how to use them, you\u2019ll never be able to use more complex commands.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-supporting-resources\">Supporting Resources<\/h2>\n\n\n\n<p>Want to learn more about the command line? Check out these resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/careerkarma.com\/blog\/how-to-learn-linux\/\">Career Karma How to Learn Linux Guide<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/careerkarma.com\/subjects\/best-linux-bootcamps\/https:\/\/careerkarma.com\/subjects\/best-linux-bootcamps\/\">Best Linux Bootcamps Rankings<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.git-tower.com\/blog\/command-line-cheat-sheet\/\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\">Git Tower Command Line Cheat Sheet<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/kmdr.sh\/\" target=\"_blank\" rel=\"noopener\" rel=\"nofollow\">Kmdr Code Assistance<\/a><\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"Those of you old enough to remember when the earliest computers were introduced may recall MS-DOS and other command-line systems. The first computers did not have pretty desktops like we have come to expect today and were only told what to do using a series of written commands. Desktops have largely replaced command-line interfaces for&hellip;","protected":false},"author":240,"featured_media":18430,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[18070],"tags":[],"class_list":{"0":"post-18429","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":"","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>A Beginner&#039;s Guide to the Linux Command Line %<\/title>\n<meta name=\"description\" content=\"The Linux command line is an essential tool used by developers working on all types of projects. On Career Karma, learn how to navigate the Linux command line.\" \/>\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-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Beginner&#039;s Guide to the Linux Command Line\" \/>\n<meta property=\"og:description\" content=\"The Linux command line is an essential tool used by developers working on all types of projects. On Career Karma, learn how to navigate the Linux command line.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/linux-command-line\/\" \/>\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-06-25T01:18:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:22:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/paul-esch-laurent-6MeMUw5KDss-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"662\" \/>\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=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-command-line\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-command-line\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"A Beginner&#8217;s Guide to the Linux Command Line\",\"datePublished\":\"2020-06-25T01:18:19+00:00\",\"dateModified\":\"2023-12-01T11:22:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-command-line\/\"},\"wordCount\":2280,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-command-line\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/paul-esch-laurent-6MeMUw5KDss-unsplash.jpg\",\"articleSection\":[\"Software Engineering\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/linux-command-line\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-command-line\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/linux-command-line\/\",\"name\":\"A Beginner's Guide to the Linux Command Line %\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-command-line\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-command-line\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/paul-esch-laurent-6MeMUw5KDss-unsplash.jpg\",\"datePublished\":\"2020-06-25T01:18:19+00:00\",\"dateModified\":\"2023-12-01T11:22:20+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The Linux command line is an essential tool used by developers working on all types of projects. On Career Karma, learn how to navigate the Linux command line.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-command-line\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/linux-command-line\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-command-line\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/paul-esch-laurent-6MeMUw5KDss-unsplash.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/paul-esch-laurent-6MeMUw5KDss-unsplash.jpg\",\"width\":1020,\"height\":662},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/linux-command-line\/#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\":\"A Beginner&#8217;s Guide to the Linux Command Line\"}]},{\"@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":"A Beginner's Guide to the Linux Command Line %","description":"The Linux command line is an essential tool used by developers working on all types of projects. On Career Karma, learn how to navigate the Linux command line.","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-command-line\/","og_locale":"en_US","og_type":"article","og_title":"A Beginner's Guide to the Linux Command Line","og_description":"The Linux command line is an essential tool used by developers working on all types of projects. On Career Karma, learn how to navigate the Linux command line.","og_url":"https:\/\/careerkarma.com\/blog\/linux-command-line\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-06-25T01:18:19+00:00","article_modified_time":"2023-12-01T11:22:20+00:00","og_image":[{"width":1020,"height":662,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/paul-esch-laurent-6MeMUw5KDss-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":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/linux-command-line\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/linux-command-line\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"A Beginner&#8217;s Guide to the Linux Command Line","datePublished":"2020-06-25T01:18:19+00:00","dateModified":"2023-12-01T11:22:20+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/linux-command-line\/"},"wordCount":2280,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/linux-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/paul-esch-laurent-6MeMUw5KDss-unsplash.jpg","articleSection":["Software Engineering"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/linux-command-line\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/linux-command-line\/","url":"https:\/\/careerkarma.com\/blog\/linux-command-line\/","name":"A Beginner's Guide to the Linux Command Line %","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/linux-command-line\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/linux-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/paul-esch-laurent-6MeMUw5KDss-unsplash.jpg","datePublished":"2020-06-25T01:18:19+00:00","dateModified":"2023-12-01T11:22:20+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The Linux command line is an essential tool used by developers working on all types of projects. On Career Karma, learn how to navigate the Linux command line.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/linux-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/linux-command-line\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/linux-command-line\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/paul-esch-laurent-6MeMUw5KDss-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/06\/paul-esch-laurent-6MeMUw5KDss-unsplash.jpg","width":1020,"height":662},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/linux-command-line\/#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":"A Beginner&#8217;s Guide to the Linux Command Line"}]},{"@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\/18429","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=18429"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/18429\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/18430"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=18429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=18429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=18429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}