dir命令后可以接的完整参数(T...

dir命令后可以接的完整参数(T...

2023年7月3日发(作者:)

dir 命令后可以接的完整参数(The complete parameters that can

be connected after the dir command)

The complete parameters that can be connected after the dir

command

# dir --help

Usage: dir [option]... [file]...

List information about the FILEs (the current directory by

default)

Sort entries alphabetically if none of -cftuvSUX nor --sort.

The parameters that must be used in the long selection are also

necessary when using short options.

-a, --all does not hide any items that begin with the character

-A, --almost-all lists any

When --author and -l are used together, the authors of each file

are listed

-b, --escape represent non printable characters in octal

overflow sequences

The --block-size= size block is the unit that specifies the

size > bytes

-B, --ignore-backups does not list any items that end with a

character

-c cooperate with -lt: sort and display CTime (file) according

to CTime

Time of last change of state

Match -l: display CTime, but sort by name

Otherwise: sort by CTime

-C list entries by columns

--color[=WHEN] control whether color is used to distinguish

file

Types. WHEN may be `never', `always', or `auto'

-d, --directory list directory entries instead of contents,

And do not dereference symbolic links

-D, --dired generate output designed for Emacs'dired mode

-f do not sort, enable -aU, disable -lst

-F, --classify append indicator (one of */=>@|) to entries

--file-type likewise, except do not append `*'

--format=WORD across -x, commas -m, horizontal -x, long -l,

Single-column -1, verbose -l, vertical -C

--full-time like -l --time-style=full-iso

-g like -l, but do not list owner

-G, --no-group like -l, but do not list group

-h, --human-readable with -l, print sizes in human readable

format

(e.g., 1K 234M 2G)

--si likewise, but use powers of 1000 not 1024

-H, --dereference-command-line

Follow symbolic links listed on the command line

--dereference-command-line-symlink-to-dir

Follow each command line symbolic link

That points to a directory

--hide=PATTERN do not list implied entries matching shell

PATTERN

(overridden by -a or -A) 指示符样式=带有样式输入项名称的单词追加指示符:

无(默认),斜线(- p),

文件类型(-文件类型),分类(- f)

我,-inode - L,打印每个文件的索引编号

- i,-忽略=模式,不要列出与shell模式匹配的隐含条目

K像块大小= 1k

我使用较长格式列出信息

我,——引用当显示符号链接的文件信息时,显示符号链接所指示

的对象而并非符号链接本身的信息

我所有项目以逗号分隔,并填满整行行宽

N,-数字UID GID像L,但数字用户和组ID列表

-,文本打印原始条目名(不处理例如控件)

人物特别)

-比如L,但是不要列出组信息

- p,指示符样式=斜杠

附加/指示器到目录

q、隐藏控制字符以?字符代替无法打印的字符

-显示的控制字符直接显示无法打印的字符(这是默认方式,除非调用

的程序名称是“ls”而且是在终端机画面输出结果)

- Q,——引用名称将项目名称括上双引号

--quoting-style =方式使用指定的引用<<方式>显示项目的名称:

文字、区域设置、shell、shell始终、C、逸出

- R -反逆序排序

- R -递归递归列出所有子目录

的,大小和L同时使用时以块为单位列出每个文件的大小

的根据文件大小排序

——排序=词以下是可选用的字和它们代表的相应选项:

扩展名x状态

非-时- T

大小S一U

时间t访问

版本v使用

时间=词和L同时使用时显示字所代表的时间而非修改时

间:时间、访问、使用、CTime或状况;加上

——排序=时间选项时会以指定时间作为排序关键字

时间风格=风格和L同时使用时根据风格代表的格式显示时间:

全异、ISO、现场、POSIX ISO、+格式。

FORMAT is the time format used for "date"; if FORMAT

FORMAT1< is a new line >FORMAT2, FORMAT1 is suitable for older

The file and FORMAT2 is applicable to newer files; if STYLE

Beginning with "posix-", STYLE is only outside the POSIX

language family

Take effect。

-t sort according to modification time

-T, --tabsize= width specifies tab < width > instead of 8

characters

-u with -lt: sort by, and show, access time With -l: show access time and sort by name

Otherwise: sort by access time

-U do not sort; list entries in directory order.

In combination with one_per_line format `-1',

It will show files immediately and it has no

Memory limitations.

-v sort by version

-w, --width=COLS specifies the width of the screen without

using the current values

-x lists items by line rather than by column

-X sort by extension

-1 lists only one file per row

SELinux options:

--lcontext Display security context. Enable -l. Lines

Will probably be too wide for most displays.

-Z, --context Display security context so it fits on most Displays. Displays only mode, user, group,

Security context and file name.

--scontext Display only security context and file name.

--help displays the help information and exits

--version output version information and exit

[size] can be the following units (integers added before the

unit):

KB 1000, K 1024, MB 1000000, M 1048576, and G, T, P, E, Z, Y.

By default, color is not used to distinguish types of files.

That is

Equivalent to using --color=none. Using the --color option

without the

Optional WHEN argument is equivalent to using --color=always.

With

--color=auto, color codes are output only if standard output

is connected

To a terminal (TTY). The environment variable LS_COLORS can

influence the

Colors, and can be set easily by the dircolors command.

Exit status is 0 if OK, 1 if minor problems, 2 if serious

trouble.

发布者:admin,转转请注明出处:http://www.yc00.com/web/1688380581a129360.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信