lsofコマンドの出力制御はオプションの指定でも可能だが、せっかくなので、本連載でこれまでに紹介してきたさまざまな便利コマンドを使って出力を加工する例を紹介したい。 まず、次のようなデフォルト出力があったとする。 % lsof COMMAND PID USER FD TYPE ...
ポート番号「8000」を指定して作業を進めていたのに、突然「ポートが既に使用中です」とエラーが出てしまった経験、ありませんか?そんなとき役立つのが、今回ご紹介する lsof -i :8000 というコマンドです。実はこれ、とても簡単で強力な道具なんです。
Often you're interested in knowing who is using a specific file. You know the path to it and you want lsof to tell you the processes that have open references to it. Simple -- execute lsof and give it ...
Use the LiSt Open Files (LSOF) utility to track data flow related to ports, users, and applications. LiSt Open Files (LSOF) is a Linux utility that allows you to view current network connections and ...
lsofはLinuxディストリビューションによってデフォルトでインストールされていたり、されていなかったりする。ただし ...
Lsof has a rich set of options for selecting the files to be displayed. These include: -a tells lsof to AND the set of selection options that are specified. Normally lsof ORs them. For example, if you ...