ITPub博客

首页 > 数字化转型 > ERP > ls command

ls command

原创 ERP 作者:wenxin2005 时间:2011-12-06 17:46:01 0 删除 编辑

ls [-a] [-A] [-b] [-c] [-C] [-d] [-f] [-F] [-g] [-i] [-l] [-L] [-m] [-o] [-p] [-q] [-r] [-R] [-s] [-t] [-u] [-x] [pathnames]

-aShows you all files, even files that are hidden (these files begin with a dot.)
-AList all files including the hidden files. However, does not display the working directory (.) or the parent directory (..).
-bForce printing of non-printable characters to be in octal ddd notation.
-cUse time of last modification of the i-node (file created, mode changed, and so forth) for sorting (-t) or printing (-l or -n).
-CMulti-column output with entries sorted down the columns. Generally this is the default option.
-dIf an argument is a directory it only lists its name not its contents.
-fForce each argument to be interpreted as a directory and list the name found in each slot. This option turns off -l, -t, -s, and -r, and turns on -a; the order is the order in which entries appear in the directory.
-FMark directories with a trailing slash (/), doors with a trailing greater-than sign (>), executable files with a trailing asterisk (*), FIFOs with a trailing vertical bar (|), symbolic links with a trailing at-sign (@), and AF_Unix address family sockets with a trailing equals sign (=).
-gSame as -l except the owner is not printed.
-iFor each file, print the i-node number in the first column of the report.
-lShows you huge amounts of information (permissions, owners, size, and when last modified.)
-LIf an argument is a symbolic link, list the file or directory the link references rather than the link itself.
-mStream output format; files are listed across the page, separated by commas.
-nThe same as -l, except that the owner's UID and group's GID numbers are printed, rather than the associated character strings.
-oThe same as -l, except that the group is not printed.
-pDisplays a slash ( / ) in front of all directories.
-qForce printing of non-printable characters in file names as the character question mark (?).
-rReverses the order of how the files are displayed.
-RIncludes the contents of subdirectories.
-sGive size in blocks, including indirect blocks, for each entry.
-tShows you the files in modification time.
-uUse time of last access instead of last modification for sorting (with the -t option) or printing (with the -l option).
-xDisplays files in columns.
-1Print one entry per line of output.
pathnamesFile or directory to list.
[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/573930/viewspace-1056721/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: xcopy dos command
请登录后发表评论 登录
全部评论
  • 博文量
    15
  • 访问量
    15830