<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Linux 文件列表 on MeerStory</title><link>https://meerstory.com/zh/tags/linux-%E6%96%87%E4%BB%B6%E5%88%97%E8%A1%A8/</link><description>Recent content in Linux 文件列表 on MeerStory</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sat, 29 Aug 2026 07:11:01 +0900</lastBuildDate><atom:link href="https://meerstory.com/zh/tags/linux-%E6%96%87%E4%BB%B6%E5%88%97%E8%A1%A8/index.xml" rel="self" type="application/rss+xml"/><item><title>Ubuntu ls 命令选项完整指南 - 优雅整理文件列表的 5 个必备实用技巧</title><link>https://meerstory.com/zh/ubuntu/20260829_071032_2_ls_ls/</link><pubDate>Sat, 29 Aug 2026 07:11:01 +0900</pubDate><guid>https://meerstory.com/zh/ubuntu/20260829_071032_2_ls_ls/</guid><description>&lt;h2 id="概述">概述&lt;/h2>
&lt;p>本文介绍 Linux 及 Ubuntu 环境中最基础的 ls 命令的核心选项与使用方法。不仅涵盖单纯列出文件名，还包含文件详细信息、易读的容量单位、查看隐藏文件以及排序技巧等可在实际工作中即学即用的文件整理技巧。&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></description></item></channel></rss>