{"componentChunkName":"component---src-templates-blog-post-js","path":"/CS/absolute_relative_path/","result":{"data":{"site":{"siteMetadata":{"title":"Progress Not Perfection","author":"Sunmin","siteUrl":"https://sunmin.netlify.com","comment":{"disqusShortName":"","utterances":"Sunmin0520/blog"}}},"markdownRemark":{"id":"6e38690d-4c5b-5818-923e-33e1fcc84eb2","excerpt":"절대경로 최상위 디렉토리부터 해당 디렉토리까지의 모든 경로 현재 위치는 확인할 필요 없다. 무조건 최상위부터 시작 pwd으로 확인 상대경로 현재 디렉토리가 비교대상. 이것 기준으로 작성 c에서 a로 가려면, 즉 서브에서 상위에게 가려면 ..로 시작 a에서 b로 가려면, 즉 상위에서 서브으로 가려면 그냥 바로 서브 이름 추가 (현 위치 의미하는 ./는 생략가능) ’ 아래의 구조에서 c에서 a1으로 가려면 ../../a1","html":"<p>\n<br />\n<h2 id=\"절대경로\" style=\"position:relative;\"><a href=\"#%EC%A0%88%EB%8C%80%EA%B2%BD%EB%A1%9C\" aria-label=\"절대경로 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>절대경로</h2>\n<ul>\n<li>최상위 디렉토리부터 해당 디렉토리까지의 모든 경로</li>\n<li>현재 위치는 확인할 필요 없다. 무조건 최상위부터 시작</li>\n<li>\n<p>pwd으로 확인</p>\n<img src=\"https://user-images.githubusercontent.com/60782131/109816059-a8cca800-7c73-11eb-9f07-ea6a22947812.png\">\n</li>\n</ul>\n<h2 id=\"상대경로\" style=\"position:relative;\"><a href=\"#%EC%83%81%EB%8C%80%EA%B2%BD%EB%A1%9C\" aria-label=\"상대경로 permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>상대경로</h2>\n<ul>\n<li>현재 디렉토리가 비교대상. 이것 기준으로 작성</li>\n<li>\n<p>c에서 a로 가려면, 즉 서브에서 상위에게 가려면 <strong>..</strong>로 시작</p>\n<img src=\"https://user-images.githubusercontent.com/60782131/109816575-3e683780-7c74-11eb-9cc3-373c829fe50d.png\">\n</li>\n</ul>\n<br />\n<ul>\n<li>\n<p>a에서 b로 가려면, 즉 상위에서 서브으로 가려면 그냥 바로 서브 이름 추가 (현 위치 의미하는 <strong>./</strong>는 생략가능)</p>\n<p><img src=\"https://user-images.githubusercontent.com/60782131/109817710-8e93c980-7c75-11eb-8002-0f62a2eb7bb9.png\">’</p>\n</li>\n</ul>\n<br />\n<ul>\n<li>아래의 구조에서 c에서 a1으로 가려면 <strong>../../a1</strong></li>\n</ul>\n<img src=\"https://user-images.githubusercontent.com/60782131/109819224-2cd45f00-7c77-11eb-9673-e20281650d40.png\">\n  \n</p>","frontmatter":{"title":"[CS] 절대경로, 상대경로","date":"March 03, 2021"}}},"pageContext":{"slug":"/CS/absolute_relative_path/","previous":{"fields":{"slug":"/Retrospective/2021/Feb_4th/"},"frontmatter":{"title":"[회고] 2월 넷째 주 회고(2/22 ~ 2/28)","category":"retrospective","draft":false}},"next":{"fields":{"slug":"/nodejs/dirname/"},"frontmatter":{"title":"[Node.js] __dirname, path.join","category":"nodejs","draft":false}}}},"staticQueryHashes":["3128451518","521680639"]}