• 要找福利?记不住网址?搜不到?如何与我们保持联系?试试 CTRL+D 把零点博客添加进您的浏览器收藏夹,一键直达永不失联!

Linux dirs命令

linux系统 涛涛 134次浏览 0个评论

Linux dirs命令用于显示目录记录。

显示目录堆叠中的记录。

语法

<span class="pln">dirs </span><span class="pun">[+/-</span><span class="pln">n </span><span class="pun">-</span><span class="pln">l</span><span class="pun">]</span>

参数

  • +n 显示从左边算起第n笔的目录。
  • -n 显示从右边算起第n笔的目录。
  • -l 显示目录完整的记录。

实例

列出”/home/cc/Ruijie”里所有内容的详细信息。可用如下命令。

<span class="pln">dir </span><span class="pun">-</span><span class="pln">l </span><span class="pun">/</span><span class="pln">home</span><span class="pun">/</span><span class="pln">cc</span><span class="pun">/</span><span class="typ">Ruijie</span>

下面是显示的内容:

<span class="pln">$ dir </span><span class="pun">-</span><span class="pln">l </span><span class="pun">/</span><span class="pln">home</span><span class="pun">/</span><span class="pln">cc</span><span class="pun">/</span><span class="typ">Ruijie</span>

<span class="pun">总计</span><span class="lit">2168</span>

<span class="pun">-</span><span class="pln">rwxr</span><span class="pun">-</span><span class="pln">xr</span><span class="pun">-</span><span class="pln">x </span><span class="lit">1</span><span class="pln"> cc cc  </span><span class="lit">112876</span> <span class="lit">2008</span><span class="pun">-</span><span class="lit">06</span><span class="pun">-</span><span class="lit">26</span><span class="pln"> libpcap</span><span class="pun">.</span><span class="pln">so</span><span class="pun">.</span><span class="lit">0.6</span><span class="pun">.</span><span class="lit">2</span> <span class="pun">-</span><span class="pln">rwxr</span><span class="pun">-</span><span class="pln">xr</span><span class="pun">-</span><span class="pln">x </span><span class="lit">1</span><span class="pln"> cc cc  </span><span class="lit">737192</span> <span class="lit">2008</span><span class="pun">-</span><span class="lit">06</span><span class="pun">-</span><span class="lit">26</span><span class="pln"> libstdc</span><span class="pun">++.</span><span class="pln">so</span><span class="pun">.</span><span class="lit">5</span> <span class="pun">-</span><span class="pln">rwxr</span><span class="pun">-</span><span class="pln">xr</span><span class="pun">-</span><span class="pln">x </span><span class="lit">1</span><span class="pln"> cc cc1938 </span><span class="lit">2004</span><span class="pun">-</span><span class="lit">04</span><span class="pun">-</span><span class="lit">23</span><span class="pln"> readme</span><span class="pun">.</span><span class="pln">txt

</span><span class="pun">-</span><span class="pln">rwxr</span><span class="pun">-</span><span class="pln">xr</span><span class="pun">-</span><span class="pln">x </span><span class="lit">1</span><span class="pln"> cc cc </span><span class="lit">1350772</span> <span class="lit">2005</span><span class="pun">-</span><span class="lit">08</span><span class="pun">-</span><span class="lit">31</span><span class="pln"> xrgsu</span>

欢迎转载本文:Linux dirs命令
喜欢 (0)
[ld]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址