서버 관련/Linux

[리눅스] 심볼릭 링크

배고파요 2023. 10. 26. 17:42
728x90

📍 [pha:/home/custom/test_dir/link_data]  ln -s /home/custom/org_data ./
 

  • 원본이 있는 진짜 디렉토리 : /home/custom/org_data
  • 바로가기로 연결한 디렉토리 : /home/custom/test_dir/link_data

 /home/custom/test_dir/link_data
이 위치에서 명령어  ll 치면
이런식으로,, 이 디렉토리가 어디랑 연결되어 있는 지 보여줌!

lrwxrwxrwx 1 admin admin   29 10월 26 17:25 org_data -> /home/custom/org_data

 
바로가기를 생성하면, 연결하려고 하는 폴더명이 생김!
 
저. /home/custom/test_dir/link_data/org_data 
안에 들어가면
 /home/custom/org_data
이 디렉토리 안에 있는 것들이 보이게 됨!
 


출처 : 
https://it-misfit.tistory.com/9
 
https://blog.naver.com/supvr/10108822191
 
https://wickedmagica.tistory.com/130

 

 


 

개발 공부를 위한 블로그 입니다. 
오류가 있다면 댓글로 알려주세요! 
감사합니다.

728x90