<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>eichisanden</author_name>
  <author_url>https://blog.hatena.ne.jp/eichisanden/</author_url>
  <blog_title>技術メモのかけら</blog_title>
  <blog_url>https://eichisanden.hateblo.jp/</blog_url>
  <categories>
    <anon>Linux</anon>
    <anon>CentOS</anon>
  </categories>
  <description>lsof &lt;ファイル名&gt;でファイルを使用しているプロセルを特定できる。 $ sudo lsof /var/log/messages COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME rsyslogd 1055 root 3w REG 253,0 7164 100839039 /var/log/messages 実行結果の4番目のフィールドが [0-9]w なのは書き込みモード、[0-9]uが読み書きモードで開かれているファイル。 応用として、書き込みモードで開かれているファイルの一覧取得方法。 $ sudo lsof|awk '$4~/^[0…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feichisanden.hateblo.jp%2Fentry%2F2018%2F01%2F08%2F033213&quot; title=&quot;ファイルを掴んでいるプロセスを調べる - 技術メモのかけら&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-01-08 03:32:13</published>
  <title>ファイルを掴んでいるプロセスを調べる</title>
  <type>rich</type>
  <url>https://eichisanden.hateblo.jp/entry/2018/01/08/033213</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
