586 class
587 The scheduling class of the process.
588
589
590 pri
591 The priority of the process. Higher numbers mean higher
592 priority.
593
594
595 opri
596 The obsolete priority of the process. Lower numbers mean
597 higher priority.
598
599
600 lwp
601 The decimal value of the lwp ID. Requesting this formatting
602 option causes one line to be printed for each lwp in the
603 process.
604
605
606 nlwp
607 The number of lwps in the process.
608
609
610 psr
611 The number of the processor to which the process or lwp is
612 bound.
613
614
615 pset
616 The ID of the processor set to which the process or lwp is
617 bound.
618
619
620 addr
621 The memory address of the process.
622
623
624 osz
625 The total size of the process in virtual memory, in pages.
652 The first 8 bytes of the base name of the process's
653 executable file.
654
655
656 ctid
657 The contract ID of the process contract the process is a
658 member of as a decimal integer.
659
660
661 lgrp
662 The home lgroup of the process.
663
664
665 dmodel
666 The data model of the process, printed in the same manner as
667 via pflags(1). The currently supported data models are
668 _ILP32 and _LP64.
669
670
671
672 Only comm and args are allowed to contain blank characters; all others,
673 including the Solaris implementation variables, are not.
674
675
676 The following table specifies the default header to be used in the
677 POSIX locale corresponding to each format specifier.
678
679
680
681
682 +------------------------------------------+
683 | Format Default Format Default |
684 |Specifier Header Specifier Header |
685 +------------------------------------------+
686 | args COMMAND ppid PPID |
687 | comm COMMAND rgroup RGROUP |
688 | etime ELAPSED ruser RUSER |
689 | group GROUP time TIME |
690 | nice NI tty TT |
691 | pcpu %CPU user USER |
692 | pgid PGID vsz VSZ |
693 | pid PID |
695
696
697 The following table lists the Solaris implementation format specifiers
698 and the default header used with each.
699
700
701
702
703 +------------------------------------------+
704 | Format Default Format Default |
705 |Specifier Header Specifier Header |
706 +------------------------------------------+
707 | addr ADDR projid PROJID |
708 | c C project PROJECT |
709 | class CLS psr PSR |
710 | f F rgid RGID |
711 | fname COMMAND rss RSS |
712 | gid GID ruid RUID |
713 | lgrp LGRP s S |
714 | lwp LWP sid SID |
715 | nlwp NLWP stime STIME |
716 | opri PRI taskid TASKID |
717 | osz SZ uid UID |
718 | pmem %MEM wchan WCHAN |
719 | pri PRI zone ZONE |
720 | ctid CTID zoneid ZONEID |
721 +------------------------------------------+
722
723 EXAMPLES
724 Example 1 Using ps Command
725
726
727 The command:
728
729
730 example% ps -o user,pid,ppid=MOM -o args
731
732
733
734
735 writes the following in the POSIX locale:
736
737
738 USER PID MOM COMMAND
739 helene 34 12 ps -o uid,pid,ppid=MOM -o args
740
807 NOTES
808 Things can change while ps is running. The snapshot it gives is true
809 only for a split-second, and it might not be accurate by the time you
810 see it. Some data printed for defunct processes is irrelevant.
811
812
813 If no options to select processes are specified, ps reports all
814 processes associated with the controlling terminal. If there is no
815 controlling terminal, there is no report other than the header.
816
817
818 ps -ef or ps -o stime might not report the actual start of a tty login
819 session, but rather an earlier time, when a getty was last respawned on
820 the tty line.
821
822
823 ps is CSI-enabled except for login names (usernames).
824
825
826
827 June 13, 2017 PS(1)
|
586 class
587 The scheduling class of the process.
588
589
590 pri
591 The priority of the process. Higher numbers mean higher
592 priority.
593
594
595 opri
596 The obsolete priority of the process. Lower numbers mean
597 higher priority.
598
599
600 lwp
601 The decimal value of the lwp ID. Requesting this formatting
602 option causes one line to be printed for each lwp in the
603 process.
604
605
606 lwpname
607 The name of the lwp, if set. Requesting this formatting
608 option causes one line to be printed for each lwp in the
609 process.
610
611
612 nlwp
613 The number of lwps in the process.
614
615
616 psr
617 The number of the processor to which the process or lwp is
618 bound.
619
620
621 pset
622 The ID of the processor set to which the process or lwp is
623 bound.
624
625
626 addr
627 The memory address of the process.
628
629
630 osz
631 The total size of the process in virtual memory, in pages.
658 The first 8 bytes of the base name of the process's
659 executable file.
660
661
662 ctid
663 The contract ID of the process contract the process is a
664 member of as a decimal integer.
665
666
667 lgrp
668 The home lgroup of the process.
669
670
671 dmodel
672 The data model of the process, printed in the same manner as
673 via pflags(1). The currently supported data models are
674 _ILP32 and _LP64.
675
676
677
678 Only comm, lwpname, and args are allowed to contain blank characters;
679 all others, including the Solaris implementation variables, are not.
680
681
682 The following table specifies the default header to be used in the
683 POSIX locale corresponding to each format specifier.
684
685
686
687
688 +------------------------------------------+
689 | Format Default Format Default |
690 |Specifier Header Specifier Header |
691 +------------------------------------------+
692 | args COMMAND ppid PPID |
693 | comm COMMAND rgroup RGROUP |
694 | etime ELAPSED ruser RUSER |
695 | group GROUP time TIME |
696 | nice NI tty TT |
697 | pcpu %CPU user USER |
698 | pgid PGID vsz VSZ |
699 | pid PID |
701
702
703 The following table lists the Solaris implementation format specifiers
704 and the default header used with each.
705
706
707
708
709 +------------------------------------------+
710 | Format Default Format Default |
711 |Specifier Header Specifier Header |
712 +------------------------------------------+
713 | addr ADDR projid PROJID |
714 | c C project PROJECT |
715 | class CLS psr PSR |
716 | f F rgid RGID |
717 | fname COMMAND rss RSS |
718 | gid GID ruid RUID |
719 | lgrp LGRP s S |
720 | lwp LWP sid SID |
721 | lwpname LWPNAME stime STIME |
722 | nlwp NLWP taskid TASKID |
723 | opri PRI uid UID |
724 | osz SZ wchan WCHAN |
725 | pmem %MEM zone ZONE |
726 | pri PRI zoneid ZONEID |
727 | ctid CTID |
728 +------------------------------------------+
729
730 EXAMPLES
731 Example 1 Using ps Command
732
733
734 The command:
735
736
737 example% ps -o user,pid,ppid=MOM -o args
738
739
740
741
742 writes the following in the POSIX locale:
743
744
745 USER PID MOM COMMAND
746 helene 34 12 ps -o uid,pid,ppid=MOM -o args
747
814 NOTES
815 Things can change while ps is running. The snapshot it gives is true
816 only for a split-second, and it might not be accurate by the time you
817 see it. Some data printed for defunct processes is irrelevant.
818
819
820 If no options to select processes are specified, ps reports all
821 processes associated with the controlling terminal. If there is no
822 controlling terminal, there is no report other than the header.
823
824
825 ps -ef or ps -o stime might not report the actual start of a tty login
826 session, but rather an earlier time, when a getty was last respawned on
827 the tty line.
828
829
830 ps is CSI-enabled except for login names (usernames).
831
832
833
834 August 22, 2018 PS(1)
|