<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>wakuich</author_name>
  <author_url>https://blog.hatena.ne.jp/wakuich/</author_url>
  <blog_title>Linux奮闘記α</blog_title>
  <blog_url>https://linux-funtouki.hatenablog.com/</blog_url>
  <categories>
    <anon>OS</anon>
    <anon>小技</anon>
  </categories>
  <description>今回はLinuxのコマンド「tee」について解説します。 teeの基本的な動作 teeコマンドは「標準入力を画面（コンソール）に表示しながら」「ファイルも保存する」コマンドです。 $ ls | tee sample.txt これで現在のディレクトリの内容をsample.txtというテキストファイルに保存しつつ、その内容（lsの出力）を画面に表示できます。 echoで以下のようにやることも考えられます。 echo &quot;$(ls)&quot; &gt; sample.txt あるいは ls &gt; sample.txt echoでやる場合は中身を「&quot; &quot;」で囲む必要があります。 これはダブルクォーテーションがない場合、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flinux-funtouki.hatenablog.com%2Fentry%2Fcommand_tee&quot; title=&quot;Linuxのコマンド講座：tee - Linux奮闘記α&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>https://cdn.user.blog.st-hatena.com/default_entry_og_image/158207392/1765857266235495</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-02-22 11:55:58</published>
  <title>Linuxのコマンド講座：tee</title>
  <type>rich</type>
  <url>https://linux-funtouki.hatenablog.com/entry/command_tee</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
