2013-07-15 2 views
2

, 난 항상이 얻을 :리눅스 명령 파일

symbolic link to <another_file> 

가 그럼 난 가끔이 5 또는 6 라운드 걸릴 수 있습니다 더 파고 file <another_file>.을 실행해야 . 파일을 재귀 적으로 원본 파일로 이동시켜 파일 형식을 알려주는 방법이 있는지 궁금합니다.

+2

따라하기 "어떻게 리눅스에서 심볼릭 링크의 대상 파일의 종류를 확인하기를?". 또 다른 메모에서,이 질문은 아마도 가장 좋은 질문 일 것입니다 : http://unix.stackexchange.com/ – JonnyRo

답변

1

-L에서 file으로 지정하면 심볼릭 링크를 따라야합니다. man page에서 :

-L, --dereference 
     option causes symlinks to be followed, as the like-named option 
     in ls(1) (on systems that support symbolic links). This is the 
     default if the environment variable POSIXLY_CORRECT is defined. 
0

사용 "파일 -L"는 질문을 이름 변경에 대해 어떻게 심볼릭 링크