<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>非表示ファイル確認 on MeerStory</title><link>https://meerstory.com/ja/tags/%E9%9D%9E%E8%A1%A8%E7%A4%BA%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E7%A2%BA%E8%AA%8D/</link><description>Recent content in 非表示ファイル確認 on MeerStory</description><generator>Hugo</generator><language>ja-jp</language><lastBuildDate>Sat, 29 Aug 2026 07:11:01 +0900</lastBuildDate><atom:link href="https://meerstory.com/ja/tags/%E9%9D%9E%E8%A1%A8%E7%A4%BA%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E7%A2%BA%E8%AA%8D/index.xml" rel="self" type="application/rss+xml"/><item><title>Ubuntu ls コマンドオプション完全ガイド - ファイル一覧を見やすく整理する必須テクニック 5選</title><link>https://meerstory.com/ja/ubuntu/20260829_071032_2_ls_ls/</link><pubDate>Sat, 29 Aug 2026 07:11:01 +0900</pubDate><guid>https://meerstory.com/ja/ubuntu/20260829_071032_2_ls_ls/</guid><description>&lt;h2 id="概要">概要&lt;/h2>
&lt;p>LinuxおよびUbuntu環境において最も基本となる &lt;code>ls&lt;/code> コマンドの核心オプションと活用法をご紹介します。単にファイル名を列挙するにとどまらず、ファイルの詳細情報、容量単位での表示、非表示ファイル（ドットファイル）の確認、並び替えテクニックまで、実務で即座に活用できるファイル整理のノウハウを解説します。&lt;/p>
&lt;h2 id="1-基本的なファイル一覧の表示と非表示ファイルおよび詳細権限の確認-ls--l-ls--al">1. 基本的なファイル一覧の表示と非表示ファイルおよび詳細権限の確認 (ls -l, ls -al)&lt;/h2>
&lt;p>&lt;code>ls&lt;/code> コマンドの実習を行う専用スペースを作成して移動し、通常ファイルと非表示ファイルを準備するために &lt;code>mkdir -p ~/ls_demo &amp;amp;&amp;amp; cd ~/ls_demo &amp;amp;&amp;amp; touch file1.txt file2.log .hidden_config&lt;/code> コマンドを実行します。&lt;/p>
&lt;p>&lt;img src="https://meerstory.com/ubuntu/20260829_071032_2_ls_ls/captures/s01_c01_mkdir_-p___ls_demo____cd___ls_demo____touch_file1.png" alt="mkdir -p ~/ls_demo &amp;amp;&amp;amp; cd ~/ls_demo &amp;amp;&amp;amp; touch file1.txt file2.log .hidden_config">&lt;/p>
&lt;p>&lt;code>ls -l&lt;/code> コマンドは、ディレクトリ内のファイル権限、所有者、グループ、ファイルサイズ、更新日時などの詳細情報をリスト形式で出力します。&lt;br>
⚙️ [主要オプション]&lt;/p>
&lt;p>&lt;code>-a&lt;/code> : 名前がドットで始まる非表示ファイルやディレクトリを含め、すべての項目を出力します。&lt;br>
&lt;code>-l&lt;/code> : ファイルのパーミッション、所有者、ファイルサイズなどの詳細情報を表示します。&lt;br>
&lt;code>-h&lt;/code> : ファイル容量を人が読みやすい単位（KB、MB、GB）で表示します。&lt;br>
&lt;code>-t&lt;/code> : 最近更新されたファイルから時間順に並べ替えて出力します。&lt;br>
&lt;code>-S&lt;/code> : ファイルサイズが大きい順に並べ替えて一覧を表示します。&lt;/p>
&lt;p>&lt;img src="https://meerstory.com/ubuntu/20260829_071032_2_ls_ls/captures/s01_c02_ls_-l.png" alt="ls -l">&lt;/p>
&lt;p>&lt;code>ls -al&lt;/code> コマンドは、&lt;code>-a&lt;/code> オプションと &lt;code>-l&lt;/code> オプションを組み合わせて、非表示ファイルを含むすべての項目の詳細情報を出力します。&lt;br>
これにより、デフォルトの一覧表示では表示されなかった &lt;code>.hidden_config&lt;/code> ファイルの権限や所有者情報を一目で確認できます。&lt;/p>
&lt;p>&lt;img src="https://meerstory.com/ubuntu/20260829_071032_2_ls_ls/captures/s01_c03_ls_-al.png" alt="ls -al">&lt;/p>
&lt;h2 id="2-人が読みやすい容量単位の表記およびファイルサイズ順の並び替え-ls--lh-ls--lhs">2. 人が読みやすい容量単位の表記およびファイルサイズ順の並び替え (ls -lh, ls -lhS)&lt;/h2>
&lt;p>ファイルサイズの比較および並び替えの実習のため、1MBと5MBの容量のサンプルファイルを生成する &lt;code>truncate -s 1M ~/ls_demo/sample_1m.bin &amp;amp;&amp;amp; truncate -s 5M ~/ls_demo/sample_5m.bin&lt;/code> コマンドを実行します。&lt;/p></description></item></channel></rss>