{"action":"created","comment":{"url":"https://api.github.com/repos/Nearsoft/apprentice/pulls/comments/171957297","pull_request_review_id":100906683,"id":171957297,"diff_hunk":"@@ -0,0 +1,417 @@\n+# The amazing world of the Terminal\n+\n+The terminal is a command-line interface app to control the operating system with text based commands\n+\n+To understand what the terminal is we need to ask ourselves, if the user interface in the computer would not exist how we would be able to operate it normally as we do? move across the directories and editing files? \n+\n+The terminal emulator also known as just 'Terminal' is a programs created to display the computer's data, the term comes from when users used to connect through a hardware called terminals that were only a display and a keyboard connected to a main computer called mainframe with a specific user who had specific permissions\n+\n+You may be wondering 'Why would I want to learn how to use the terminal if I already know how to use the graphical user interface (GUI)?' \n+\n+People use the terminal for various reasons but mostly because:\n+\n+- It's faster to operate on the terminal\n+- Some data is not easily accessible through the GUI\n+- Repetitive task can be automated through it\n+- Makes difficult tasks easy\n+\n+And of course, when programming we will be using the terminal a lot, to install libraries, move across the filesystem, display changes in our files, push code to remote servers, etc.\n+\n+We are using BASH that is a command language or a command interpreter. BASH is a type of shell, a shell is an interface to the operating system, it passes commands to SO to carry out, there are other types of shells, you'll commonly see this two terms together\n+\n+## Hands on the terminal\n+\n+To start liking the terminal we need to know the basic commands, and keep learning accordingly to what we want to accomplish\n+\n+First let's open a terminal if we haven't done already. \n+```\n+Daniels-MacBook-Air:apprentice danielvilla$ \n+```\n+That is like called the **shell prompt** \n+\n+Let's dissect the parts of the prompt:\n+\n+`Daniels-MacBook-Air` is the hostname\n+\n+`apprentice` is the current directory\n+\n+`danielvilla` is the name of the user\n+\n+`$` means you are a normal user\n+\n+the prompt is highly customizable changing the env variable **$PS1** but for now let's keep it the way it is\n+\n+Let's type whatever we want just to see what happen, let's experiment:\n+```\n+Daniels-MacBook-Air:apprentice danielvilla$ hey\n+-bash: hey: command not found\n+```\n+As you can see the CLI *(command line interface)* is trying to resolve that name, it thinks it is a command, and as it wasn't found it return `command not found`, that tell you how to use it, and what it is expecting\n+\n+Now let's input a real command.\n+\n+Type `ls` to list all the files on the current directory. \n+\n+```\n+Daniels-MacBook-Air:apprentice danielvilla$ ls\n+LICENSE   README.md\n+```\n+\n+but wait how do we know in what directory we are? we use the command `pwd` that means *path of working directory*\n+```\n+Daniels-MacBook-Air:apprentice danielvilla$ pwd\n+/Users/danielvilla/apprentice\n+```\n+Thre are two types of path, `absolute path` and `relative path` what pwd returns is the absolute path because it is NOT relative to the current directory we are on and it starts with **/**\n+\n+#### Navigation\n+\n+Now that we learned how to display the files on a directory (ls) let's learn how to move to another directory\n+\n+```\n+danielvilla@Daniels-MacBook-Air:~$ cd docker\n+danielvilla@Daniels-MacBook-Air:~/docker$ \n+```\n+\n+By the way, the **~** before the **$** sign indicates the home directory, all users have their own home directory, and is VERY IMPORTANT that you know that **/** indicates the root directory, off all the filesystem\n+\n+but now that we are on the docker directory how do we move back to the home directory, there are two ways:\n+\n+`danielvilla@Daniels-MacBook-Air:~/docker$ cd ..`\n+\n+and\n+\n+`danielvilla@Daniels-MacBook-Air:~/docker$ cd`\n+\n+**cd** without any arguments changes to your home directory no matter where you are","path":"terminal/terminal.md","position":86,"original_position":86,"commit_id":"bea33e6849be26b6fdacdcb8a8105e88d2d9844e","original_commit_id":"bea33e6849be26b6fdacdcb8a8105e88d2d9844e","user":{"login":"DarthCharles","id":7410981,"avatar_url":"https://avatars3.githubusercontent.com/u/7410981?v=4","gravatar_id":"","url":"https://api.github.com/users/DarthCharles","html_url":"https://github.com/DarthCharles","followers_url":"https://api.github.com/users/DarthCharles/followers","following_url":"https://api.github.com/users/DarthCharles/following{/other_user}","gists_url":"https://api.github.com/users/DarthCharles/gists{/gist_id}","starred_url":"https://api.github.com/users/DarthCharles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarthCharles/subscriptions","organizations_url":"https://api.github.com/users/DarthCharles/orgs","repos_url":"https://api.github.com/users/DarthCharles/repos","events_url":"https://api.github.com/users/DarthCharles/events{/privacy}","received_events_url":"https://api.github.com/users/DarthCharles/received_events","type":"User","site_admin":false},"body":"+**cd** without any arguments changes to your home directory no matter where you are`.`\r\n","created_at":"2018-03-02T20:41:45Z","updated_at":"2018-03-02T20:41:45Z","html_url":"https://github.com/Nearsoft/apprentice/pull/13#discussion_r171957297","pull_request_url":"https://api.github.com/repos/Nearsoft/apprentice/pulls/13","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Nearsoft/apprentice/pulls/comments/171957297"},"html":{"href":"https://github.com/Nearsoft/apprentice/pull/13#discussion_r171957297"},"pull_request":{"href":"https://api.github.com/repos/Nearsoft/apprentice/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/Nearsoft/apprentice/pulls/13","id":172596789,"html_url":"https://github.com/Nearsoft/apprentice/pull/13","diff_url":"https://github.com/Nearsoft/apprentice/pull/13.diff","patch_url":"https://github.com/Nearsoft/apprentice/pull/13.patch","issue_url":"https://api.github.com/repos/Nearsoft/apprentice/issues/13","number":13,"state":"open","locked":false,"title":"Tutorial terminal","user":{"login":"dvilla","id":2319774,"avatar_url":"https://avatars3.githubusercontent.com/u/2319774?v=4","gravatar_id":"","url":"https://api.github.com/users/dvilla","html_url":"https://github.com/dvilla","followers_url":"https://api.github.com/users/dvilla/followers","following_url":"https://api.github.com/users/dvilla/following{/other_user}","gists_url":"https://api.github.com/users/dvilla/gists{/gist_id}","starred_url":"https://api.github.com/users/dvilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvilla/subscriptions","organizations_url":"https://api.github.com/users/dvilla/orgs","repos_url":"https://api.github.com/users/dvilla/repos","events_url":"https://api.github.com/users/dvilla/events{/privacy}","received_events_url":"https://api.github.com/users/dvilla/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-02T20:27:42Z","updated_at":"2018-03-02T20:41:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fbb796ca469dc5685138477d4171812d36efb304","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Nearsoft/apprentice/pulls/13/commits","review_comments_url":"https://api.github.com/repos/Nearsoft/apprentice/pulls/13/comments","review_comment_url":"https://api.github.com/repos/Nearsoft/apprentice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nearsoft/apprentice/issues/13/comments","statuses_url":"https://api.github.com/repos/Nearsoft/apprentice/statuses/bea33e6849be26b6fdacdcb8a8105e88d2d9844e","head":{"label":"dvilla:tutorial_terminal","ref":"tutorial_terminal","sha":"bea33e6849be26b6fdacdcb8a8105e88d2d9844e","user":{"login":"dvilla","id":2319774,"avatar_url":"https://avatars3.githubusercontent.com/u/2319774?v=4","gravatar_id":"","url":"https://api.github.com/users/dvilla","html_url":"https://github.com/dvilla","followers_url":"https://api.github.com/users/dvilla/followers","following_url":"https://api.github.com/users/dvilla/following{/other_user}","gists_url":"https://api.github.com/users/dvilla/gists{/gist_id}","starred_url":"https://api.github.com/users/dvilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvilla/subscriptions","organizations_url":"https://api.github.com/users/dvilla/orgs","repos_url":"https://api.github.com/users/dvilla/repos","events_url":"https://api.github.com/users/dvilla/events{/privacy}","received_events_url":"https://api.github.com/users/dvilla/received_events","type":"User","site_admin":false},"repo":{"id":118272569,"name":"apprentice","full_name":"dvilla/apprentice","owner":{"login":"dvilla","id":2319774,"avatar_url":"https://avatars3.githubusercontent.com/u/2319774?v=4","gravatar_id":"","url":"https://api.github.com/users/dvilla","html_url":"https://github.com/dvilla","followers_url":"https://api.github.com/users/dvilla/followers","following_url":"https://api.github.com/users/dvilla/following{/other_user}","gists_url":"https://api.github.com/users/dvilla/gists{/gist_id}","starred_url":"https://api.github.com/users/dvilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvilla/subscriptions","organizations_url":"https://api.github.com/users/dvilla/orgs","repos_url":"https://api.github.com/users/dvilla/repos","events_url":"https://api.github.com/users/dvilla/events{/privacy}","received_events_url":"https://api.github.com/users/dvilla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dvilla/apprentice","description":"Helping students closing the gap between college and real work.","fork":true,"url":"https://api.github.com/repos/dvilla/apprentice","forks_url":"https://api.github.com/repos/dvilla/apprentice/forks","keys_url":"https://api.github.com/repos/dvilla/apprentice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dvilla/apprentice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dvilla/apprentice/teams","hooks_url":"https://api.github.com/repos/dvilla/apprentice/hooks","issue_events_url":"https://api.github.com/repos/dvilla/apprentice/issues/events{/number}","events_url":"https://api.github.com/repos/dvilla/apprentice/events","assignees_url":"https://api.github.com/repos/dvilla/apprentice/assignees{/user}","branches_url":"https://api.github.com/repos/dvilla/apprentice/branches{/branch}","tags_url":"https://api.github.com/repos/dvilla/apprentice/tags","blobs_url":"https://api.github.com/repos/dvilla/apprentice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dvilla/apprentice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dvilla/apprentice/git/refs{/sha}","trees_url":"https://api.github.com/repos/dvilla/apprentice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dvilla/apprentice/statuses/{sha}","languages_url":"https://api.github.com/repos/dvilla/apprentice/languages","stargazers_url":"https://api.github.com/repos/dvilla/apprentice/stargazers","contributors_url":"https://api.github.com/repos/dvilla/apprentice/contributors","subscribers_url":"https://api.github.com/repos/dvilla/apprentice/subscribers","subscription_url":"https://api.github.com/repos/dvilla/apprentice/subscription","commits_url":"https://api.github.com/repos/dvilla/apprentice/commits{/sha}","git_commits_url":"https://api.github.com/repos/dvilla/apprentice/git/commits{/sha}","comments_url":"https://api.github.com/repos/dvilla/apprentice/comments{/number}","issue_comment_url":"https://api.github.com/repos/dvilla/apprentice/issues/comments{/number}","contents_url":"https://api.github.com/repos/dvilla/apprentice/contents/{+path}","compare_url":"https://api.github.com/repos/dvilla/apprentice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dvilla/apprentice/merges","archive_url":"https://api.github.com/repos/dvilla/apprentice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dvilla/apprentice/downloads","issues_url":"https://api.github.com/repos/dvilla/apprentice/issues{/number}","pulls_url":"https://api.github.com/repos/dvilla/apprentice/pulls{/number}","milestones_url":"https://api.github.com/repos/dvilla/apprentice/milestones{/number}","notifications_url":"https://api.github.com/repos/dvilla/apprentice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dvilla/apprentice/labels{/name}","releases_url":"https://api.github.com/repos/dvilla/apprentice/releases{/id}","deployments_url":"https://api.github.com/repos/dvilla/apprentice/deployments","created_at":"2018-01-20T19:09:39Z","updated_at":"2018-01-03T03:02:58Z","pushed_at":"2018-03-02T20:26:32Z","git_url":"git://github.com/dvilla/apprentice.git","ssh_url":"git@github.com:dvilla/apprentice.git","clone_url":"https://github.com/dvilla/apprentice.git","svn_url":"https://github.com/dvilla/apprentice","homepage":"","size":386,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Nearsoft:master","ref":"master","sha":"61750c0b8912219ef45f827497cfeae68e4a9272","user":{"login":"Nearsoft","id":1137231,"avatar_url":"https://avatars2.githubusercontent.com/u/1137231?v=4","gravatar_id":"","url":"https://api.github.com/users/Nearsoft","html_url":"https://github.com/Nearsoft","followers_url":"https://api.github.com/users/Nearsoft/followers","following_url":"https://api.github.com/users/Nearsoft/following{/other_user}","gists_url":"https://api.github.com/users/Nearsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Nearsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nearsoft/subscriptions","organizations_url":"https://api.github.com/users/Nearsoft/orgs","repos_url":"https://api.github.com/users/Nearsoft/repos","events_url":"https://api.github.com/users/Nearsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Nearsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":19383512,"name":"apprentice","full_name":"Nearsoft/apprentice","owner":{"login":"Nearsoft","id":1137231,"avatar_url":"https://avatars2.githubusercontent.com/u/1137231?v=4","gravatar_id":"","url":"https://api.github.com/users/Nearsoft","html_url":"https://github.com/Nearsoft","followers_url":"https://api.github.com/users/Nearsoft/followers","following_url":"https://api.github.com/users/Nearsoft/following{/other_user}","gists_url":"https://api.github.com/users/Nearsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Nearsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nearsoft/subscriptions","organizations_url":"https://api.github.com/users/Nearsoft/orgs","repos_url":"https://api.github.com/users/Nearsoft/repos","events_url":"https://api.github.com/users/Nearsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Nearsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Nearsoft/apprentice","description":"Helping students closing the gap between college and real work.","fork":false,"url":"https://api.github.com/repos/Nearsoft/apprentice","forks_url":"https://api.github.com/repos/Nearsoft/apprentice/forks","keys_url":"https://api.github.com/repos/Nearsoft/apprentice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nearsoft/apprentice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nearsoft/apprentice/teams","hooks_url":"https://api.github.com/repos/Nearsoft/apprentice/hooks","issue_events_url":"https://api.github.com/repos/Nearsoft/apprentice/issues/events{/number}","events_url":"https://api.github.com/repos/Nearsoft/apprentice/events","assignees_url":"https://api.github.com/repos/Nearsoft/apprentice/assignees{/user}","branches_url":"https://api.github.com/repos/Nearsoft/apprentice/branches{/branch}","tags_url":"https://api.github.com/repos/Nearsoft/apprentice/tags","blobs_url":"https://api.github.com/repos/Nearsoft/apprentice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nearsoft/apprentice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nearsoft/apprentice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nearsoft/apprentice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nearsoft/apprentice/statuses/{sha}","languages_url":"https://api.github.com/repos/Nearsoft/apprentice/languages","stargazers_url":"https://api.github.com/repos/Nearsoft/apprentice/stargazers","contributors_url":"https://api.github.com/repos/Nearsoft/apprentice/contributors","subscribers_url":"https://api.github.com/repos/Nearsoft/apprentice/subscribers","subscription_url":"https://api.github.com/repos/Nearsoft/apprentice/subscription","commits_url":"https://api.github.com/repos/Nearsoft/apprentice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nearsoft/apprentice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nearsoft/apprentice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nearsoft/apprentice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nearsoft/apprentice/contents/{+path}","compare_url":"https://api.github.com/repos/Nearsoft/apprentice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nearsoft/apprentice/merges","archive_url":"https://api.github.com/repos/Nearsoft/apprentice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nearsoft/apprentice/downloads","issues_url":"https://api.github.com/repos/Nearsoft/apprentice/issues{/number}","pulls_url":"https://api.github.com/repos/Nearsoft/apprentice/pulls{/number}","milestones_url":"https://api.github.com/repos/Nearsoft/apprentice/milestones{/number}","notifications_url":"https://api.github.com/repos/Nearsoft/apprentice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nearsoft/apprentice/labels{/name}","releases_url":"https://api.github.com/repos/Nearsoft/apprentice/releases{/id}","deployments_url":"https://api.github.com/repos/Nearsoft/apprentice/deployments","created_at":"2014-05-02T17:55:15Z","updated_at":"2018-03-02T16:48:59Z","pushed_at":"2018-03-02T20:27:43Z","git_url":"git://github.com/Nearsoft/apprentice.git","ssh_url":"git@github.com:Nearsoft/apprentice.git","clone_url":"https://github.com/Nearsoft/apprentice.git","svn_url":"https://github.com/Nearsoft/apprentice","homepage":"","size":569,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":4,"open_issues":4,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nearsoft/apprentice/pulls/13"},"html":{"href":"https://github.com/Nearsoft/apprentice/pull/13"},"issue":{"href":"https://api.github.com/repos/Nearsoft/apprentice/issues/13"},"comments":{"href":"https://api.github.com/repos/Nearsoft/apprentice/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/Nearsoft/apprentice/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/Nearsoft/apprentice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nearsoft/apprentice/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/Nearsoft/apprentice/statuses/bea33e6849be26b6fdacdcb8a8105e88d2d9844e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"DarthCharles"}}