매뉴얼 페이지 소스의 위치를 ​​찾는 방법은 무엇입니까? [복사]

매뉴얼 페이지 소스의 위치를 ​​찾는 방법은 무엇입니까? [복사]

파이프하고 싶다날것의*roff 형식 매뉴얼 페이지를 pandocPDF로 변환하고 문서 뷰어에 표시합니다.

$ my_script vim
...

새 창에 형식이 지정된 매뉴얼 페이지가 표시됩니다.

내 글에는 다른 문제가 없습니다 my_script. 대부분은 다음과 같습니다.

zcat /???/vim.?.gz | pandoc -f man -t pdf | okular -

하지만 vim 매뉴얼 페이지의 *roff 소스 코드가 $MANPATH.

일부 명령에는 여러 매뉴얼 페이지가 있다는 것을 알고 있으므로 검색 방법을 알고 싶습니다.첫 번째 위치맨페이지 소스 코드.

답변1

을 읽어보면 다음과 같은 옵션 이 man man표시됩니다 .man-w

-w, --where, --path, --location
       Don't actually display the manual page, but do print the
       location of the source nroff file that would be formatted.
       If the -a option is also used, then print the locations of
       all source files that match the search criteria.

관련 정보