{"action":"created","comment":{"url":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/comments/120000477","pull_request_review_id":41932861,"id":120000477,"diff_hunk":"@@ -1,20 +1,59 @@\n Preparation: Perform the following  (no need to write the commands you used):\n \n-  - create a new directory named \"links\"\n+ \r\n+ - create a new directory named \"links\"\n   - cd to it\n-  - inside the directory create 2 text files named \"file1\" and \"file2\". Write the names of some things you like in file \"file1\", and some things you don't like in file \"file2\"\n+  \r\n+\r\n+mkdir links\r\n+ln -s links  roi\r\n+\r\n+- inside the directory create 2 text files named \"file1\" and \"file2\". Write the names of some things you like in file \"file1\", and some things you don't like in file \"file2\"\n+\r\n \n+\r\n+cd links\r\n+pico file1\r\n+pico file2\r\n+\r\n 1. Perform the following and write the commands you used, from within links directory:\n \n-  - Create a symbolic link named file3 that points to \"file1\"\n-  Answer: \n+  \r\n+\r\n+- Create a symbolic link named file3 that points to \"file1\"\n+ \r\n+Answer: \n \n-  - Create a hard link named file4 that points to \"file2\"\n-  Answer: \n+ ln -s file 1 file 3\r\n+\r\n+ - Create a hard link named file4 that points to \"file2\"\n+\r\n+  Answer: ln \"file2\" \"file4\"\r\n+\r\n+ \n \n   - Create a new directory named \"tmp\" in your home folder:\n-  Answer:\n+ \r\n+ Answer:\r\n \n-2. Move \"file3\" to the new \"~/tmp\" directory you just created. Can you still use it to see the original \"file1\" ? Why not? How would you create a symbolic link that would survive the transfer to ~/tmp ?\n+ \r\n+\r\n+\n+2. Move \"file3\" to the new \"~/tmp\" directory you just created. Can you still use it to see the original \"file1\" ? Why not? How would you create a symbolic link that would survive the transfer to ~/tmp ?\r\n+\n+\r\n+mv links/file3 ~/tmp\r\n+cd ~/tmp\r\n+ls -l file3\r\n+file3 ---> file1\r\n+ls ../file3\r\n+\r\n+no such file or directory. \r\n+\r\n+ln-s /home/rpi/tmp/file3  link-to-main\r\n+ls -l link-to-main\r\n+link-to-main ---> /home/roi/tmp/file3\r\n+\r\n+\r\n \n 3. How can you tell that \"file2\" and \"file4\" refer to the same file?","path":"18_links_lab/linkslab.txt","position":67,"original_position":67,"commit_id":"6ac0eb84f3a2edb7b8dc60cf60d2a00de01ee256","original_commit_id":"6ac0eb84f3a2edb7b8dc60cf60d2a00de01ee256","user":{"login":"ynonp","id":128594,"avatar_url":"https://avatars2.githubusercontent.com/u/128594?v=3","gravatar_id":"","url":"https://api.github.com/users/ynonp","html_url":"https://github.com/ynonp","followers_url":"https://api.github.com/users/ynonp/followers","following_url":"https://api.github.com/users/ynonp/following{/other_user}","gists_url":"https://api.github.com/users/ynonp/gists{/gist_id}","starred_url":"https://api.github.com/users/ynonp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ynonp/subscriptions","organizations_url":"https://api.github.com/users/ynonp/orgs","repos_url":"https://api.github.com/users/ynonp/repos","events_url":"https://api.github.com/users/ynonp/events{/privacy}","received_events_url":"https://api.github.com/users/ynonp/received_events","type":"User","site_admin":false},"body":"The command `ls -li` prints a number called the inode of a file. Two files are hard links to one another if they have the same inode number","created_at":"2017-06-04T04:46:53Z","updated_at":"2017-06-04T04:47:01Z","html_url":"https://github.com/tocodeil/unix1-course-examples/pull/124#discussion_r120000477","pull_request_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/124","_links":{"self":{"href":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/comments/120000477"},"html":{"href":"https://github.com/tocodeil/unix1-course-examples/pull/124#discussion_r120000477"},"pull_request":{"href":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/124"}}},"pull_request":{"url":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/124","id":123842317,"html_url":"https://github.com/tocodeil/unix1-course-examples/pull/124","diff_url":"https://github.com/tocodeil/unix1-course-examples/pull/124.diff","patch_url":"https://github.com/tocodeil/unix1-course-examples/pull/124.patch","issue_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/issues/124","number":124,"state":"open","locked":false,"title":"ToCode Solution: תרגיל Links","user":{"login":"roigizmo","id":28998722,"avatar_url":"https://avatars0.githubusercontent.com/u/28998722?v=3","gravatar_id":"","url":"https://api.github.com/users/roigizmo","html_url":"https://github.com/roigizmo","followers_url":"https://api.github.com/users/roigizmo/followers","following_url":"https://api.github.com/users/roigizmo/following{/other_user}","gists_url":"https://api.github.com/users/roigizmo/gists{/gist_id}","starred_url":"https://api.github.com/users/roigizmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roigizmo/subscriptions","organizations_url":"https://api.github.com/users/roigizmo/orgs","repos_url":"https://api.github.com/users/roigizmo/repos","events_url":"https://api.github.com/users/roigizmo/events{/privacy}","received_events_url":"https://api.github.com/users/roigizmo/received_events","type":"User","site_admin":false},"body":null,"created_at":"2017-06-03T13:24:47Z","updated_at":"2017-06-04T04:47:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7b353b3e4b48657daa2618fe6ab7cb1815f740d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/124/commits","review_comments_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/124/comments","review_comment_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/issues/124/comments","statuses_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/statuses/6ac0eb84f3a2edb7b8dc60cf60d2a00de01ee256","head":{"label":"roigizmo:18_links_lab","ref":"18_links_lab","sha":"6ac0eb84f3a2edb7b8dc60cf60d2a00de01ee256","user":{"login":"roigizmo","id":28998722,"avatar_url":"https://avatars0.githubusercontent.com/u/28998722?v=3","gravatar_id":"","url":"https://api.github.com/users/roigizmo","html_url":"https://github.com/roigizmo","followers_url":"https://api.github.com/users/roigizmo/followers","following_url":"https://api.github.com/users/roigizmo/following{/other_user}","gists_url":"https://api.github.com/users/roigizmo/gists{/gist_id}","starred_url":"https://api.github.com/users/roigizmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roigizmo/subscriptions","organizations_url":"https://api.github.com/users/roigizmo/orgs","repos_url":"https://api.github.com/users/roigizmo/repos","events_url":"https://api.github.com/users/roigizmo/events{/privacy}","received_events_url":"https://api.github.com/users/roigizmo/received_events","type":"User","site_admin":false},"repo":{"id":92591200,"name":"unix1-course-examples","full_name":"roigizmo/unix1-course-examples","owner":{"login":"roigizmo","id":28998722,"avatar_url":"https://avatars0.githubusercontent.com/u/28998722?v=3","gravatar_id":"","url":"https://api.github.com/users/roigizmo","html_url":"https://github.com/roigizmo","followers_url":"https://api.github.com/users/roigizmo/followers","following_url":"https://api.github.com/users/roigizmo/following{/other_user}","gists_url":"https://api.github.com/users/roigizmo/gists{/gist_id}","starred_url":"https://api.github.com/users/roigizmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roigizmo/subscriptions","organizations_url":"https://api.github.com/users/roigizmo/orgs","repos_url":"https://api.github.com/users/roigizmo/repos","events_url":"https://api.github.com/users/roigizmo/events{/privacy}","received_events_url":"https://api.github.com/users/roigizmo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/roigizmo/unix1-course-examples","description":"Labs and example files for unix1 course","fork":true,"url":"https://api.github.com/repos/roigizmo/unix1-course-examples","forks_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/forks","keys_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/teams","hooks_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/hooks","issue_events_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/issues/events{/number}","events_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/events","assignees_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/assignees{/user}","branches_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/branches{/branch}","tags_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/tags","blobs_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/languages","stargazers_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/stargazers","contributors_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/contributors","subscribers_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/subscribers","subscription_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/subscription","commits_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/contents/{+path}","compare_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/merges","archive_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/downloads","issues_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/issues{/number}","pulls_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/labels{/name}","releases_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/releases{/id}","deployments_url":"https://api.github.com/repos/roigizmo/unix1-course-examples/deployments","created_at":"2017-05-27T10:18:04Z","updated_at":"2016-12-10T09:57:50Z","pushed_at":"2017-06-03T13:33:25Z","git_url":"git://github.com/roigizmo/unix1-course-examples.git","ssh_url":"git@github.com:roigizmo/unix1-course-examples.git","clone_url":"https://github.com/roigizmo/unix1-course-examples.git","svn_url":"https://github.com/roigizmo/unix1-course-examples","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"tocodeil:master","ref":"master","sha":"228d2e9e17d07d11c130874f78fb1894c277412e","user":{"login":"tocodeil","id":20875340,"avatar_url":"https://avatars2.githubusercontent.com/u/20875340?v=3","gravatar_id":"","url":"https://api.github.com/users/tocodeil","html_url":"https://github.com/tocodeil","followers_url":"https://api.github.com/users/tocodeil/followers","following_url":"https://api.github.com/users/tocodeil/following{/other_user}","gists_url":"https://api.github.com/users/tocodeil/gists{/gist_id}","starred_url":"https://api.github.com/users/tocodeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tocodeil/subscriptions","organizations_url":"https://api.github.com/users/tocodeil/orgs","repos_url":"https://api.github.com/users/tocodeil/repos","events_url":"https://api.github.com/users/tocodeil/events{/privacy}","received_events_url":"https://api.github.com/users/tocodeil/received_events","type":"Organization","site_admin":false},"repo":{"id":76104406,"name":"unix1-course-examples","full_name":"tocodeil/unix1-course-examples","owner":{"login":"tocodeil","id":20875340,"avatar_url":"https://avatars2.githubusercontent.com/u/20875340?v=3","gravatar_id":"","url":"https://api.github.com/users/tocodeil","html_url":"https://github.com/tocodeil","followers_url":"https://api.github.com/users/tocodeil/followers","following_url":"https://api.github.com/users/tocodeil/following{/other_user}","gists_url":"https://api.github.com/users/tocodeil/gists{/gist_id}","starred_url":"https://api.github.com/users/tocodeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tocodeil/subscriptions","organizations_url":"https://api.github.com/users/tocodeil/orgs","repos_url":"https://api.github.com/users/tocodeil/repos","events_url":"https://api.github.com/users/tocodeil/events{/privacy}","received_events_url":"https://api.github.com/users/tocodeil/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tocodeil/unix1-course-examples","description":"Labs and example files for unix1 course","fork":false,"url":"https://api.github.com/repos/tocodeil/unix1-course-examples","forks_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/forks","keys_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/teams","hooks_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/hooks","issue_events_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/issues/events{/number}","events_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/events","assignees_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/assignees{/user}","branches_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/branches{/branch}","tags_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/tags","blobs_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/languages","stargazers_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/stargazers","contributors_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/contributors","subscribers_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/subscribers","subscription_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/subscription","commits_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/contents/{+path}","compare_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/merges","archive_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/downloads","issues_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/issues{/number}","pulls_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/labels{/name}","releases_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/releases{/id}","deployments_url":"https://api.github.com/repos/tocodeil/unix1-course-examples/deployments","created_at":"2016-12-10T09:57:50Z","updated_at":"2016-12-10T09:57:50Z","pushed_at":"2017-06-03T19:39:06Z","git_url":"git://github.com/tocodeil/unix1-course-examples.git","ssh_url":"git@github.com:tocodeil/unix1-course-examples.git","clone_url":"https://github.com/tocodeil/unix1-course-examples.git","svn_url":"https://github.com/tocodeil/unix1-course-examples","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":7,"forks":25,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/124"},"html":{"href":"https://github.com/tocodeil/unix1-course-examples/pull/124"},"issue":{"href":"https://api.github.com/repos/tocodeil/unix1-course-examples/issues/124"},"comments":{"href":"https://api.github.com/repos/tocodeil/unix1-course-examples/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tocodeil/unix1-course-examples/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/tocodeil/unix1-course-examples/statuses/6ac0eb84f3a2edb7b8dc60cf60d2a00de01ee256"}}}}
{"actor":{"display_login":"ynonp"}}