Ln (유닉스): 두 판 사이의 차이

내용 삭제됨 내용 추가됨
새 문서: <code>'''ln'''</code> 명령어는 기존 파일에 대한 하드 링크심볼릭 링크를 생성하기 위해 사용되는 표준 유닉스 명령어 목록|유닉스...
 
편집 요약 없음
2번째 줄:
 
<code>ln</code> 명령어는 기본적으로 하드 링크를 생성하며 [[명령 줄 인터페이스|명령 줄]] [[명령 줄 인터페이스|변수]] <code>ln '-s'</code>로 호출할 때 심볼릭 링크를 생성한다.<ref>{{웹 인용|title=ln - The Open Group Base Specifications Issue 7|url=http://pubs.opengroup.org/onlinepubs/9699919799/utilities/ln.html|website=pubs.opengroup.org|publisher=The IEEE and The Open Group|accessdate=7 August 2015}}</ref> 대부분의 [[운영 체제]]는 [[디렉터리]]에 대한 하드 링크 생성을 금지하는데, 이러한 기능은 [[파일 시스템]]의 구조를 파괴하여 다른 유틸리티의 동작에 간섭을 줄 수 있기 때문이다.<ref>{{웹 인용|title=Why are hard links not allowed to directories in UNIX/Linux?|url=http://unix.stackexchange.com/questions/22394/why-hard-links-not-allowed-to-directories-in-unix-linux?rq=1|website=unix.stackexchange.com|accessdate=7 August 2015}}</ref> 그러나 <code>ln</code> 명령어는 기존에 존재하지 않는 파일에 대한 심볼릭 링크를 생성하기 위해 사용할 수 있다.<ref name=GNULnman />
 
== 사양 ==
[[단일 유닉스 규격]]을 준수하는 시스템 상의 <code>ln</code> 유틸리티는 SUS의 일부를 형성하는 셸과 유틸리티(XCU) 문서에 명시되어 있다.<ref name=SUSOverview>{{웹 인용|title=The Single UNIX Specification, Version 4 - Overview|url=http://www.unix.org/version4/overview.html|website=unix.org|publisher=unix.org|accessdate=7 August 2015}}</ref><ref name=XCUTOC>{{웹 인용|title=Shell & Utilities: Detailed Toc|url=http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html|website=pubs.opengroup.org|publisher=The IEEE and The Open Group|accessdate=7 August 2015}}</ref>
 
== 같이 보기 ==