<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akira2kun</author_name>
  <author_url>https://blog.hatena.ne.jp/akira2kun/</author_url>
  <blog_title>技術とか戦略とか</blog_title>
  <blog_url>https://akira2kun.hatenablog.com/</blog_url>
  <categories>
    <anon>UNIX/Linux</anon>
  </categories>
  <description>作業ミスを防ぐためのちょっとしたテクニックです。現場で先輩社員に教えてもらえることだとは思うのですが、暗黙知的な所があり運が悪いと教えてもらえないかもしれないので。 あるディレクトリとその配下のファイル・ディレクトリを削除する時は、rm -rfコマンドを使用します。しかし、このコマンドで指定ディレクトリを誤ってしまうと取り返しがつかなくなることがあります。特にrootユーザのような権限の強いユーザで作業する時は危険です。 fオプションを指定から外し、rm -rとすれば対話式で削除できるようになるので誤削除のリスクを軽減できますが、１つ１つのファイル・ディレクトリについて消すかどうか聞かれるので…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakira2kun.hatenablog.com%2Fentry%2F2019%2F02%2F19%2F001636&quot; title=&quot;rm -rfの前にls -lを発行してミスを防ぐ - 技術とか戦略とか&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>2019-02-19 00:16:36</published>
  <title>rm -rfの前にls -lを発行してミスを防ぐ</title>
  <type>rich</type>
  <url>https://akira2kun.hatenablog.com/entry/2019/02/19/001636</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
