2014-05-17 4 views
0

내 dotfiles에 대한 심볼릭 링크를 만들려고합니다. (중앙 집중식 점 파일 저장소를 가질 수는 있지만) iTerm은 심볼릭 링크 된 파일을 읽지 않습니다. 기본적으로 별칭이나 다른 구성에 액세스 할 수 없습니다. 다음 그것을 반대 방법을 수행dotfiles에서 작동하도록 심볼릭 링크를 얻을 수 없습니다.

ln -s ~/.dot_file ~/Google\ Drive/Developer/git\ repositories/dotfiles/dot_file 

나는 또한 시도했지만 : 내가 올바르게 사용하여 저장소 위치에서 홈 디렉토리에있는 링크와 실제 파일을 넣어 파일을 심볼릭 링크하고있어 믿고

저장소에는 링크의 파일 내용이 없습니다. aka :

touch ~/Google\ Drive/Developer/git\ repositories/dotfiles/dot_file 
mv .dot_file ~/Google\ Drive/Developer/git\ repositories/dotfiles/dot_file 
cd ~/Google\ Drive/Developer/git\ repositories/dotfiles 
ln -s dot_file ~/.dot_file 

나는이 기사를 참조했다.

도와주세요! :)

+0

'ln -s REAL_FILE LINK'와 같은 페이지에있는 것은 매개 변수 순서입니다. 역순으로 처리하는 것 같습니다. –

답변

2

첫 번째 예제는 ln -s source target (cpmv과 같은) 잘못된 방식으로 연결됩니다.

두 번째 예에서는 잘못된 상대 링크를 만듭니다.

ls -l yourfile을 사용하면 파일이 심볼릭 링크인지 또는 파일이 가리키는 지 확인할 수 있습니다. 당신이 할 수있는 것들

입니다 : 시작하기 전에

cd ~ 
ln -s "Google Drive/Developer/git repositories/dotfiles/dot_file" ".dot_file" 

, 다시 (확실히 당신이 ~/.dot_file이없는 확인하고 Google Drive/Developer/git repositories/dotfiles/dot_file 당신이 원하는 내용으로 일반 파일인지 확인 , ls -l).

+0

나는 지금 당신 손을 진지하게 흔들고 싶다. 이 어리석은 것을 알아 내려고 너무 오랫동안 보냈다. –

관련 문제