GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — linux-command/command/dirs.md at master · javamickey/linux-command

Expand file tree

/

dirs.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
39 lines (26 loc) · 873 Bytes
/

dirs.md

Copy path

File metadata and controls

39 lines (26 loc) · 873 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

dirs

显示目录记录

补充说明

dirs命令 显示当前目录栈中的所有记录(不带参数的dirs命令显示当前目录栈中的记录)。dirs始终显示当然目录, 再是堆栈中的内容;即使目录堆栈为空, dirs命令仍然只显示当然目录。

语法

dirs(选项)(参数)

选项

-c:删除目录栈中的所有记录
-l:以完整格式显示
-p:一个目录一行的方式显示
-v:每行一个目录来显示目录栈的内容,每个目录前加上的编号
+N:显示从左到右的第n个目录,数字从0开始
-N:显示从右到左的第n个日录,数字从0开始

参数

目录:显示目录堆叠中的记录。

实例

[root@localhost etc]# dirs
/etc
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.