例えば、あなたが午後いっぱいを費やして製作したオーディオファイルの再生を楽しみながら、「やあ、こいつはすごい音だ!こっちに移動しておくとしよう」と思ったとする。そのとき、潜在意識が違和感を唱えるのだ。「ええと、mvだっけ、rmじゃないの ...
lsofコマンドの出力制御はオプションの指定でも可能だが、せっかくなので、本連載でこれまでに紹介してきたさまざまな便利コマンドを使って出力を加工する例を紹介したい。 まず、次のようなデフォルト出力があったとする。 % lsof COMMAND PID USER FD TYPE ...
lsofはLinuxディストリビューションによってデフォルトでインストールされていたり、されていなかったりする。ただし ...
ポート番号「8000」を指定して作業を進めていたのに、突然「ポートが既に使用中です」とエラーが出てしまった経験、ありませんか?そんなとき役立つのが、今回ご紹介する lsof -i :8000 というコマンドです。実はこれ、とても簡単で強力な道具なんです。
いままではあまり使ったことのないコマンドだったのですが、最近知ったのでメモをしておきます。 lsofコマンドはファイルを特定のポート番号を待ち受けているかどうか、指定ファイルは誰が読み込んでいるのかを調べときに使ったりします。ですが本来 ...
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 ...
Click for a PDF with this and four other essential Linux articles. And, if you’ve ever heard anyone say that for Unix, everything is a file, you might not be too surprised to learn that lsof works ...
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 ...
The good thing about Linux is that you can easily view and manage everything, from the boot process to the installation of software packages. Here we discuss how you can use the lsof command in Linux ...