后来我才明白要断掉得到一个人的念头,除了不断告诉自己缘分不够外,拉开时间和空间是最好的办法,而毕业正好提供了这种可能。过去强烈的情感淡了,就愿打开内心去认识和接受新人,心上那些旧伤中虽还在,但被慢慢淡忘。当听她拥有幸福的情感,我有一点心酸可却没有心痛了。

cmd

上一篇 / 下一篇  2008-09-22 20:17:06 / 个人分类:随想

GNU bash, version 3.2.39(1)-release-(i486-pc-linux-gnu)
Usage:    bash [GNU long option] [option] ...
    bash [GNU long option] [option] script-file ...
GNU 长选项格式:
    --debug
    --debugger
    --dump-po-strings
    --dump-strings
    --help
    --init-file
    --login
    --noediting
    --noprofile
    --norc
    --posix
    --protected
    --rcfile
    --restricted
    --verbose
    --version
    --wordexp
Shell 选项:
    -irsD or -c command or -O shopt_option        (invocation only)
    -abefhkmnptuvxBCHP 或 -o 选项
键入 `bash -c "help set"' 获取shell有关选项的更多信息.
请输入“bash -c help”命令获取 shell 内部命令的帮助信息。
请使用“bashbug”命令报告程序缺陷。
bzip2, a block-sorting file compressor.  Version 1.0.4, 20-Dec-2006.

   usage: bunzip2 [flags and input files in any order]

   -h --help           print this message
   -d --decompress     force decompression
   -z --compress       force compression
   -k --keep           keep (don't delete) input files
   -f --force          overwrite existing output files
   -t --test           test compressed file integrity
   -c --stdout         output to standard out
   -q --quiet          suppress noncritical error messages
   -v --verbose        be verbose (a 2nd -v gives more)
   -L --license        display software version & license
   -V --version        display software version & license
   -s --small          use less memory (at most 2500k)
   -1 .. -9            set block size to 100k .. 900k
   --fast              alias for -1
   --best              alias for -9

   If invoked as `bzip2', default action is to compress.
              as `bunzip2',  default action is to decompress.
              as `bzcat', default action is to decompress to stdout.

   If no file names are given, bzip2 compresses or decompresses
   from standard input to standard output.  You can combine
   short flags, so `-v -4' means the same as -v4 or -4v, &c.


用法:cat [选项] 文件...
将[文件]或标准输入组合输出到标准输出。

  -A, --show-all           等同于 -vET
  -b, --number-nonblank    对非空输出行编号
  -e                       等同于 -vE
  -E, --show-ends          在每行结束处显示 $
  -n, --number             对输出的所有行编号
  -s, --squeeze-blank      不输出多行空行
  -t                       等价于 -vT
  -T, --show-tabs          将制表符显示为 ^I
  -u                       (忽略)
  -v, --show-nonprinting   使用 ^ 和 M- 控制符,除了 LFD 和 TAB 之外
      --help     显示此帮助信息并离开
      --version  显示版本信息并离开

如果不指定<文件>,或者<文件>为 -,程序将从标准输入读取数据。

示例:
  cat f - g  先输出 f 的内容,然后输出标准输入的内容,最后输出 g 的内容。
  cat        将标准输入的内容复制到标准输出。
用法:chgrp [选项]... 组 文件...
  或:chgrp [选项]... --reference=参考文件 文件...
Change the group of each FILE to GROUP.
With --reference, change the group of each FILE to that of RFILE.

  -c, --changes          like verbose but report only when a change is made
      --dereference      affect the referent of each symbolic link (this is
                         the default), rather than the symbolic link itself
  -h, --no-dereference   会影响符号链接本身,而非符号链接所指示的目的地
                         (当系统支持更改符号链接的所有者时,此选项才有用)
      --no-preserve-root  do not treat `/' specially (the default)
      --preserve-root    fail to operate recursively on `/'
  -f, --silent, --quiet  去除大部份的错误信息
      --reference=参考文件   使用<参考文件>的所属组,而非指定的<组>
  -R, --recursive        递归处理所有的文件及子目录
  -v, --verbose          处理任何文件都会显示信息

以下选项是在指定了 -R 选项时被用于设定如何穿越目录结构体系。
如果您指定了多于一个选项,那么只有最后一个会生效。

  -H         如果命令行参数是一个通到目录的符号链接,穿越它
  -L         穿越每一个遇到的通到目录的符号链接
  -P         不穿越任何符号链接 (默认)

      --help     显示此帮助信息并离开
      --version  显示版本信息并离开

示例:
  chgrp staff /u            将 /u 的属组更改为“staff”。
  chgrp -hR staff /u    将 /u 及其子目录下所有文件的属组更改为“staff”。
用法:chmod [选项]... 模式[,模式]... 文件...
  或:chmod [选项]... 八进制模式 文件...
  或:chmod [选项]... --reference=参考文件 文件...
将每个<文件>的权限模式更改为指定的<模式>。

  -c, --changes           类似 --verbose,但只在有更改时才显示结果
      --no-preserve-root 不会对根目录给予特别对待 (默认)
      --preserve-root 对根目录进行递归操作时会失败
  -f, --silent, --quiet   去除大部份的错误信息
  -v, --verbose           处理任何文件都会显示详细信息
      --reference=参考文件  使用<参考文件>的模式,而非自行指定权限模式
  -R, --recursive         以递归方式更改所有的文件及子目录
      --help     显示此帮助信息并离开
      --version  显示版本信息并离开

每种<模式>都应属于这类形式“[ugoa]*([-+=]([rwxXst]*|[ugo]))+”。
用法:chown [选项]... [所有者][:[组]] 文件...
  或:chown [选项]... --reference=参考文件 文件...
Change the owner and/or group of each FILE to OWNER and/or GROUP.
With --reference, change the owner and group of each FILE to those of RFILE.

  -c, --changes          like verbose but report only when a change is made
      --dereference      affect the referent of each symbolic link (this is
                         the default), rather than the symbolic link itself
  -h, --no-dereference   会影响符号链接本身,而非符号链接所指示的目的地
                         (当系统支持更改符号链接的所有者时,此选项才有用)
      --from=目前所有者:目前所属组
                         只当每个文件的所有者和组符合选项所指定的,
                         才会更改所有者和组。其中一个可以省略,这时
                         已省略的属性就不需要符合原有的属性。
      --no-preserve-root  do not treat `/' specially (the default)
      --preserve-root    fail to operate recursively on `/'
  -f, --silent, --quiet  suppress most error messages
      --reference=RFILE  use RFILE's owner and group rather than
                         specifying OWNER:GROUP values
  -R, --recursive        operate on files and directories recursively
  -v, --verbose          output a diagnostic for every file processed

以下选项是在指定了 -R 选项时被用于设定如何穿越目录结构体系。
如果您指定了多于一个选项,那么只有最后一个会生效。

  -H         如果命令行参数是一个通到目录的符号链接,穿越它
  -L         穿越每一个遇到的通到目录的符号链接
  -P         不穿越任何符号链接 (默认)

      --help     显示此帮助信息并离开
      --version  显示版本信息并离开

如果没有指定<所有者>,则不会更改。<所属组>若没有指定也不会更改,但当加上
“:”时<所属组>会更改为指定<所有者>的主组。<所有者>和<所属组>可以是数字或名称。

示例:
  chown root /u                将 /u 的属主更改为“root”。
  chown root:staff /u       和上面类似,但同时也将其属组更改为“staff”。
  chown -hR root /u        将 /u 及其子目录下所有文件的属主更改为“root”。
用法:cp [选项]... [-T] 源 目的
  或:cp [选项]... 源... 目录
  或:cp [选项]... -t 目录 源...
将<源>文件复制到<目的>,或将多个<源>复制到<目录>。

长选项必须用的参数在使用短选项时也是必需的。
  -a, --archive                same as -dpR
      --backup[=CONTROL]       make a backup of each existing destination file
  -b                           like --backup but does not accept an argument
      --copy-contents          copy contents of special files when recursive
  -d                           same as --no-dereference --preserve=links
  -f, --force                  if an existing destination file cannot be
                                 opened, remove it and try again
  -i, --interactive            prompt before overwrite
  -H                           follow command-line symbolic links in SOURCE
  -l, --link                   link files instead of copying
  -L, --dereference            always follow symbolic links in SOURCE
  -P, --no-dereference         never follow symbolic links in SOURCE
  -p                           same as --preserve=mode,ownership,timestamps
      --preserve[=ATTR_LIST]   preserve the specified attributes (default:
                                 mode,ownership,timestamps), if possible
                                 additional attributes: context, links, all
      --no-preserve=属性列表  不保留指定的文件属性
      --parents                复制前先在<目录>创建来源文件路径中的所有目录
  -R, -r, --recursive          复制目录及目录内的所有项目
      --remove-destination     尝试打开目的地文件前先删除已存在的目的地
                               文件 (相对于 --force 选项)
      --sparse=WHEN            控制创建 sparse 文件的方式
      --strip-trailing-slashes 删除参数中所有<源>文件/目录末端的斜杠
  -s, --symbolic-link          只创建符号链接而不是复制文件
  -S, --suffix=后缀            自行指定备份文件的<后缀>
  -t,  --target-directory=目录  将所有参数指定的<源>文件/目录复制至<目录>
  -T, --no-target-directory  将<目标目录>视作普通文件
  -u, --update                 只在<来源>文件比目的地文件新,或目的地文件
                                 不存在时才进行复制
  -v, --verbose                详细显示进行的步骤
  -x, --one-file-system        不会跨越文件系统进行操作
      --help     显示此帮助信息并离开
      --version  显示版本信息并离开

默认使用模式中,<源>文件是否稀疏文件会由一种粗略的方式决定,而且相应
的<目的地>文件也会是稀疏文件。此方式等于使用 --sparse=auto 选项。指定
--sparse=always 则只要<源>文件含有足够长的 0 字节都会产生稀疏的
<目的地>文件。
使用 --sparse=never 会禁止产生稀疏文件。

备份文件的后缀为‘~’,除非以 --suffix 选项或是 SIMPLE_BACKUP_SUFFIX
环境变量指定。版本控制的方式可透过 --backup 选项或 VERSION_CONTROL 环境
变量来选择。以下是可用的变量值:

  none, off       不会进行备份 (即使使用了 --backup 选项)
  numbered, t     备份文件会加上数字
  existing, nil   若有数字的备份文件已经存在则使用数字,否则使用普通方式备份
  simple, never   永远使用普通方式备份

有一个特别情况:如果同时指定 --force 和 --backup 选项,而且<来源>和<目的地>
是同一个已存在的一般文件的话,cp 会将<来源>文件备份。

Usage: cpio [OPTION...] [destination-directory]
GNU `cpio' copies files to and from archives

Examples:
  # Copy files named in name-list to the archive
  cpio -o < name-list [> archive]
  # Extract files from the archive
  cpio -i [< archive]
  # Copy files named in name-list to destination-directory
  cpio -p destination-directory < name-list

 Main operation mode:
  -i, --extract              Extract files from an archive (run in copy-in
                             mode)
  -o, --create               Create the archive (run in copy-out mode)
  -p, --pass-through         Run in copy-pass mode
  -t, --list                 Print a table of contents of the input

 Operation modifiers valid in any mode:

      --block-size=BLOCK-SIZE   Set the I/O block size to BLOCK-SIZE * 512
                             bytes
  -B                         Set the I/O block size to 5120 bytes
  -c                         Use the old portable (ASCII) archive format
  -C, --io-size=NUMBER       Set the I/O block size to the given NUMBER of
                             bytes
      --force-local          Archive file is local, even if its name contains
                             colons
  -f, --nonmatching          Only copy files that do not match any of the given
                             patterns
  -F, --file=[[USER@]HOST:]FILE-NAME
                             Use this FILE-NAME instead of standard input or
                             output. Optional USER and HOST specify the user
                             and host names in case of a remote archive
  -H, --format=FORMAT        Use given archive FORMAT
  -M, --message=STRING       Print STRING when the end of a volume of the
                             backup media is reached
  -n, --numeric-uid-gid      In the verbose table of contents listing, show
                             numeric UID and GID
      --quiet                Do not print the number of blocks copied
      --rsh-command=COMMAND  Use remote COMMAND instead of rsh
  -v, --verbose              Verbosely list the files processed
  -V, --dot                  Print a "." for each file processed
  -W, --warning=FLAG         Control warning display. Currently FLAG is one of
                             'none', 'truncate', 'all'. Multiple options
                             accumulate.

 Operation modifiers valid only in copy-in mode:

  -b, --swap                 Swap both halfwords of words and bytes of
                             halfwords in the data. Equivalent to -sS
  -r, --rename               Interactively rename files
  -s, --swap-bytes           Swap the bytes of each halfword in the files
  -S, --swap-halfwords       Swap the halfwords of each word (4 bytes) in the
                             files
      --to-stdout            Extract files to standard output

  -E, --pattern-file=FILE    Read additional patterns specifying filenames to
                             extract or list from FILE
      --only-verify-crc      When reading a CRC format archive, only verify the
                             CRC's of each file in the archive, don't actually
                             extract the files

 Operation modifiers valid only in copy-out mode:

  -A, --append               Append to an existing archive.
  -O [[USER@]HOST:]FILE-NAME Archive filename to use instead of standard
                             output. Optional USER and HOST specify the user
                             and host names in case of a remote archive

 Operation modifiers valid only in copy-pass mode:

  -l, --link                 Link files instead of copying them, when
                             possible

 Operation modifiers valid in copy-in and copy-out modes:

      --absolute-filenames   Do not strip file system prefix components from
                             the file names
      --no-absolute-filenames   Create all files relative to the current
                             directory

 Operation modifiers valid in copy-out and copy-pass modes:

  -0, --null                 A list of filenames is terminated by a null
                             character instead of a newline
  -a, --reset-access-time    Reset the access times of files after reading them
                            
  -I [[USER@]HOST:]FILE-NAME Archive filename to use instead of standard input.
                             Optional USER and HOST specify the user and host
                             names in case of a remote archive
  -L, --dereference          Dereference  symbolic  links  (copy  the files
                             that they point to instead of copying the links).
  -R, --owner=[USER][:.][GROUP]   Set the ownership of all files created to the
                             specified USER and/or GROUP

 Operation modifiers valid in copy-in and copy-pass modes:

  -d, --make-directories     Create leading directories where needed
  -m, --preserve-modification-time
                             Retain previous file modification times when
                             creating files
      --no-preserve-owner    Do not change the ownership of the files
      --sparse               Write files with large blocks of zeros as sparse
                             files
  -u, --unconditional        Replace all files unconditionally

 Informative options:

  -?, --help                 Give this help list
      --license              Print license and exit
      --usage                Give a short usage message
      --version              Print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
用法:date [选项]... [+格式]
  或:date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]
以给定的<格式>显示当前时间,或是设置系统日期。

  -d,--date=<字符串>       显示指定<字符串>所描述的时间,而非当前时间
  -f,--file=日期文件       类似 --date,从<日期文件>中按行读入时间描述
  -r, --reference=FILE      display the last modification time of FILE
  -R, --rfc-2822            output date and time in RFC 2822 format.
                            Example: Mon, 07 Aug 2006 12:34:56 -0600
      --rfc-3339=TIMESPEC   output date and time in RFC 3339 format.
                            TIMESPEC=`date', `seconds', or `ns' for
                            date and time to the indicated precision.
                            Date and time components are separated by
                            a single space: 2006-08-07 12:34:56-06:00
  -s, --set=STRING          set time described by STRING
  -u, --utc, --universal    print or set Coordinated Universal Time
      --help     显示此帮助信息并离开
      --version  显示版本信息并离开

<格式>控制输出,这是对次要时间描述形式 UTC 时间唯一的有效选项。
相应的解析序列为:

  %%        显示一个字符“%”
  %a        本地化的星期名缩写 (如:Sun)
  %A        本地化的星期名全称 (如:Sunday)
  %b        本地化的月名缩写 (如:Jan)
  %B        本地化的月名全称 (如:January)
  %c        本地化的日期和时间 (如:Thu Mar 3 23:05:25 2005)
  %C        世纪,类似 %Y,相异处在于省略了后两个数位 (如:21)
  %b        一月中的第几日 (如:01)
  %B        日期,等价于 %m/%d/%y
  %c        一月中的第几日,自动填补了空格。等价于 %_d
  %F    完整日期格式,等价于 %Y-%m-%d
  %g    ISO-8601 格式年份的最后两位 (参见 %G)
  %G    ISO-8601 格式年份 (参见 %V),一般只和 %V 结合使用
  %h        等价于 %b
  %H        小时 (00-23)
  %I        小时 (00-12)
  %c        一年中的第几日 (001-366)
  %k        小时 (0-23)
  %l        小时 (1-12)
  %m        月份 (01-12)
  %M        分钟 (00-59)
  %n        换行
  %N        毫微秒 (000000000-999999999)
  %p        本地化环境相关的 AM 或 PM,未知时输出为空
  %P        和 %p 类似,但是输出小写字母
  %r        本地的 12 小时时钟时间 (如:11:11:04 PM)
  %R        24 小时时间的小时和分钟,等价于 %H:%M
  %s        自 UTC 时间 1970-01-01 00:00:00 以来所经过的秒数
  %S        秒 (00-60)
  %t        输出 Tab 跳格
  %T        时间,等价于 %H:%M:%S
  %u        一周中的第几日,1 代表周一
  %U    一年中的第几周,以周日为每星期第一天 (00-53)
  %V    ISO-8601 格式规范下的一年中第几周,以周一为每星期第一天 (01-53)
  %w    一星期中的第几日 (0-6),0 代表周一
  %W    一年中的第几周,以周一为每星期第一天 (00-53)
  %x        本地化的日期描述 (如:12/31/99)
  %X        本地化的时间描述 (如:23:13:48)
  %y        年份的最后两个数位 (00-99)
  %Y        年份
  %z   +hhmm numeric timezone (e.g., -0400)
  %:z  +hh:mm numeric timezone (e.g., -04:00)
  %::z  +hh:mm:ss numeric time zone (e.g., -04:00:00)
  %:::z  numeric time zone with : to necessary precision (e.g., -04, +05:30)
  %Z   alphabetic time zone abbreviation (e.g., EDT)

By default, date pads numeric fields with zeroes.
The following optional flags may follow `%':

  -  (hyphen) do not pad the field
  _  (underscore) pad with spaces
  0  (zero) pad with zeros
  ^  use upper case if possible
  #  use opposite case if possible

在任何标记之后还允许一个可选的字段宽度指定,它是一个十进制数字。
作为一个可选的修饰声明,它可以是
E,在可能的情况下使用本地环境关联的表示方式;或者是
O,在可能的情况下使用本地环境关联的数字符号。
用法:dd [操作数] ...
  或:dd 选项
复制文件,并根据以下的操作数将数据转换并格式化。

  bs=字节         强迫 ibs=<字节> 及 bs=<字节>
  cbs=字节        每次转换指定的<字节>
  conv=关键字     根据以逗号分隔的关键字表示的方式来转换文件
  count=块数目    只复制指定量<块数目>的输入数据
  ibs=字节        每次读取指定的<字节>
  if=文件         读取<文件>内容而非标准输入的数据
  iflag=标记    以指定标记取代逗号作为读入符号列表的分隔符
  bs=字节        每次写入指定的<字节>
  f=文件         将数据写入<文件>而不在标准输出显示
  flag=标记    以指定标记取代逗号作为写出符号列表的分隔符
  seek=块数目     先略过以 obs 为单位的指定<块数目>的输出数据
  skip=块数目     先略过以 ibs 为单位的指定<块数目>的输入数据
  status=noxfer    不显示数据传输状态

<块数目>和<字节>可以加上以下的单位:
xM=M、c=1、w=2、b=512、kB=1000、K=1024、MB=1000*1000、M=1024*1024、
GB=1000*1000*1000、G=1024*1024*1024,还有 T、P、E、Z、Y 如此类推。
每个<关键字>可以是:

  ascii     由 EBCDIC 码转换至 ASCII 码
  ebcdic    由 ASCII 码转换至 EBCDIC 码
  ibm       由 ASCII 码转换至替换的 EBCDIC 码
  block     将结束字符块里的换行替换成等长的空格
  unblock   会将 cbs 大小的块中尾部的空格替换为一个换行符
  lcase     将大写字符转换为小写
  nocreat   do not create the output file
  excl      fail if the output file already exists
  notrunc   do not truncate the output file
  ucase     change lower case to upper case
  swab      swap every pair of input bytes
  noerror   continue after read errors
  sync      pad every input block with NULs to ibs-size; when used
            with block or unblock, pad with spaces rather than NULs
  fdatasync  physically write output file data before finishing
  fsync     likewise, but also write metadata

Each FLAG symbol may be:

  append    append mode (makes sense only for output; conv=notrunc suggested)
  direct 使用 Direct I/O 存取模式
  directory fail unless a directory
  dsync 对数据采用 I/O 同步
  sync 和上者类似,但同时也对元数据生效
  nonblock 使用无阻塞 I/O
  noatime   do not update access time
  noctty 不根据文件指派控制终端
  nofollow 不跟随链接文件

对运行中的“dd”进程发送一个 USR1 信号会使得
I/O 的统计信息被打印到标准错误设备然后恢复复制操作。

  $ dd if=/dev/zero f=/dev/null& pid=$!
  $ kill -USR1 $pid; sleep 1; kill $pid
  18335302+0 records in
  18335302+0 records out
  9387674624 bytes (9.4 GB) copied, 34.6279 seconds, 271 MB/s

可用选项有:

      --help     显示此帮助信息并离开
      --version  显示版本信息并离开
用法:df [选项]... [文件]...
显示每个<文件>所在的文件系统的信息,默认是显示所有文件系统。

长选项必须用的参数在使用短选项时也是必需的。
  -a, --all             include dummy file systems
  -B, --block-size=SIZE  use SIZE-byte blocks
  -h, --human-readable  print sizes in human readable format (e.g., 1K 234M 2G)
  -H, --si              likewise, but use powers of 1000 not 1024
  -i, --inodes          显示 inode 信息而非块使用量
  -k                    即 --block-size=1K
  -l, --local           只显示本机的文件系统
      --no-sync         取得使用量数据前不进行同步动作 (默认)
  -P, --portability     使用 POSIX 兼容的输出格式
      --sync            取得使用量数据前先进行同步动作
  -t, --type=类型       只印出指定文件系统为指定<类型>的信息
  -T, --print-type      印出文件系统类型
  -x, --exclude-type=类型   只印出文件系统不是指定<类型>信息
  -v                    (忽略)
      --help     显示此帮助信息并离开
      --version  显示版本信息并离开

<大小>可以是以下的单位 (单位前可加上整数):
kB 1000,K 1024,MB 1000*1000,M 1024*1024,还有 G、T、P、E、Z、Y。
用法:dir [选项]... [文件]...
列出<文件>的信息(默认为目前的目录)。
如果不指定 -cftuSUX 或 --sort 中任何一个选项,输出会根据字母大小排序。

长选项必须用的参数在使用短选项时也是必需的。
  -a, --all                  不隐藏任何以 . 字符开始的条目
  -A, --almost-all           列出除了 . 及 .. 以外的任何条目
      --author               配合 -l,印出每个文件的著作者
  -b, --escape               以八进制转换格式表示不可打印的字符
      --block-size=大小      块以指定<大小>的字节为单位
  -B, --ignore-backups       不列出任何以 ~ 字符结束的项目
  -c                         配合 -lt:根据 ctime 排序及显示 ctime (文件
                               状态最后更改的时间)
                               配合 -l:显示 ctime 但根据名称排序
                               否则:根据 ctime 排序
  -C                         每栏由上至下列出项目
      --color[=WHEN]         控制是否使用色彩分辨文件。WHEN 可以是
                               “never”、“always”或“auto”其中之一
  -d, --directory            当遇到目录时列出目录本身而非目录内的文件,
                               并且不跟随符号链接
  -D, --dired                产生适合 Emacs 的 dired 模式使用的结果
  -f                         do not sort, enable -aU, disable -ls --color
  -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                         类似 -l,但不列出属主
      --group-directories-first
                             group directories before files
  -G, --no-group             in a long listing, don't print group names
  -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)
      --indicator-style=WORD  append indicator with style. WORD to entry names:
                               none (default), slash (-p),
                               file-type (--file-type), classify (-F)
  -i, --inode                print the index number of each file
  -I, --ignore=PATTERN       do not list implied entries matching shell PATTERN
  -k                         like --block-size=1K
  -l                         使用较长格式列出信息
  -L, --dereference          当显示符号链接的文件信息时,显示符号链接所指示
                               的对象而并非符号链接本身的信息
  -m                         所有项目以逗号分隔,并填满整行行宽
  -n, --numeric-uid-gid      类似 -l,但列出 UID 及 GID 号
  -N, --literal              印出未经处理的项目名称 (如不特别处理控制字符)
  -o                         类似 -l,但不列出有关组的信息
  -p,  --indicator-style=slash           对目录加上表示符号“/”
  -q, --hide-control-chars   以 ? 字符代替无法打印的字符
      --show-control-chars   直接显示无法打印的字符 (这是默认方式,除非调用
                               的程序名称是“ls”而且是在终端机画面输出结果)
  -Q, --quote-name           将条目名称括上双引号
      --quoting-style=方式   使用指定的 quoting <方式>显示条目的名称:
                               literal、locale、shell、shell-always、c、escape
  -r, --reverse              reverse order while sorting
  -R, --recursive            list subdirectories recursively
  -s, --size                 print the size of each file, in blocks
  -S                         sort by file size
      --sort=WORD            sort by WORD instead of name: none -U,
                             extension -X, size -S, time -t, version -v
      --time=WORD            with -l, show time as WORD instead of modification
                             time: atime -u, access -u, use -u, ctime -c,
                             or status -c; use specified time as sort key
                             if --sort=time
      --time-style=STYLE     with -l, show times using style. STYLE.:
                             full-iso, long-iso, iso, locale, +FORMAT.
                             FORMAT is interpreted like `date'; if FORMAT is
                             FORMAT1<newline>FORMAT2, FORMAT1 applies to
                             non-recent files and FORMAT2 to recent files;
                             if STYLE. is prefixed with `posix-', STYLE
                             takes effect only outside the POSIX locale
  -t                         按修改时间排序
  -T, --tabsize=COLS         指定TAB使用的空格个数
  -u                         配合 -lt:显示访问时间而且依访问时间排序
                               配合 -l:显示访问时间但根据名称排序
                               否则:根据访问时间排序
  -U                         不进行排序;依文件系统原有的次序列出项目
  -v                         根据版本进行排序
  -w, --width=COLS           assume screen width instead of current value
  -x                         list entries by lines instead of by columns
  -X                         sort alphabetically by entry extension
  -Z, --context              print any SELinux security context of each file
  -1                         list one file per line
      --help     显示此帮助信息并离开
      --version  显示版本信息并离开

<大小>可以是以下的单位 (单位前可加上整数):
kB 1000,K 1024,MB 1000*1000,M 1024*1024,还有 G、T、P、E、Z、Y。

默认是不会使用色彩来区别文件的。此方式等于使用了 --color=none 选项。若使用
--color 选项但不指定 WHEN 参数等于 --color=always。当使用 --color=auto 时,
只当输出至tty终端机画面时才会显示色彩。

如果一切正常,退出状态为 0;如果出现小问题退出状态为 1;如果出现严重问题则为 2。

dmesg: invalid option -- -
Usage: dmesg [-c] [-n level] [-s bufsize]
xtfnddd@xtfnddd-laptop:~$ dnsdomainname --help
Usage: hostname [-v] {hostname|-F file}      set host name (from file)
       domainname [-v] {nisdomain|-F file}   set NIS domain name (from file)
       hostname [-v] [-d|-f|-s|-a|-i|-y]     display formated name
       hostname [-v]                         display host name

       hostname -V|--version|-h|--help       print info and exit

    dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y

    -s, --short           short host name
    -a, --alias           alias names
    -i, --ip-address      addresses for the host name
    -f, --fqdn, --long    long host name (FQDN)
    -d, --domain          DNS domain name
    -y, --yp, --nis       NIS/YP domain name
    -F, --file            read host name or NIS domain name from given file

   This command can get or set the host name or the NIS domain name. You can
   also get the DNS domain or the FQDN (fully qualified domain name).
   Unless you are using bind or NIS for host lookups you can change the
   FQDN (Fully Qualified Domain Name) and the DNS domain name (which is
   part of the FQDN) in the /etc/hosts file.
Usage: ed [options] [file]
Options:
  -h, --help                 display this help and exit
  -V, --version              output version information and exit
  -G, --traditional          run in compatibility mode
  -l, --loose-exit-status    exit with 0 status even if a command fails
  -p, --prompt=STRING        use STRING as an interactive prompt
  -s, --quiet, --silent      suppress diagnostics
  -v, --verbose              be verbose
Start edit by reading in `file' if given. Read output of shell command
if `file' begins with a `!'.
用法: egrep [选项]...模式 [文件]...
在每个文件中查找样式或标准输入。
PATTERN 是一个扩展通用表达式 (ERE)。
例: egrep -i 'hello world' menu.h main.c

正则表达式的选择和解释:
  -e, --regexp=PATTERN      use PATTERN for matching
  -f, --file=FILE           obtain PATTERN from FILE
  -i, --ignore-case         ignore case distinctions
  -w, --word-regexp         force PATTERN to match only whole words
  -x, --line-regexp         force PATTERN to match only whole lines
  -z, --null-data           a data line ends in 0 byte, not newline

杂项:
  -s,--no-messages 不显示错误信息
  -v,--invert-match 选择不匹配的行
  -V,--version 打印版本信息并退出
      --help 显示本帮助并退出
      --mmap 如果可能,使用内存映象作为输入

Output control:
  -m, --max-count=NUM       stop after NUM matches
  -b, --byte-offset         print the byte offset with output lines
  -n, --line-number         print line number with output lines
      --line-buffered       flush output on every line
  -H, --with-filename       print the filename for each match
  -h, --no-filename         suppress the prefixing filename on output
      --label=LABEL         print LABEL as filename for standard input
  -o, --only-matching       show only the part of a line matching PATTERN
  -q, --quiet, --silent     suppress all normal output
      --binary-files=TYPE   assume that binary files are TYPE;
                            TYPE is `binary', `text', or `without-match'
  -a, --text                equivalent to --binary-files=text
  -I                        equivalent to --binary-files=without-match
  -d, --directories=ACTION  how to handle directories;
                            ACTION is `read', `recurse', or `skip'
  -D, --devices=ACTION      how to handle devices, FIFOs and sockets;
                            ACTION is `read' or `skip'
  -R, -r, --recursive       equivalent to --directories=recurse
      --include=FILE_PATTERN  search only files that match FILE_PATTERN
      --exclude=FILE_PATTERN  skip files and directories matching FILE_PATTERN
      --exclude-from=FILE   skip files matching any file pattern from FILE
      --exclude-dir=PATTERN directories that match PATTERN will be skipped.
  -L, --files-without-match print only names of FILEs containing no match
  -l, --files-with-matches  print only names of FILEs containing matches
  -c, --count               print only a count of matching lines per FILE
  -T, --initial-tab         make tabs line up (if needed)
&nb

TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

我的栏目

日历

« 2008-12-03  
 123456
78910111213
14151617181920
21222324252627
28293031   

数据统计

  • 访问量: 12660
  • 日志数: 32
  • 图片数: 1
  • 建立时间: 2007-07-17
  • 更新时间: 2008-11-08

RSS订阅

Open Toolbar