lsofコマンドでまず覚えておきたいのは、次のように引数にファイルパスを指定する方法だ。 % lsof /dev/null COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME adjkerntz 148 root 0u VCHR 0,26 0t0 26 /dev/null adjkerntz 148 root 1u VCHR 0,26 0t0 26 ...
lsofはLinuxディストリビューションによってデフォルトでインストールされていたり、されていなかったりする。ただし ...
(例) lsof -i:80 複数のポート番号を指定 (例) lsof -i:80,8080 プロトコルを指定 lsof -i <プロトコル> (例) lsof -i tcp 複数の検索条件を指定(OR条件) (例) lsof -u root -c java 複数の検索条件を指定(AND条件) (例) lsof -u root -c java -a 末尾に -a を指定 一定間隔で実行 ...
いままではあまり使ったことのないコマンドだったのですが、最近知ったのでメモをしておきます。 lsofコマンドはファイルを特定のポート番号を待ち受けているかどうか、指定ファイルは誰が読み込んでいるのかを調べときに使ったりします。ですが本来 ...
USBメモリを抜こうとして umount を実行したとき、「target is busy」と怒られて途方に暮れた経験はありませんか? あるいは、Webサーバーを立ち上げようとしたら「Address already in use」というエラーが出て、誰がポートを使っているのか分からず焦ったことは?
Click for a PDF containing this and four other essential Linux articles. Both of the aliases below will list whatever files are open on your behalf when you are logged in. I suspect that few sysadmins ...
Happy hangover Monday everyone! To soothe those post-big-game blues, here's this week's man page -- lsof, the LiSt Open Files tool. If you're trying to figure out why a removable drive won't unmount ...
One thing I really like about Windows server compared to Mac OS X Server is the ability to quickly see what files are currently open, and who has them open.<BR><BR>I assume the only thing I can do on ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する