Skip to main content

情報取得. port番号→プロセスID→実行ファイルの場所

Linux

bash
# port番号からプロセスID
lsof -i:1234

# プロセスIDから 実行ファイル
ls -l /proc/<プロセスID>/exe