免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2408 | 回复: 8
打印 上一主题 下一主题

没有环境,求几个man 信息,请大家帮忙 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-06 14:51 |只看该作者 |倒序浏览
man ps

man bdf

man df

论坛徽章:
0
2 [报告]
发表于 2008-08-06 15:14 |只看该作者
man ps

ps(1)                                                                 ps(1)


NAME
      ps - report process status
SYNOPSIS
      ps [-adeflPzx] [-g grplist] [-p proclist] [-R prmgrplist] [-t termlist]
           [-u uidlist] [-Z pset_list]
    XPG4 Synopsis
      ps [-aAcdefHjlPzx] [-C cmdlist] [-g grplist] [-G gidlist] [-n namelist]
           [-o format] [-p proclist] [-R prmgrplist] [-s sidlist] [-t
           termlist] [-u uidlist] [-U uidlist] [-Z pset_list]
DESCRIPTION
      ps prints information about selected processes.  Use options to
      specify which processes to select and what information to print about
      them.
    Process Selection Options
      Use the following options to choose which processes should be
      selected.
      NOTE: If an option is used in both the default (standard HP-UX) and
      XPG4 environments, the description provided here documents the default
      behavior.  Refer to the UNIX95 variable under EXTERNAL INFLUENCES for
      additional information on XPG4 behavior.
           (none)         Select those processes associated with the current
                          terminal.
           -A             (XPG4 Only.)  Select all processes.  (Synonym for
                          -e.)
           -a             Select all processes except process group leaders
                          and processes not associated with a terminal.
           -C cmdlist     (XPG4 Only.)  Select processes executing a command
                          with a basename given in cmdlist.
           -d             Select all processes except process group leaders.
           -e             Select all processes.
           -g grplist     Select processes whose process group leaders are
                          given in grplist.
           -G gidlist     (XPG4 Only.)  Select processes whose real group ID
                          numbers or group names are given in gidlist.
           -n namelist    (XPG4 Only.)  This option is ignored; its presence
                          is allowed for standards compliance.


Hewlett-Packard Company            - 1 -      HP-UX 11i Version 1: Jun 2001



ps(1)                                                                 ps(1)


           -p proclist    Select processes whose process ID numbers are
                          given in proclist.
           -R prmgrplist  Select processes belonging to PRM process resource
                          groups whose names or ID numbers are given in
                          prmgrplist.  See DEPENDENCIES.
           -s sidlist     (XPG4 Only.)  Select processes whose session
                          leaders are given in sidlist.  (Synonym for -g).
           -t termlist    Select processes associated with the terminals
                          given in termlist.  Terminal identifiers can be
                          specified in one of two forms: the device's file
                          name (such as tty04) or if the device's file name
                          starts with tty, just the rest of it (such as 04).
                          If the device's file is in a directory other than
                          /dev or /dev/pty, the terminal identifier must
                          include the name of the directory under /dev that
                          contains the device file (such as pts/5).
           -u uidlist     Select processes whose effective user ID numbers
                          or login names are given in uidlist.
           -U uidlist     (XPG4 Only.)  Select processes whose real user ID
                          numbers or login names are given in uidlist.
           -Z pset_list   Select processes whose processor set ID's are
                          given in pset_list.  This option is supported only
                          if the kernel supports processor sets
                          functionality.
      If any of the -a, -A, -d, or -e options is specified, the -C, -g, -G,
      -p, -R, -t, -u, -Z, and -U options are ignored.
      If more than one of -a, -A, -d, and -e are specified, the least
      restrictive option takes effect.
      If more than one of the -C, -g, -G, -p, -R, -t, -u, -Z, and -U options
      are specified, processes will be selected if they match any of the
      options specified.
      The lists used as arguments to the -C, -g, -G, -p, -R, -t, -u, -Z, and
      -U options can be specified in one of two forms:
           +  A list of identifiers separated from one another by a comma.
           +  A list of identifiers enclosed in quotation marks (") and
              separated from one another by a comma and/or one or more
              spaces.


Hewlett-Packard Company            - 2 -      HP-UX 11i Version 1: Jun 2001



ps(1)                                                                 ps(1)


    Output Format Options
      Use the following options to control which columns of data are
      included in the output listing.  The options are cumulative.
           (none)         The default columns are: pid, tty, time, and comm,
                          in that order.
           -f             Show columns user, pid, ppid, cpu, stime, tty,
                          time, and args, in that order.
           -l             Show columns flags, state, uid, pid, ppid, cpu,
                          intpri, nice, addr, sz, wchan, tty, time, and
                          comm, in that order.
           -fl            Show columns flags, state, user, pid, ppid, cpu,
                          intpri, nice, addr, sz, wchan, stime, tty, time,
                          and args, in that order.
           -c             (XPG4 Only.)  Remove columns cpu and nice; replace
                          column intpri with columns cls and pri.
           -j             (XPG4 Only.)  Add columns pgid and sid after
                          column ppid (or pid, if ppid is not being
                          displayed).
           -z             Add column pset before column prmgrp / prmid.  If
                          prmgrp and prmid are not present, add column pset
                          before column pid.  (Note that ps(1) displays the
                          kernel processor set id, where all kernel daemons
                          run, as KERN).
                          The -z option is supported only if the kernel
                          supports processor sets functionality.
           -P             Add column prmid (for -l) or prmgrp (for -f or
                          -fl) immediately before column pid.  See
                          DEPENDENCIES.
           -o format      (XPG4 Only.) format is a comma- or space-separated
                          list of the columns to display, in the order they
                          should be displayed.  (Valid column names are
                          listed below.)  A column name can optionally be
                          followed by an equals sign (=) and a string to use
                          as the heading for that column.  (Any commas or
                          spaces after the equals sign will be taken as a
                          part of the column heading; if more columns are
                          desired, they must be specified with additional -o
                          options.)  The width of the column will be the
                          greater of the width of the data to be displayed
                          and the width of the column heading.  If an empty
                          column heading is specified for every heading, no

Hewlett-Packard Company            - 3 -      HP-UX 11i Version 1: Jun 2001



ps(1)                                                                 ps(1)


                          heading line will be printed.  This option
                          overrides options -c, -f, -j, -l, -z, and -P; if
                          they are specified, they are ignored.
           -H             (XPG4 Only.)  Shows the process hierarchy.  Each
                          process is displayed under its parent, and the
                          contents of the args or comm column for that
                          process is indented from that of its parent.  Note
                          that this option is expensive in both memory and
                          speed.
           -x             Shows the command line in extended format.
      The column names and their meanings are given below.  Except where
      noted, the default heading for each column is the uppercase form of
      the column name.
           addr           The memory address of the process, if resident;
                          otherwise, the disk address.
           args           The command line given when the process was
                          created.  This column should be the last one
                          specified, if it is desired.  Only a subset of the
                          command line is saved by the kernel; as much of
                          the command line will be displayed as is
                          available.  The output in this column may contain
                          spaces.  The default heading for this column is
                          COMMAND if -o is specified and CMD otherwise.
           cls            Process scheduling class, see rtsched(1).
           comm           The command name.  The output in this column may
                          contain spaces.  The default heading for this
                          column is COMMAND if -o is specified and CMD
                          otherwise.
           cpu            Processor utilization for scheduling.  The default
                          heading for this column is C.
           etime          Elapsed time of the process.  The default heading
                          for this column is ELAPSED.
           flags          Flags (octal and additive) associated with the
                          process:
                                0   Swapped
                                1   In core
                                2   System process
                                4   Locked in core (e.g., for physical I/O)
                               10   Being traced by another process


Hewlett-Packard Company            - 4 -      HP-UX 11i Version 1: Jun 2001



ps(1)                                                                 ps(1)


                               20   Another tracing flag
                          The default heading for this column is F.
           intpri         The priority of the process as it is stored
                          internally by the kernel.  This column is provided
                          for backward compatibility and its use is not
                          encouraged.
           gid            The group ID number of the effective process
                          owner.
           group          The group name of the effective process owner.
           nice           Nice value; used in priority computation (see
                          nice(1)).  The default heading for this column is
                          NI.
           pcpu           The percentage of CPU time used by this process
                          during the last scheduling interval.  The default
                          heading for this column is %CPU.
           pgid           The process group ID number of the process group
                          to which this process belongs.
           pid            The process ID number of the process.
           ppid           The process ID number of the parent process.
           pri            The priority of the process.  The meaning of the
                          value depends on the process scheduling class; see
                          cls, above, and rtsched(1).
           prmid          The PRM process resource group ID number.
           prmgrp         The PRM process resource group name.
           rgid           The group ID number of the real process owner.
           rgroup         The group name of the real process owner.
           ruid           The user ID number of the real process owner.
           pset           The processor set ID on which this process is
                          running.
           ruser          The login name of the real process owner.
           sid            The session ID number of the session to which this
                          process belongs.


Hewlett-Packard Company            - 5 -      HP-UX 11i Version 1: Jun 2001



ps(1)                                                                 ps(1)


           state          The state of the process:
                               0    Nonexistent
                               S    Sleeping
                               W    Waiting
                               R    Running
                               I    Intermediate
                               Z    Terminated
                               T    Stopped
                               X    Growing
                          The default heading for this column is S.
           stime          Starting time of the process.  If the elapsed time
                          is greater than 24 hours, the starting date is
                          displayed instead.
           sz             The size in physical pages of the core image of
                          the process, including text, data, and stack
                          space.  Physical page size is defined by
                          _SC_PAGE_SIZE in the header file <unistd.h> (see
                          sysconf(2) and unistd(5)).
           time           The cumulative execution time for the process.
           tty            The controlling terminal for the process.  The
                          default heading for this column is TT if -o is
                          specified and TTY otherwise.
           uid            The user ID number of the effective process owner.
           user           The login name of the effective process owner.
           vsz            The size in kilobytes (1024 byte units) of the
                          core image of the process.  See column sz, above.
           wchan          The event for which the process is waiting or
                          sleeping; if there is none, a hyphen (-) is
                          displayed.
    Notes
      ps prints the command name and arguments given at the time of the
      process was created.  If the process changes its arguments while
      running (by writing to its argv array), these changes are not
      displayed by ps.
      A process that has exited and has a parent, but has not yet been
      waited for by the parent, is marked <defunct> (see zombie process in
      exit(2)).


Hewlett-Packard Company            - 6 -      HP-UX 11i Version 1: Jun 2001



ps(1)                                                                 ps(1)


      The time printed in the stime column, and used in computing the value
      for the etime column, is the time when the process was forked, not the
      time when it was modified by exec().
      To make the ps output safer to display and easier to read, all control
      characters in the comm and args columns are displayed as "visible"
      equivalents in the customary control character format, ^x.
EXTERNAL INFLUENCES
    Environment Variables
      UNIX95 specifies to use the XPG4 behavior for this command.  The
      changes for XPG4 include support for the entire option set specified
      above and include the following behavioral changes:
           + The TIME column format changes from mmmm:ss to [dd-]hh:mm:ss.
           + When the comm, args, user, and prmgrp fields are included by
             default or the -f or -l flags are used, the column headings of
             those fields change to CMD, CMD, USER, and PRMGRP,
             respectively.
           + -a, -d, and -g will select processes based on session rather
             than on process group.
           + The uid or user column displayed by -f or -l will display
             effective user rather than real user.
           + The -u option will select users based on effective UID rather
             than real UID.
           + The -C and -H options, while they are not part of the XPG4
             standard, are enabled.
      LC_TIME determines the format and contents of date and time strings.
      If it is not specified or is null, it defaults to the value of LANG.
      If LANG is not specified or is null, it defaults to C (see lang(5)).
      If any internationalization variable contains an invalid setting, all
      internationalization variables default to C (see environ(5)).
    International Code Set Support
      Single-byte character code sets are supported.
EXAMPLES
      Generate a full listing of all processes currently running on your
      machine:
           ps -ef


Hewlett-Packard Company            - 7 -      HP-UX 11i Version 1: Jun 2001



ps(1)                                                                 ps(1)


      To see if a certain process exists on the machine, such as the cron
      clock daemon, check the far right column for the command name, cron,
      or try
           ps -f -C cron
WARNINGS
      Things can change while ps is running; the picture it gives is only a
      snapshot in time.  Some data printed for defunct processes is
      irrelevant.
      If two special files for terminals are located at the same select
      code, that terminal may be reported with either name.  The user can
      select processes with that terminal using either name.
      Users of ps must not rely on the exact field widths and spacing of its
      output, as these will vary depending on the system, the release of
      HP-UX, and the data to be displayed.
DEPENDENCIES
    HP Process Resource Manager
      The -P and -R options require the optional HP Process Resource Manager
      (PRM) software to be installed and configured.  See prmconfig(1) for a
      description of how to configure HP PRM, and prmconf(4) for the
      definition of "process resource group."
      If HP PRM is not installed and configured and -P or -R is specified, a
      warning message is displayed and (for -P) hyphens (-) are displayed in
      the prmid and prmgrp columns.
FILES
      /dev                               Directory of terminal device files
      /etc/passwd                        User ID information
      /var/adm/ps_data                   Internal data structure
SEE ALSO
      kill(1), nice(1), acctcom(1M), exec(2), exit(2), fork(2), sysconf(2),
      unistd(5).
      HP Process Resource Manager: prmconfig(1), prmconf(4) in HP Process
      Resource Manager User's Guide.
STANDARDS COMPLIANCE
      ps: SVID2, XPG2, XPG3, XPG4





Hewlett-Packard Company            - 8 -      HP-UX 11i Version 1: Jun 2001

论坛徽章:
0
3 [报告]
发表于 2008-08-06 15:17 |只看该作者
man bdf

bdf(1M)                                                             bdf(1M)


NAME
      bdf - report number of free disk blocks (Berkeley version)
SYNOPSIS
      /usr/bin/bdf [-b] [-i] [-l] [-t type | [filesystem|file] ... ]
DESCRIPTION
      The bdf command displays the amount of free disk space available
      either on the specified filesystem (/dev/dsk/c0d0s0, for example) or
      on the file system in which the specified file (such as $HOME), is
      contained.  If no file system is specified, the free space on all of
      the normally mounted file systems is printed.  The reported numbers
      are in kilobytes.
    Options
      The bdf command recognizes the following options:
           -b             Display information regarding file system
                          swapping.
           -i             Report the number of used and free inodes.
           -l             Display information for local file systems only
                          (for example, HFS and CDFS file systems).
           -t type        Report on the file systems of a given type (for
                          example, nfs or hfs).
RETURN VALUE
      The bdf command returns 0 on success (able to get status on all file
      systems), or returns 1 on failure (unable to get status on one or more
      file systems).
WARNINGS
      If file system names are too long, the output for a given entry is
      displayed on two lines.
      The bdf command does not account for any disk space reserved for swap
      space, or used for the HFS boot block (8 KB, 1 per file system), HFS
      superblocks (8 KB each, 1 per disk cylinder), HFS cylinder group
      blocks (1 KB - 8 KB each, 1 per cylinder group), and inodes (currently
      128 bytes reserved for each inode).  Non-HFS file systems may have
      other items not accounted for by this command.
AUTHOR
      bdf was developed by the University of California, Berkeley.
FILES
      /etc/fstab          Static information about the file systems.
      /etc/mnttab         Mounted file system table.


Hewlett-Packard Company            - 1 -   HP-UX Release 11i: November 2000



bdf(1M)                                                             bdf(1M)


      /dev/dsk/*          File system devices.
SEE ALSO
      df(1M), fstab(4), mnttab(4).

























Hewlett-Packard Company            - 2 -   HP-UX Release 11i: November 2000

[test@fa-temp /home/test]$man bdf
bdf(1M)                                                             bdf(1M)
NAME
      bdf - report number of free disk blocks (Berkeley version)
SYNOPSIS
      /usr/bin/bdf [-b] [-i] [-l] [-t type | [filesystem|file] ... ]
DESCRIPTION
      The bdf command displays the amount of free disk space available
      either on the specified filesystem (/dev/dsk/c0d0s0, for example) or
      on the file system in which the specified file (such as $HOME), is
      contained.  If no file system is specified, the free space on all of
      the normally mounted file systems is printed.  The reported numbers
      are in kilobytes.
    Options
      The bdf command recognizes the following options:
           -b             Display information regarding file system
                          swapping.
           -i             Report the number of used and free inodes.
           -l             Display information for local file systems only
                          (for example, HFS and CDFS file systems).
           -t type        Report on the file systems of a given type (for
                          example, nfs or hfs).
RETURN VALUE
      The bdf command returns 0 on success (able to get status on all file
      systems), or returns 1 on failure (unable to get status on one or more
      file systems).
WARNINGS
      If file system names are too long, the output for a given entry is
      displayed on two lines.
      The bdf command does not account for any disk space reserved for swap
      space, or used for the HFS boot block (8 KB, 1 per file system), HFS
      superblocks (8 KB each, 1 per disk cylinder), HFS cylinder group
      blocks (1 KB - 8 KB each, 1 per cylinder group), and inodes (currently
      128 bytes reserved for each inode).  Non-HFS file systems may have
      other items not accounted for by this command.
AUTHOR
      bdf was developed by the University of California, Berkeley.
FILES
      /etc/fstab          Static information about the file systems.
      /etc/mnttab         Mounted file system table.
Hewlett-Packard Company            - 1 -   HP-UX Release 11i: November 2000
bdf(1M)                                                             bdf(1M)
      /dev/dsk/*          File system devices.
SEE ALSO
      df(1M), fstab(4), mnttab(4).
Hewlett-Packard Company            - 2 -   HP-UX Release 11i: November 2000

论坛徽章:
0
4 [报告]
发表于 2008-08-06 15:18 |只看该作者
man df


df(1M)                                                               df(1M)
NAME
      df - report number of free file system disk blocks
SYNOPSIS
      /usr/bin/df [-F FStype] [-befgiklnv] [-t|-P] [-o specific_options] [-V]
           [special|directory]...
DESCRIPTION
      The df command displays the number of free 512-byte blocks and free
      inodes available for file systems by examining the counts kept in the
      superblock or superblocks.  If a special or a directory is not
      specified, the free space on all mounted file systems is displayed.
      If the arguments to df are path names, df reports on the file systems
      containing the named files.  If the argument to df is a special of an
      unmounted file system, the free space in the unmounted file system is
      displayed.
    Options
      df recognizes the following options:
           -b             Report only the number of kilobytes (KB) free.
           -e             Report the number of files free.
           -f             Report only the actual count of the blocks in the
                          free list (free inodes are not reported).
           -F FStype      Report only on the FStype file system type (see
                          fstyp(1M)).
           -g             Report the entire structure described in
                          statvfs(2).
           -i             Report the total number of inodes, the number of
                          free inodes, number of used inodes, and the
                          percentage of inodes in use.
           -k             Report the allocation in kilobytes (KB).
           -l             Report on local file systems only.
           -n             Report the file system name.  If used with no
                          other options, display a list of mounted file
                          system types.
           -o specific_options
                          Specify options specific to each file system type.
                          specific_options is a comma-separated list of
                          suboptions intended for a specific FStype module
                          of the command.  See the file-system-specific
                          manual entries for further details.
Hewlett-Packard Company            - 1 -   HP-UX Release 11i: November 2000
df(1M)                                                               df(1M)
           -P             Report the name of the file system, the size of
                          the file system, the number of blocks used, the
                          number of blocks free, the percentage of blocks
                          used and the directory below which the file system
                          hierarchy appears.
           -t             Report the total allocated block figures and the
                          number of free blocks.
           -v             Report the percentage of blocks used, the number
                          of blocks used, and the number of blocks free.
                          This option cannot be used with other options.
           -V             Echo the completed command line, but perform no
                          other action.  The command line is generated by
                          incorporating the user-specified options and other
                          information derived from /etc/fstab.  This option
                          allows the user to verify the command line.
EXTERNAL INFLUENCES
    Environment Variables
      LC_MESSAGES determines the language in which messages are displayed.
      If LC_MESSAGES is not specified in the environment or is set to the
      empty string, the value of LANG is used as a default for each
      unspecified or empty variable.  If LANG is not specified or is set to
      the empty string, a default of "C" (see lang(5)) is used instead of
      LANG.
      If any internationalization variable contains an invalid setting, df
      behaves as if all internationalization variables are set to "C".  See
      environ(5).
    International Code Set Support
      Single-byte and multi-byte character code sets are supported.
EXAMPLES
      Report the number of free disk blocks for all mounted file systems:
           df
      Report the number of free disk blocks for all mounted HFS file
      systems:
           df -F hfs
      Report the number of free files for all mounted NFS file systems:
           df -F nfs -e
Hewlett-Packard Company            - 2 -   HP-UX Release 11i: November 2000
df(1M)                                                               df(1M)
      Report the total allocated block figures and the number of free
      blocks, for all mounted file systems:
           df -t
      Report the total allocated block figures and the number of free
      blocks, for the file system mounted as /usr:
           df -t /usr
FILES
      /dev/dsk/*          File system devices
      /etc/fstab          Static information about the file systems
      /etc/mnttab         Mounted file system table
SEE ALSO
      du(1), df_hfs(1M), df_vxfs(1M), fsck(1M), fstab(4), fstyp(1M),
      statvfs(2), mnttab(4).
STANDARDS CONFORMANCE
      df: SVID2, SVID3, XPG2, XPG3, XPG4
Hewlett-Packard Company            - 3 -   HP-UX Release 11i: November 2000

论坛徽章:
0
5 [报告]
发表于 2008-08-06 15:21 |只看该作者
man ps

ps(1) ps(1)
名称
ps - 报告进程状态
概要
ps [-adeflPzx] [-g grplist] [-p proclist] [-R prmgrplist] [-t termlist] [-u uidlist]
[-Z pset_list]
UNIX 标准概要
ps [-aAcdefHjlPzx] [-C cmdlist] [-g grplist] [-G gidlist] [-n namelist] [-o format]
[-p proclist] [-R prmgrplist] [-s sidlist] [-t termlist] [-u uidlist] [-U uidlist] [-Z pset_list]
说明
ps 输出有关所选进程的信息。使用选项指定选择哪些进程以及要输出有关它们的哪些信息。
进程选择选项
使用下列选项选择应该选择的进程。
注释:如果同时在缺省(标准HP-UX)环境和UNIX 标准(请参阅standards(5) )环境中使用某个选项,则此处
提供的说明记录缺省行为。有关UNIX 标准行为的其他信息,请参考“注释”一节。
(无) 选择与当前终端关联的那些进程。
-A (仅适用于UNIX 标准,请参阅standards(5) )选择所有进程( -e 的同义词)。
-a 选择除进程组创建者和不与终端关联的进程之外的所有进程。
-C cmdlist (仅适用于UNIX 标准,请参阅standards(5) )选择通过在cmdlist 中指定的基名执行命
令的进程。
-d 选择除进程组创建者之外的所有进程。
-e 选择所有进程。
-g grplist 选择在grplist 中指定其进程组创建者的进程。
-G gidlist (仅适用于UNIX 标准,请参阅standards(5) )选择在gidlist 中指定其有效组ID 号或
组名称的进程。
-n namelist (仅适用于UNIX 标准,请参阅standards(5) )将忽略该选项;允许它存在是为了符合
标准。
-p proclist 选择在proclist 中指定其进程ID 号的进程。
-R prmgrplist 选择属于在prmgrplist 中指定其名称或ID 号的PRM 进程资源组的进程。请参阅“相关
内容”一节。
-s sidlist (仅适用于UNIX 标准,请参阅standards(5) )选择在sidlist 中指定其会话发起者的进
程( -g 的同义词)。
HP-UX 11i Version 3: February 2007 −1− Hewlett-Packard Company Section 1-161
ps(1) ps(1)
-t termlist 选择与在termlist 中指定的终端关联的进程。可以用下列两种形式之一指定终端标识
符:设备的文件名(如tty04 );或者,如果设备的文件名以tty 开头,则仅使用它的
其余部分(如04 )。如果设备的文件位于除/dev 或/dev/pty 之外的目录中,则终端标
识符必须包括/dev 下包含设备文件的目录的名称(如pts/5 )。
-u uidlist 选择在uidlist 中指定其实际用户ID 号或登录名的进程。
-U uidlist (仅适用于UNIX 标准,请参阅standards(5) )选择在uidlist 中指定其实际用户ID 号
或登录名的进程。
-Z pset_list 选择在pset_list 中指定其处理器集ID 的进程。仅当内核支持处理器集功能时,才支持
该选项。
如果指定了-a 、-A 、-d 或-e 选项中的任一选项,则将忽略-C 、-g 、-G 、-p 、-R 、-t 、-u 、-Z 和-U
选项。
如果指定了-a 、-A 、-d 和-e 中的多个,则限制性最小的选项有效。
如果指定了-C 、-g 、-G 、-p 、-R 、-t 、-u 、-Z 和-U 选项中的多个,则当进程与指定的任一选项匹配
时,将选择这些进程。
可以用下列两种形式之一指定用作-C 、-g 、-G 、-p 、-R 、-t 、-u 、-Z 和-U 选项的参数的列表:
• 彼此由逗号分隔的标识符的列表。
• 括在引号(") 中且彼此由逗号和(或)一个或多个空格分隔的标识符的列表。
输出格式选项
使用下列选项可控制在输出列表中包括哪些数据列。这些选项是累加的。
(无) 缺省列为: pid 、tty 、time 和comm (按照该顺序)。
-f 显示列user 、pid 、ppid 、cpu 、stime 、tty 、time 和args (按照该顺序)。
-l 显示列flags 、state 、uid 、pid 、ppid 、cpu 、intpri 、nice 、addr 、sz 、
wchan 、tty 、time 和comm (按照该顺序)。
-fl 显示列flags 、state 、user 、pid 、ppid 、cpu 、intpri 、nice 、addr 、sz 、
wchan 、stime 、tty 、time 和args (按照该顺序)。
-c (仅适用于UNIX 标准,请参阅standards(5) )删除列cpu 和nice ;将列intpri 替换为
列cls 和pri 。
-j (仅适用于UNIX 标准,请参阅standards(5) )在列ppid (或者,如果未显示ppid ,
则为pid )之后添加列pgid 和sid 。
-z 在列prmgrp / prmid 之前添加列pset 。如果prmgrp 和prmid 不存在,则在列pid 之
前添加列pset (请注意, ps 将运行所有内核守护程序的内核处理器集id 显示为
KERN )。
Section 1-162 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: February 2007
ps(1) ps(1)
仅当内核支持处理器集功能时,才支持-z 选项。
-P 紧邻列pid 之前添加列prmid (对于-l )或prmgrp (对于-f 或-fl )。请参阅“相关
内容”一节。
-o format (仅适用于UNIX 标准,请参阅standards(5) ) format 是一个要显示的列的列表,它由
逗号或空格分隔,并以应显示的顺序显示(有效的列名在下面列出)。列名也可以后跟
等号(=) 和用作该列标题的字符串(等号后面的任何逗号或空格都将成为列标题的一部
分。如果需要更多列,则必须使用其他-o 选项进行指定)。列宽将采用要显示的数据
的宽度和列标题的宽度中的较大者。如果为每个标题指定了空白列标题,则将不输出标
题行。该选项将覆盖选项-c 、-f 、-j 、-l 、-z 和-P ;如果指定了它们,则会将其忽
略。
-H (仅适用于UNIX 标准)显示进程层次结构。每个进程都在其父进程下显示,该进程的
args 或comm 列的内容从其父进程的内容处缩进。请注意,该选项在内存和速度方面的
开销很大。
-x 以扩展格式显示命令行。
列名及其含义如下所示。除非另有说明,每列的缺省标题为列名的大写形式。
addr 如果驻留,则为进程的内存地址;否则为磁盘地址。
args 在创建进程时指定的命令行。该列应该是指定的最后一列(如果需要它)。内核仅保存
命令行的子集;因为命令行的大部分将在可用时显示。该列中的输出可能包含空格。如
果指定了-o ,则该列的缺省标题为COMMAND ;否则为CMD 。
cls 进程调度类,请参阅rtsched(1) 。
comm 命令名称。该列中的输出可能包含空格。如果指定了-o ,则该列的缺省标题为COMMAND
;否则为CMD 。
cpu 用于调度的处理器利用率。该列的缺省标题为C 。
etime 进程的所用时间。该列的缺省标题为ELAPSED 。
flags 与进程关联的标记(八进制,而且是加性的):
0 已交换
1 在核心中
2 系统进程
4 在核心中锁定(例如,对于物理I/O)
10 被另一个进程跟踪
20 其他跟踪标记
该列的缺省标题为F 。
HP-UX 11i Version 3: February 2007 −3− Hewlett-Packard Company Section 1-163
ps(1) ps(1)
intpri 进程由内核在内部存储它时的优先级。提供该列是为了向后兼容,不鼓励使用它。
gid 有效进程所有者的组ID 号。
group 有效进程所有者的组名称。
nice Nice 值;在优先级计算中使用(请参阅nice(1) )。该列的缺省标题为NI 。
pcpu 该进程在最后一个调用时间间隔中使用的CPU 时间百分比。该列的缺省标题为
%CPU。
pgid 该进程所属的进程组的进程组ID 号。
pid 进程的进程ID 号。
ppid 父进程的进程ID 号。
pri 进程的优先级。该值的含义取决于进程调度类;请参阅上面的cls 以及rtsched(1) 。
prmid PRM 进程资源组的ID 号。
prmgrp PRM 进程资源组的名称。
rgid 实际进程所有者的组ID 号。
rgroup 实际进程所有者的组名称。
ruid 实际进程所有者的用户ID 号。
pset 运行该进程的处理器集ID。
ruser 实际进程所有者的登录名。
sid 该进程所属会话的会话ID 号。
state 进程的状态:
0 不存在
S 正在休眠
W 正在等待
R 正在运行
I 中间体
Z 已终止
T 已停止
X 正在增长
该列的缺省标题为S 。
stime 进程的起始时间。如果所用时间超过24 小时,则改为显示起始日期。
sz 进程的核心映像的大小(以物理页为单位),包括文本、数据和堆栈空间。物理页大小
由头文件<unistd.h> 中的_SC_PAGE_SIZE 定义(请参阅sysconf (2) 和unistd(5) )。
Section 1-164 Hewlett-Packard Company − 4 − HP-UX 11i Version 3: February 2007
ps(1) ps(1)
time 进程的累积执行时间。
tty 进程的控制终端。如果指定了-o ,则该列的缺省标题为TT ;否则为TTY 。
uid 有效进程所有者的用户ID 号。
user 有效进程所有者的登录名。
vsz (虚拟)内存中的进程的大小,以千字节(即1024 字节)为单位。
wchan 进程正在为其等待或休眠的事件;如果没有这样的事件,则显示连字符(-)。
注释
ps 输出在创建进程时指定的命令名称和参数。如果进程在运行时更改其参数(通过写入其argv 数组),则ps 不
显示这些更改。
已经退出且具有父级(但是尚未由父级等待)的进程将被标记为<defunct> (请参阅exit(2) 中的“死进程”)。
在stime 列中输出且在计算etime 列的值时使用的时间是派生进程的时间, 而不是exec() 修改该进程的时间。
为了使ps 输出更安全地显示且更易于阅读, comm 和args 列中的所有控制字符都将按通常的控制字符格式ˆx
显示为“可见”等效项。
COMMAND 字段的缺省长度为128 (包括空结束符)。可通过在/etc/default/ps 文件中设置
DEFAULT_CMD_LINE_WIDTH=value 来配置该值。DEFAULT_CMD_LINE_WIDTH 的值应在64 和1020 之
间。但是,在显示comm 列时,如果未定义PS_CMD_BASENAME 变量,缺省情况下, COMMAND 字段的长
度将为14 个字符。如果定义了环境变量PS_CMD_BASENAME ,则COMMAND 字段的长度将为64 到255 个
字符之间。
在UNIX 标准(请参阅standards(5) )环境下,将发生下列行为更改:
• TIME 列格式由mmmm:ss 更改为[dd-]hh:mm:ss 。
• 当缺省情况下包括comm 、args 、user 和prmgrp 字段,或者使用-f 或-l 标记时,那些字段的列标题将
分别更改为CMD 、CMD 、USER 和PRMGRP 。
• -a 、-d 和-g 将基于会话而不是进程组来选择进程。
• 由-f 或-l 显示的uid 或用户列将显示有效用户而不是实际用户。
• -u 选项将基于有效UID 而不是实际UID 来选择用户。
• 尽管-C 和-H 选项不是UNIX 标准的一部分,但是将启用它们。
外部语言环境影响
有关UNIX 标准环境的信息,请参阅standards(5) 。
环境变量
LC_TIME 确定日期和时间字符串的格式和内容。如果未指定它,或者其值为空,则缺省为LANG 的值。
如果未指定LANG ,或者其值为空,则缺省为C (请参阅lang(5) )。
HP-UX 11i Version 3: February 2007 −5− Hewlett-Packard Company Section 1-165
ps(1) ps(1)
如果任一国际化变量包含无效设置,则所有国际化变量都会缺省为C (请参阅environ(5) )。
国际代码集支持
支持单字节字符代码集。
举例
生成当前在计算机上运行的所有进程的完整列表:
ps -ef
要查看某个进程(如cron 时钟守护程序)是否存在于计算机上,请检查命令名称cron 的最右列或者尝试
ps -f -C cron
警告
当ps 正在运行时进程可能会发生更改。ps 命令仅会及时用快照显示这些进程。为死进程输出的数据是不相关
的。
如果终端的两个专用文件位于同一选择代码上,则可以使用任一名称报告该终端。用户可以使用任一名称选择该
终端的进程。
ps 的用户不能依赖其输出的精确字段宽度和间距,因为它们将随系统、HP-UX 版本和要显示的数据的不同而不
同。
将非标准选项与标准选项混合使用时,行为可能是非标准的。
相关内容
HP Process Resource Manager
-P 和-R 选项要求安装和配置可选的HP Process Resource Manager (PRM) 软件。有关如何配置HP PRM 的说明,
请参阅prmconfig(1) ;有关“进程资源组”的定义,请参阅prmconf (4) 。
如果未安装和配置HP PRM,但指定了-P 或-R ,则将显示一条警告消息,而且(对于-P )在prmid 和prmgrp
列中显示连字符(-)。
文件
/dev 终端设备文件的目录
/etc/passwd 用户ID 信息
/var/adm/ps_data 内部数据结构
另请参阅
kill(1)、nice(1)、acctcom(1M)、exec(2)、exit(2)、fork(2)、sysconf(2)、standards(5)、unistd(5)。
HP Process Resource Manager:《HP Process Resource Manager User’s Guide》中的prmconfig(1)、prmconf(4)。
符合的标准
ps:SVID2、XPG2、XPG3、XPG4
Section 1-166 Hewlett-Packard Company − 6 − HP-UX 11i Version 3: February 2007

论坛徽章:
0
6 [报告]
发表于 2008-08-06 15:24 |只看该作者
man bdf

bdf(1M) bdf(1M)
名称
bdf - 报告可用磁盘块的数目(Berkeley 版)
概要
/usr/bin/bdf [-b] [-i] [-l] [-s] [-t type [ filesystem file] ... ]
说明
bdf 命令显示指定filesystem (例如/dev/dsk/c0d0s0 )上或包含指定file (例如$HOME )的文件系统上的可用
磁盘空间量。如果未指定文件系统,则将输出通常挂接的所有文件系统上的可用空间。报告的数目以千字节为单
位。
选项
bdf 命令采用下列选项:
-b 显示有关文件系统交换的信息。
-i 报告已用和可用的i 节点数。
-l 仅显示本地文件系统(例如HFS 和CDFS 文件系统)的信息。
-s 在报告使用情况之前,不同步磁盘上的文件系统数据。请注意,由bdf 报告的数据可能
不是最新的。
-t type 报告给定type (例如, nfs 或hfs )的文件系统。
返回值
bdf 命令在成功时返回0(能够获取所有文件系统的状态),在失败时返回1(无法获取一个或多个文件系统的状
态)。
警告
如果文件系统的名称太长,则在两行上显示给定条目的输出。
bdf 命令不考虑为交换空间保留的任何磁盘空间,或者用于HFS 引导块(8 KB,每个文件系统1 KB)、HFS 超
级块(每个超级块为8 KB,每个磁盘柱面为1 KB)、HFS 柱面组块(每个块为1 KB - 8 KB,每个柱面组为1
KB)和i 节点(当前为每个i 节点保留128 字节)的任何磁盘空间。非HFS 文件系统可能具有该命令不予考虑
的其他项目。
作者
bdf 由加州大学伯克利分校开发。
文件
/etc/fstab 有关文件系统的静态信息。
/etc/mnttab 已挂接的文件系统表。
/dev/dsk/* 文件系统设备。
HP-UX 11i Version 3: February 2007 −1− Hewlett-Packard Company Section 1M-59
bdf(1M) bdf(1M)
另请参阅
df(1M)、fstab(4)、mnttab(4)。
Section 1M-60 Hewlett-Packard Company − 2 − HP-UX 11i Version 3: February 2007

论坛徽章:
0
7 [报告]
发表于 2008-08-06 15:24 |只看该作者


这叫人品啊~~


谢谢

论坛徽章:
0
8 [报告]
发表于 2008-08-06 15:25 |只看该作者
man df


df(1M) df(1M)
名称
df - 报告文件系统的可用磁盘块数
概要
/usr/bin/df [-F FStype] [-befgiklsnv] [-t|-P] [-o specific_options] [-V] [special directory]...
说明
df 命令通过检查在(一个或多个)超级块中保存的计数,显示可供文件系统使用的可用512 字节块数和可用i 节
点数。如果未指定special 或directory ,则显示所有已挂接文件系统上的可用空间。如果df 的参数是路径名,则
df 报告包含指定文件的文件系统。如果df 的参数是已卸除文件系统的special ,则显示已卸除文件系统中的可用
空间。
选项
df 采用下列选项:
-b 仅报告可用的千字节(KB) 数。
-e 报告可用的文件数。
-f 仅报告可用列表中的实际块计数(不报告可用i 节点)。
-F FStype 仅报告FStype 文件系统类型(请参阅fstyp(1M) )。
-g 报告statvfs(2) 中所述的整个结构。
-i 报告i 节点总数、可用i 节点数、已用i 节点数和正在使用的i 节点数百分比。
-k 以千字节(KB) 为单位报告分配信息。
-l 仅报告本地文件系统。
-n 报告文件系统名称。如果使用时没有其他任何选项,则显示挂接的文件系统类型的列
表。
-o specific_options
指定特定于每种文件系统类型的选项。specific_options 是用于命令的特定FStype 模块
的子选项的逗号分隔列表。有关进一步的详细信息,请参阅文件系统特定的手册条目。
-P 报告文件系统的名称、文件系统的大小、已用块数、可用块数、已用块数百分比和文件
系统层次结构在其下面出现的目录。
-s 在报告使用情况之前,不同步磁盘上的文件系统数据。请注意,由df 报告的数据可能
不是最新的。
-t 报告已分配的总块数和可用块数。
-v 报告已用块数的百分比、已用块数和可用块数。该选项不能与其他选项一起使用。
-V 回显完整的命令行,但是不执行任何其他操作。该命令行是通过合并用户指定的选项和
从/etc/fstab 派生的其他信息生成的。通过该选项,用户可以验证命令行。
Section 1M-132 Hewlett-Packard Company − 1 − HP-UX 11i Version 3: February 2007
df(1M) df(1M)
外部语言环境影响
环境变量
LC_MESSAGES 确定显示消息的语言。
如果在环境中未指定LC_MESSAGES 或将其设置为空字符串,则LANG 的值会用作每个未指定的变量或空变量
的缺省值。如果未指定LANG 或将其设置为空字符串,则使用缺省值“C”(请参阅lang(5) )而非LANG 。
如果任一国际化变量包含无效设置,则df 就会认为所有国际化变量都设置为“C”。请参阅environ(5) 。
国际代码集支持
支持单字节字符代码集和多字节字符代码集。
举例
报告所有已挂接的文件系统的可用磁盘块数:
df
报告所有已挂接的HFS 文件系统的可用磁盘块数:
df -F hfs
报告所有已挂接的NFS 文件系统的可用文件数:
df -F nfs -e
报告所有已挂接文件系统的已分配总块数和可用块数:
df -t
报告挂接为/usr 的文件系统的已分配总块数和可用块数:
df -t /usr
文件
/dev/dsk/* 文件系统设备
/etc/fstab 有关文件系统的静态信息
/etc/mnttab 已挂接的文件系统表
另请参阅
du(1)、df_hfs(1M)、df_vxfs(1M)、fsck(1M)、fstyp(1M)、statvfs(2)、fstab(4)、mnttab(4)。
符合的标准
df:SVID2、SVID3、XPG2、XPG3、XPG4
HP-UX 11i Version 3: February 2007 −2− Hewlett-Packard Company Section 1M-133

论坛徽章:
0
9 [报告]
发表于 2008-08-06 23:47 |只看该作者
docs.hp.com上面有命令手册。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP