![매뉴얼 페이지 소스의 위치를 찾는 방법은 무엇입니까? [복사]](https://linux55.com/image/204190/%EB%A7%A4%EB%89%B4%EC%96%BC%20%ED%8E%98%EC%9D%B4%EC%A7%80%20%EC%86%8C%EC%8A%A4%EC%9D%98%20%EC%9C%84%EC%B9%98%EB%A5%BC%20%E2%80%8B%E2%80%8B%EC%B0%BE%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F%20%5B%EB%B3%B5%EC%82%AC%5D.png)
파이프하고 싶다날것의*roff 형식 매뉴얼 페이지를 pandoc
PDF로 변환하고 문서 뷰어에 표시합니다.
$ 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.