<?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 Blog</title><link>https://meerstory-hugo.pages.dev/zh/tags/linux-%E9%9A%90%E8%97%8F%E6%96%87%E4%BB%B6/</link><description>Recent content in Linux 隐藏文件 on Meerstory Blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Thu, 27 Aug 2026 17:19:33 +0900</lastBuildDate><atom:link href="https://meerstory-hugo.pages.dev/zh/tags/linux-%E9%9A%90%E8%97%8F%E6%96%87%E4%BB%B6/index.xml" rel="self" type="application/rss+xml"/><item><title>Linux 必备命令：使用 ls -al 一目了然查看隐藏文件与权限的方法</title><link>https://meerstory-hugo.pages.dev/zh/ubuntu/20260827_171915_1_ls_al_ls/</link><pubDate>Thu, 27 Aug 2026 17:19:33 +0900</pubDate><guid>https://meerstory-hugo.pages.dev/zh/ubuntu/20260827_171915_1_ls_al_ls/</guid><description>&lt;h2 id="概述">概述&lt;/h2>
&lt;p>在 Linux 环境中，查看隐藏的配置文件或文件权限是系统管理和开发的第一步。本文将介绍如何使用 ls -al 命令快速准确地查看包括隐藏文件在内的内容，以及实务中必备的常用选项。通过终端实操，全面掌握文件权限和排序技巧吧。&lt;/p>
&lt;h2 id="1-linux-文件系统与隐藏文件的概念及--a-选项">1. Linux 文件系统与隐藏文件(.)的概念及 -a 选项&lt;/h2>
&lt;p>&lt;code>mkdir -p ~/ls_practice &amp;amp;&amp;amp; cd ~/ls_practice&lt;/code> 命令用于创建实操所需的目录并移动到该位置。&lt;br>
使用 &lt;code>mkdir&lt;/code> 创建目录后，通过 &lt;code>&amp;amp;&amp;amp;&lt;/code> 运算符连续执行 &lt;code>cd&lt;/code> 命令进行移动。&lt;br>
执行结果为在指定路径中正常创建目录，并变更当前工作目录。&lt;br>
⚙️ [主要选项]&lt;/p>
&lt;p>&lt;code>-p&lt;/code> : 必要时连同父目录一起创建，即使目录已存在也不会报错。&lt;br>
&lt;code>-m&lt;/code> : 创建目录时直接设置访问权限。&lt;br>
&lt;code>-v&lt;/code> : 在屏幕上输出目录创建过程的详细信息。&lt;/p>
&lt;p>&lt;img src="https://meerstory-hugo.pages.dev/ubuntu/20260827_171915_1_ls_al_ls/captures/s01_c01_mkdir_-p___ls_practice____cd___ls_practice.png" alt="mkdir -p ~/ls_practice &amp;amp;&amp;amp; cd ~/ls_practice">&lt;/p>
&lt;p>&lt;code>touch sample_file.txt&lt;/code> 命令用于新建一个实操用的普通文本文件。&lt;br>
&lt;code>touch&lt;/code> 本来是用于修改文件时间戳的命令，但如果文件不存在，则会新建一个 0 字节的空文件。&lt;br>
执行结果为在当前目录下生成一个没有任何内容的 &lt;code>sample_file.txt&lt;/code> 文件。&lt;br>
⚙️ [主要选项]&lt;/p>
&lt;p>&lt;code>-a&lt;/code> : 仅更改文件的访问(access)时间。&lt;br>
&lt;code>-m&lt;/code> : 仅更改文件的修改(modification)时间。&lt;br>
&lt;code>-c&lt;/code> : 即使指定的文件不存在也不创建新文件。&lt;br>
&lt;code>-r&lt;/code> : 更改为与指定的其他参考文件相同的时间戳设置。&lt;/p>
&lt;p>&lt;img src="https://meerstory-hugo.pages.dev/ubuntu/20260827_171915_1_ls_al_ls/captures/s01_c02_touch_sample_file_txt.png" alt="touch sample_file.txt">&lt;/p></description></item></channel></rss>