我曾经Wireshark 3.2.2 Intel 64
在 macOS 10.15.3 上安装过 Wireshark。并且我安装了ChmodBPF
和Add Wireshark to the system path
。
tshark
Oh My Zsh
与以下机构合作iTerm2
:
$ tshark -h
TShark (Wireshark) 3.2.2 (v3.2.2-0-ga3efece3d640)
Dump and analyze network traffic.
See https://www.wireshark.org for more information.
但man tshark
不起作用:
$ man tshark
No manual entry for tshak
Wireshark
已被投入/etc/manpaths.d
:
$ cat /etc/manpaths.d/Wireshark
/Applications/Wireshark.app/Contents/Resources/share/man
但如果我添加/Applications/Wireshark.app/Contents/Resources/share/man
到MANPATH
,man tshark
则有效:
$ echo $MANPATH
/usr/local/opt/gnu-sed/libexec/man:/usr/local/opt/coreutils/libexec/gnuman:
$ export MANPATH="$MANPATH:/Applications/Wireshark.app/Contents/Resources/share/man"
$ echo $MANPATH
/usr/local/opt/gnu-sed/libexec/man:/usr/local/opt/coreutils/libexec/gnuman::/Applications/Wireshark.app/Contents/Resources/share/man
$ man tshark
SHARK(1) The Wireshark Network Analyzer TSHARK(1)
NAME
tshark - Dump and analyze network traffic
我还补充/Library/TeX/Distributions/.DefaultTeX/Contents/Man
道/etc/manpaths.d/TeX
:
$ cat /etc/manpaths.d/TeX
/Library/TeX/Distributions/.DefaultTeX/Contents/Man
man pdflatex
作品:
$ which pdflatex
/Library/TeX/texbin/pdflatex
$ man pdflatex
PDFTEX(1) PDFTEX(1)
NAME
pdftex - PDF output from TeX
SYNOPSIS
pdftex [options] [&format] [file|\commands]
DESCRIPTION