Last active
June 4, 2018 12:24
-
-
Save DonghoonPark12/9ad26035efe0cb5fbe5cc36ebab4835a to your computer and use it in GitHub Desktop.
리눅스 심볼링 링크(ln -s)와 하드링크(ln) 차이
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 어떤 파일 test.txt를 저장하게 되면 내용을 하드에 저장하게 되고, 그 위치 정보를 test.txt가 가리키게 된다. | |
# 위치 정보를 가지고 있는 파일 명을 다른 이름으로 연결 | |
ln -s test.txt hello.txt | |
# 위치 정보를 가지고 있는 파일 명을 여러개 생성 | |
ln test.txt hello.txt | |
# 현재 디렉토리에서 .pl 확장자를 가진 모든 파일 찾기 | |
find -name '*.pl' | |
# 루트부터 .pl 확장자를 가진 모든 파일 찾기 (ls 형식으로 출력하고 싶을시 붙여줄 것) | |
find /-name '*pl'-ls | |
# 루트부터 디렉토리 이름이 et로 시작하는 디렉토리 찾기 | |
fing /-name 'et*' -type d | |
# 출처 | |
# http://sunnmoon.egloos.com/v/1858692 | |
# mwultong.blogspot.com/2006/10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment