コマンド・リファレンス第 2 巻 (d から h) AIX® バージョン7.1...

886
AIX ® バージョン 7.1 コマンド・リファレンス 第 2 (d から h) SC88-8367-00 (英文原典:SC23-6710-00)

Transcript of コマンド・リファレンス第 2 巻 (d から h) AIX® バージョン7.1...

  • AIX 7.1

    2 (d h)

    SC88-8367-00(SC23-6710-00)

  • AIX 7.1

    2 (d h)

    SC88-8367-00(SC23-6710-00)

  • 853

    AIX 7.1

    SC23-6710-00AIX Version 7.1

    Commands Reference, Volume 2, d - h

    11 2010.9

    Copyright IBM Corporation 2010.

  • . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ixISO 9000. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiiSingle UNIX Specification 32 64 . . . . . . . . . . . . . xii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii

    () . . . . . . . . . . . . . . . . . . . . . . . . . . . 1dacinet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1dadmin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4dbts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8dbx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10dc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78dcp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80dd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87defaultbrowser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93defif . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94definet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96defragfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96defvsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99deleteX11input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102delta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103deroff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106detachrset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107devinstall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108devnm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110df . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111dfmounts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115dfpd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117dfsck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118dfshares . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120dhcpaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122dhcpcd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123dhcpcd6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125dhcprd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127dhcpsconf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129dhcpsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131dhcpsdv6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132diag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134diaggetrto . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137diagrpt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139diagsetrto . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139diction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141diff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142diff3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145diffmk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 147dig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149digest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155dircmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155

    Copyright IBM Corp. 2010 iii

  • dirname . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158diskusg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160dispgid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162dispuid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163dist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164dmadm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168dmf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170dmpuncompress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204dms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205dms_enable_fs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208dnssec-keygen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209dnssec-makekeyset . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211dnssec-signkey . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212dnssec-signzone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214dodisk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216domainname . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217domlist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218dosdel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219dosdir . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220dosformat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222dosread . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224doswrite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226dp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 227dpid2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228dping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230drm_admin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232drmgr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235drslot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237dscreen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239dshbak . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241dsh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243dslpaccept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251dslpaccess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252dslpadmin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253dslpdisable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258dslpenable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259dslpprotocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260dslpreject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262dslpsearch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263dspcat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264dspmsg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266dtaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267dtappintegrate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270dtlogin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271dtscript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297dtsession . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298dtterm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 308du . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321dumpcheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 323dumpctrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325

    iv AIX 7.1 2

  • dumpfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331echo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332ed red . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 334edit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371edquota . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379efsenable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 382efskeymgr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384efskstoldif . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388efsmgr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390egrep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393eimadmin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395elogevent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404emgr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406emstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412emsvcsctrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417enotifyevent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419enq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421enroll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431enscript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431entstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438env . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443epkg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445eqn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453errclear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455errctrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458errdead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463errdemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465errinstall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468errlogger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471errmsg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471errpt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474errstop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479errupdate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 480ethchan_config . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 489ewallevent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490ex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492execerror . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 494execrset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 495expand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496expfilt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 498explain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 499explore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 500exportfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501exportvg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508expr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 510exptun . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514extendlv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515extendvg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 518f . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520factor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523fc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524

    v

  • fccheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 527fcclear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529fcdecode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531fcdispfid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 533fcfilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534fcinit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536fclogerr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540fcpushstk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547fcreport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554fcstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555fcstkrpt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 559fcteststk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561fddistat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 563fdformat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566fdpr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567fencevsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574ff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576fg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578fgrep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581filemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584fileplace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597find . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 600finger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 610fingerd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613fish . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 614flcopy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 616flush-secldapclntd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617fmt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 617fold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 620folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 623format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 625fortune . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 628forw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 628fpm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633frcactrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637from . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 640fsck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641fsck_cachefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646fsdb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646fsplit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659ftp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660ftpd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674fuser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 682fwtmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 684fxfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686gated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 700gdc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 704gencat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 707gencopy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 708gencore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709

    vi AIX 7.1 2

  • genfilt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 710geninstall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 713genkex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 715genkld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 716genld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 717gennames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 718gensyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719gentun . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 720genxlt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 723get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 725getconf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 735getdev . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 744getdgrp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 746getea . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 750getopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 751getopts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 753getrunmode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 755getsecconf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 756getsyslab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 757gettable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 757gettrc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 758getty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 759glbd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 762gprof . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 765grap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 772greek . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 776grep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 777groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 780grpck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 781grpsvcsctrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 784gssd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 787ha_star . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 788ha.vsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 789ha_vsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 793haemd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 794haemd_HACMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 794haemqvar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 795haemtrcoff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 800haemtrcon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 802haemunlkrm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 804hagsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 806hagsns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 809hagsvote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811halt fasthalt . . . . . . . . . . . . . . . . . . . . . . . . . . . . 814hangman . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 815hatsoptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 816hash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 818head . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 819help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 820host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 821host9 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 823hostent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 825

    vii

  • hostid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 828hostmibd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 829hostname . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831hosts2ldif . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 832hp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 833hplj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 834hpmcount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 835hpmstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 841hps_dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 846htable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 848hty_load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 849hyphen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 850

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 853 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 855

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 857

    viii AIX 7.1 2

  • AIX ( 2 ) d h AIX CD

    ()

    1

    Web-based System Manager System Management InterfaceTool (SMIT)

    ()

    Monospace

    ()

    Copyright IBM Corp. 2010 ix

  • ()

    ([ ]) ({ }) (|) unget :

    unget [ -rSID ] [ -s ] [ -n ] File ...

    v (bold)

    v (italics) Files Directories

    v ([ ]) v ({ }) v v (|) 1 [ a | b ] a b 1 {a | b } a b 1

    v ( ... ) v ( - )

    () -w lslpp installp

    lslpp -w /usr/sbin/installp

    File Fileset Type-----------------------------------------------------------------/usr/sbin/installp bos.rte.install File

    installp

    lslpp -w "*installp*"

    x AIX 7.1 2

  • File Fileset Type-----------------------------------------------------------------/usr/sbin/installp bos.rte.install File/usr/clvm/sbin/linstallpv prpq.clvm File/usr/lpp/bos.sysmgt/nim/methods/c_installp

    bos.sysmgt.nim.client File

    &

    Command&

    cron at batch

    $

    ls Enter

    $ ls

    Command Flag(s) Parameter

    ls -l (long) ls -l

    $ ls -l

    /usr/bin

    $ ls -l /usr/bin

    AIX

    v v - ()

    xi

  • v ; () v \ () 1

    $ cat /usr/ust/mydir/mydata > \/usr/usts/yourdir/yourdata

    (telnet )

    (BourneC Korn)

    ( Ctrl-C Alt-Pause)

    ISO 9000ISO 9000

    Single UNIX Specification 32 64 5.2 AIX UNIX The Open Group's Single UNIX Specification Version 3 (UNIX 03) 5.2 AIX UNIX The Open Group's UNIX

    03 specificationhttp://www.unix.org/

    v AIX 6.1 1 v AIX 6.1 3 v AIX 6.1 4 v AIX 6.1 5 v AIX 6.1 6 v AIX Version 6.1 Files Referencev

    xii AIX 7.1 2

  • v v AIX 5L 5.3 AIX v AIX Version 6.1 Network Information Services (NIS and NIS+) Guidev v AIX Version 6.1 Performance Tools Guide and Referencev v v v AIX Version 6.1 Technical Reference: Base Operating System and Extensions Volume 1v AIX Version 6.1 Technical Reference: Base Operating System and Extensions Volume 2v AIX Version 6.1 Technical Reference: Communications Volume 1v AIX Version 6.1 Technical Reference: Communications Volume 2v AIX Version 6.1 Technical Reference: Kernel and Subsystems Volume 1v AIX Version 6.1 Technical Reference: Kernel and Subsystems Volume 2v AIX 6.1 Web-based System Manager v Performance Toolbox Version 2 and 3 for AIX: Guide and Reference

    xiii

  • xiv AIX 7.1 2

  • ()

    dacinet

    CAPP/EAL4+ TCP

    dacinet aclflush

    dacinet aclclear Service | Port

    dacinet acladd Service | [-] addr [/prefix_length] [u:user | uid | g:group | gid]

    dacinet acldel Service | [-] addr [/prefix_length] [u:user | uid | g:group | gid]

    dacinet aclls Service | Port

    dacinet setpriv Service | Port

    dacinet unsetpriv Service | Port

    dacinet lspriv

    dacinet TCP dacinet

    acladd ACL DACinet acladd

    [-]addr[/length][u:user|uid| g:group|gid]

    addr DNS IP v4/v6 "-" ACL

    length addr length addr

    u:user|uid IDuid

    g:group|gid IDgid

    aclclear ACL

    Copyright IBM Corp. 2010 1

  • acldel ACL DACinet dacinet acldel ACL ACL acldel

    [-]addr[/length][u:user|uid| g:group|gid]

    addr DNS IP v4/v6 "-" ACL

    length addr length addr

    u:user|uid IDuid

    g:group|gid IDgid

    aclflush ACL TCP (root ) 1024

    aclls ACL dacinet aclls 0 ACL ACL ACL ACL 1 user|group@host|subnet

    lspriv (1024 )

    setpriv 1024

    unsetpriv

    /usr/sbin/dacinet dacinet

    dadmin

    DHCP

    2 AIX 7.1 2

  • dadmin [ -?] [ -v] [ -h Hostname] [ -n interval] [ -f] -d IpAddress | [ -x] -i | [ -x] -s | -t on|off|Value |-q IpAddress | -r IpAddress | -p IpAddress | -c Clientld

    dadmin DHCP DHCP IP DHCP IP IP

    dadmin DHCP IP

    IP dadmin IP IP dadmin IP DNS A IP

    dadmin IP IP IP IP DNS A

    dadmin ( DHCP )LOG_NONELOG_SYSERRLOG_OBJERRLOG_PROTOCOL LOG_PROTERR ()LOG_WARN LOG_CONFIG ()LOG_EVENT LOG_PARSEERR ()LOG_ACTIONLOG_INFMLOG_ACNTINGLOG_STATLOG_TRACE LOG_STARTLOG_RTRACE

    : LOG_START 0x0800 0x1FFF

    -c Clientld DHCP Clientld DHCP 16 DHCP TYPE-STRING

    -d IpAddress IP IpAddress FREE

    -f -d -f IP

    -h Hostname DHCP Hostname IP

    -i DHCP

    () 3

  • -n interval -p IpAddress IpAddress

    -q IpAddress IP -r IpAddress IP Free -s DHCP -t on|off|Value DHCP 16

    Value 10 16 on off

    -v (verbose) -x dadmin 1 -x DHCP

    -i -s DHCPv6 6

    -?

    0 >0

    dadmin DHCP .rhosts DHCP dadmin

    /usr/sbin/dadmin dadmin

    .rhosts AIX Version 6.1 Files ReferenceDHCP Server Configuration File

    dhcpsd

    TCP/IP -

    TCP/IP

    date

    4 AIX 7.1 2

  • root /usr/bin/date [ -n ] [ -u ] [ Date] [ +FieldDescriptor ... ]

    /usr/bin/date [ -u ] [ +FieldDescriptor ... ]

    root () /usr/bin/date [ -a [ + | - ]sss[.fff ]

    :

    date + () root date

    Date

    v mmddHHMM[YYyy]v mmddHHMM[yy]

    Date

    mm dd HH (24 )MM YY 2

    : 2 69 99 20 1969 1999 00 68 21 2000 2068

    yy 2 : date 4 4 date "YYyy" (1970 2037 )

    (CUT)

    date + () % () % %% ( 2 ) date date

    () 5

  • -a [ + | - ]sss[.fff ] sss.fff (fff )

    -n

    -u (CUT)

    %a %A %b %B %c %C 4 2 10 (00-99) 100

    %d 10 (01 31)1 10 0 2

    %D %m/%d/%y %e 10 (1 31)1 10 2

    %h (%b )%H (24 ) 10 (00 23)%I (12 ) 10 (01 12)%j 10 (001 366)%k 24 (0 23) %m 10 (01 12)%M 10 (00 59)%n %p AM PM %r 12 (01 12) AM/PM POSIX %I:%M:%S

    %p %S 10 (00 59)%s (CUT) 1970 1 1 %t %T 24 (00 23) HH:MM:SS %u 1 7 10 ( =7) %w

    %U 10 (00 53 ) (

    ) 0 %V 01 53 10 ()

    1 1 4 01 53

    %w 0 6 10 ( = 0) %u

    %W 10 (00 53) %x %X %y 2 (00 99)%Y 4 10 %Z

    6 AIX 7.1 2

  • %% % ()

    %E %O AIX Version 6.1 Files ReferenceLocale Definition Source File FormatLC_TIME Category (eraera_yearera_d_fmtalt_digits )

    %Ec %EC () %Ex %EX %Ey %EC () %EY %Od %Oe %OH (24 ) %OI (12 )

    %Om %OM %OS %Ou ( =1)%OU

    %OV

    %Ow ( =0)%OW

    %Oy (%C )

    0 >0

    RBAC Trusted AIX : lssecattr getcmdattr

    1.

    date

    () 7

  • 2.

    date 0217142590

    CST Sat Feb 17 14:25:00CST 1990

    : root

    3.

    date +"%r %a %d %h %y (Julian Date: %j)"

    2

    02:25:03 PM Fri 17 Feb 90 (Julian Date: 048)

    date

    LANG LC_ALL (LC_ )

    LC_ALL LANG LC_

    LC_CTYPE ()

    LC_MESSAGES LC_TIME date NLSPATH LC_MESSAGES TZ -u

    TZ -u

    environment

    localtime strftime time

    AIX Version 6.1 Files ReferenceLC_TIME Category for the Locale Definition Source File Format

    AIX 6.1

    dbts

    dbts [-v] ThinServer

    8 AIX 7.1 2

  • dbts

    {COSI name}_{thin server name}-debug

    swts rmcosi dbts dbts NIM

    -v dbts

    0 >0

    : dbts root

    1. cosi1 lobo

    dbts lobo

    cosi1_lobo-debug lobo

    /usr/sbin/dbts

    /etc/niminfo NIM

    lsts mkcosi mkts nim nim_clients_setup nim_master_setup nimconfig rmts swts

    () 9

  • dbx

    dbx [ -a ProcessID ] [ -B DebugFile ] [ -c CommandFile ] [ -I Directory ] [ -E DebugEnvironment ] [ -poldpath=newpath:...| pathfile ] [ -u ] [ -F ] [ -L ] [ -r ] [ -x ] [ -v ] [ -C CoreFile | ObjectFile [CoreFile ] ]

    dbx CC++ FORTRAN

    v v v 1 v

    ObjectFile () dbx -g ()

    : cc -g -g strip xcoff dbx dbx -O dbx

    -c dbx $HOME .dbxinit .dbxinit .dbxinit $HOME .dbxinit .dbxinit $HOME .dbxinit

    ObjectFile dbx a.out core CoreFile dbx ObjectFile dbx

    -B .stab .stab

    10 AIX 7.1 2

  • -B .stab -bstabsplit -B stabsplit dbx .stab

    dbx C FORTRAN dbx

    * () ^ () [ ] () ( ) () . ()

    C -> () ()

    & () .. ( 2 )

    n[1..4]

    =-*/ ()div ()modexp () - I bitand xor ~ ORANDNOTII&& = < > != = == (typename),sizeof

    stop trace

    Typename (Expression)Expression |Typename (Typename)Expression 3 x 97

    (dbx) print x97(dbx) print char (x), x \ char, (char) x, xa a a 97

    dbx Korn vi vi-like emacs emacs

    dbx set -o set edit vi-style set edit vi set -o vi

    EDITOR

    () 11

  • dbx .dbxhistory DBXHISTFILE $HOME/.dbxhistory

    dbx 128 DBXHISTSIZE

    -a ProcessID ID ps dbx ptrace SIGTRAP SIGTRAP

    -BDebugFile -c CommandFile dbx

    $HOME $HOME $HOME dbx source

    -C CoreFile dbx ()-r -a

    -E DebugEnvironment -p oldpath=newpath:...| pathfile core

    oldpath=newpath oldpath (core Loader Section) newpath oldpath newpath -p 1 1 -p

    -F dbx dbx dbx whereis i i

    -L

    12 AIX 7.1 2

  • -I Directory ( i) Directory

    v

    v v

    -r dbx

    : -r dbx

    -u @ () dbx

    -v dbx

    -x FORTRAN dbx _ () dbx xxx xxx_

    1. dbx samp.c C -g samp

    $ cc -g samp.c -o samp

    samp

    $ sampBus Error - core dumped

    $ dbx samp

    dbx version 3.1Type help for help.reading symbolic information . . . [using memory image in core]

    25 x[i] = 0;(dbx) quit

    2. dbx looper.c

    () 13

  • main(){

    int i,x[10];

    for (i = 0; i < 10;);}

    i looper.c -g

    $ cc -g looper.c -o looper

    looper dbx :

    a. dbx looper ID looper X Window X Window

    ps -u UserID

    UserID ID

    PID TTY TIME COMMAND68 console 0:04 sh467 lft3 10:48 looper

    looper ID 467

    b. dbx looper

    $ dbx -a 467

    Waiting to attach to process 467 . . .Successfully attached to /tmp/looper.dbx is initializingType help for help.reading symbolic information . . .

    attached in main at line 55 for (i = 0; i < 10;);(dbx)

    dbx

    3. objfile

    $dbx -I /home/user/src -I /home/group/srcobjfile

    dbx use use -I

    4. -r

    $ dbx -r samp

    14 AIX 7.1 2

  • Entering debug program . . .dbx version 3.1Type help for help.reading symbolic information . . .bus error in main at line 25

    25 x[i] = 0;(dbx) quit

    -r

    5.

    dbx -E LIBPATH=/home/user/lib -E LANG=Ja_JP objfile

    6.

    dbx -a 467 -B debug_samp -p /usr/lib/=./dir/debug_libs/

    7.

    dbx -B /usr/debug_samp.stab debug_samp

    dbx : dbx

    / ? addcmd dbx alias dbx assign attribute call case dbx catch

    clear cleari condition cont

    corefile coremap delcmd dbx delete tskip

    detach disable display memory down dump edit enable fd file frame func goto

    () 15

  • gotoi handler pthread atfork help dbx ignore

    kthread

    list listi malloc malloc map move multproc mutex mutex mutex next nexti onceblock once block plugin pluginload pluginunload print

    proc prompt dbx quit dbx registers

    rerun resource pthread return

    rwlock rwlocks run screen dbx X Window set dbx sh skip source dbx status tskip

    step 1 stepi 1 stophwp stop stopi thread tls TLS tnext tnexti trace tracehwp tracei

    16 AIX 7.1 2

  • tskip tstep 1 tstepi 1 tstop tstophwp tstopi ttrace ttracehwp ttracei unalias unset up use whatis where whereis ID which ID

    /

    / [ RegularExpression [ / ] ]

    / RegularExpression / dbx

    :

    1. 12

    / 12

    2.

    /

    ? () regcmp

    ?

    ? [ RegularExpression [ ? ] ]

    ? RegularExpression ? dbx

    :

    1. z

    ?z

    2.

    ?

    / () regcmp

    () 17

  • addcmd

    addcmd { Number... | all } "commands_string"

    addcmd dbx dbx "commands_string" (;) dbx dbx Number all dbx

    :

    all dbx

    :

    1. 1 where

    addcmd 1 "where"

    2. 2 registers

    addcmd 2 "registers"

    3. 3 where registers

    addcmd 3 "where;registers"

    clear delcmd delete disable enable stop status trace AIX 6.1

    alias

    alias [ Name [ [ (Arglist) ] String | Subcommand ] ]

    alias dbx Name String Name dbx alias

    :

    1. rr rerun

    alias rr rerun

    2. printandstep print n step 2

    alias printandstep "print n; step"

    3. alias

    (dbx) alias px(n) "set $hexints; print n; unset $hexints"(dbx) alias a(x,y) "print symname[x]->symvalue._n_n.name.Id[y]"(dbx) px(126)0x7e

    18 AIX 7.1 2

  • px 16

    assign

    assign Variable=Expression

    assign Expression Variable

    :

    1. x 5

    assign x = 5

    2. x y

    assign x = y

    3. z z

    assign z = z

    4. B false

    assign B = false

    5. Y Hello World

    assign Y = "Hello World"

    6. dbx $unsafeassign

    set $unsafeassign

    attribute

    attribute [ AttributeNumber ... ]

    attribute AttributeNumber mutex

    attr $aAttributeNumber obj_addr type thr mutex cond

    mutexstate valid inval stack scope

    sys pro

    prio sched schedpolicy

    fiforr () other

    () 19

  • p-shar mutex mutex yes no

    protocol mutex mutex no_prioprioprotect

    clock realtime monotonic

    :

    1. dbx print

    2. POSIX

    :

    1.

    attribute

    attr obj_addr type state stack scope priosched p-shar$a1 0x200035c8 mutex valid no$a2 0x20003628 cond valid no$a3 0x200037c8 thr valid 57344 sys 126 other$a4 0x200050f8 thr valid 57344 pro 126 other

    2. 1 3

    attribute 1 3

    attr obj_addr type state stack scope priosched p-shar$a1 0x200035c8 mutex valid no$a3 0x200037c8 thr valid 57344 sys 126 other

    dbx condition mutex print thread

    AIX 6.1 mutex

    call

    call Procedure ( [ Parameters ] )

    call Procedure

    : call

    : dbx

    (dbx) call printf("hello")hello

    20 AIX 7.1 2

  • printf

    case

    case [ default | mixed | lower | upper ]

    case dbx CC++ FORTRAN

    case

    :

    default mixed lower upper

    :

    1.

    case

    2. dbx

    case mixed

    3. dbx

    case upper

    catch

    catch [ SignalNumber | SignalName ]

    catch SignalNumber SignalName /SIG SignalNumber SignalName SIGHUPSIGCLDSIGALARMSIGKILL

    :

    1. dbx

    catch

    2. SIGALARM

    catch SIGALARM

    ignore

    () 21

  • clear

    clear SourceLine

    clear SourceLine 2

    v v : ()

    : 19

    clear 19

    cleari delete AIX 6.1

    cleari

    cleari Address

    cleari Address

    :

    1. 0x100001b4

    cleari 0x100001b4

    2. main()

    cleari &main

    clear delete AIX 6.1

    condition condition [ wait | nowait | ConditionNumber ... ]

    condition 1 1 ConditionNumber condition condition

    cv $cConditionNumber obj_addr clock num_wait waiters

    22 AIX 7.1 2

  • : dbx print

    :

    wait nowait

    :

    1.

    condition

    2.

    condition wait

    3. 3

    condition 3

    cv obj_addr num_wait waiters$c3 0x20003290 0

    attribute mutex print thread

    AIX 6.1

    cont

    cont [ SignalNumber | SignalName ]

    cont SignalNumber SignalName SIG

    1.

    cont

    2. SIGQUIT

    cont SIGQUIT

    dbx detach dbx goto dbx next dbx skip dbx step

    () 23

  • corefile corefile

    coremap coremap [ stack | data | sdata | mmap | shm | loader ]

    coremap coremap

    :

    1.

    coremap shm

    2.

    coremap mmap

    3.

    coremap loader

    4.

    coremap

    corefile

    delcmd

    delcmd EventNumber { Number... | all }

    delcmd dbx dbx Number all dbx EventNumber dbx

    :

    all dbx

    :

    1. 2 dbx

    delcmd 2 all

    2. 3 dbx 1

    delcmd 3 1

    3. 2 dbx 1 2

    delcmd 2 1 2

    addcmd clear delete disable enable stop status trace AIX 6.1

    24 AIX 7.1 2

  • delete

    delete { Number ... | all | tskip [for $tthreadnumber]}

    delete tskip Number all dbx status

    tskip tskip tskip status tskip

    all for $t threadnumber

    1.

    delete all

    2. 4

    delete 4

    3. 3 tskip

    delete tskip for $t3

    4. tskip

    delete tskip

    clear cleari status tskip AIX 6.1

    detach

    detach [ SignalNumber | SignalName ]

    detach

    v SignalName v SignalNumber

    SIG

    () 25

  • 1. dbx

    detach

    2. dbx SIGREQUEST

    detach SIGREQUEST

    dbx

    disable disable { Number ... all }

    disable Number all dbx status

    :

    all

    :

    1.

    disable all

    2. 4

    disable 4

    29enable 25delete 54status

    AIX 6.1

    display memory { Address,Address/ | Address/ [ Count ] } [ Mode ] [ >File ]

    display memory

    v 2 Address 2

    v 1 Address Address Count

    26 AIX 7.1 2

  • & () + ()- () * ()

    v Mode Mode Mode X

    b 1 8 c 1 1 d 10 D 10 Df 10 DDf 4 10 f g h 1 16 Hf 10 i lld 8 10 llu 8 10 llx 8 16 llo 8 8 o 8 O 8 p / 16 q s null x 16 X 16

    :

    >File

    :

    1. 0x3fffe460 1 16

    0x3fffe460 / X

    2. y 2

    &y / 2c

    3. FORTRAN a_string 6 8

    &a_string + 5, &a_string + 7/c

    AIX 6.1

    down

    down [ Count ]

    () 27

  • down Count Count 1

    :

    1. 1

    down

    2. 3

    down 3

    up where AIX 6.1

    dump

    dump [ Procedure | "PATTERN" ] [ >File ]

    dump Procedure (.) Procedure "PATTERN" "PATTERN" *? [] "PATTERN" () >File

    :

    >File

    :

    1.

    dump

    2. add_count

    dump add_count

    3. s

    dump "s*"

    4. var.list

    dump > var.list

    AIX 6.1

    edit

    edit [ Procedure | File ]

    edit File Procedure Procedure

    28 AIX 7.1 2

  • vi EDITOR

    :

    1.

    edit

    2. main.c

    edit main.c

    3. do_count()

    edit do_count

    list vi vedit AIX 6.1

    enable enable { Number ... all }

    enable Number all dbx status

    :

    all

    :

    1.

    enable all

    2. 4

    enable 4

    26disable 25delete 54status

    AIX 6.1

    fd fd [ raw ] [ start [ end ] ]

    fd raw 16 start end

    () 29

  • 1 1 2

    :

    1. 16

    fd raw

    2. 3 5

    fd 3 5

    file

    file [ File ]

    file File File File dbx use File file file

    :

    1. main.c

    file main.c

    2.

    file

    func AIX 6.1

    frame

    frame [ num ]

    frame num ( 0 ) n main n-1

    :

    1. 2

    frame 2

    2.

    frame

    30 AIX 7.1 2

  • up down AIX 6.1

    func

    func [ Procedure ]

    func Procedure Procedure

    :

    1. do_count

    func do_count

    2.

    func

    file AIX 6.1

    goto

    goto SourceLine

    goto $unsafegoto set

    : 6

    goto 6

    cont gotoi set

    gotoi

    gotoi Address

    gotoi Address

    : 0x100002b4

    gotoi 0x100002b4

    goto

    handler handler { atfork | cancel_cleanup [ all | pthread id ] }

    () 31

  • handler pthread_atfork pthread_cleanup_push atfork atfork preparentchild atfork (POSIX atfork )cancel_cleanup pthread pthread id pthread all pthread

    :

    1. atfork

    handler atfork

    2. pthread

    handler cancel_cleanup

    3. $t2 pthread

    handler cancel_cleanup 2

    help

    help [ Subcommand | Topic ]

    help dbx Subcommand help Topic help help dbx

    startup dbx execution dbx breakpoints dbx files dbx data dbx machine dbx environment dbx dbx threads dbx dbx scope dbx set_variables dbx usage dbx

    :

    1. dbx

    help

    2. dbx list

    help list

    3. dbx set_variables

    32 AIX 7.1 2

  • help set_variables

    ignore

    ignore [ SignalNumber | SignalName ]

    ignore

    v SignalNumber v SignalName

    SIG

    SignalNumber SignalName SIGHUPSIGCLDSIGALRMSIGKILL dbx SIGTRAP

    : dbx

    ignore alrm

    catch AIX 6.1

    kthread kthread [ raw ] [ info | ru ] [ tid ]

    kthread raw 16 ID dbx info ru ti_ru

    60thread

    :

    1.

    kthread

    dbx () ID

    kthread info tid

    2. 16

    kthread raw ru

    () 33

  • list

    list [ Procedure | SourceLine-Expression [ ,SourceLine-Expression ] ]

    list 2

    v Procedure

    list

    v SourceLine-Expression

    SourceLine-Expression + () - () $ () SourceLine @ () SourceLine

    2 ()

    2 1

    list $listwindow

    $listwindow $listwindow 10

    :

    1. 1 10

    list 1,10

    2. main 10 $listwindow

    list main

    3. 11

    list $-5,$+5

    4. SourceLineExpression

    (dbx) list $4 {

    (dbx) list 55 char i = 4;

    (dbx) list sub23 char *sub(s,a,k)24 int a;25 enum status k; . . .

    (dbx) move25(dbx) list @ -223 char *sub(s,a,k)

    34 AIX 7.1 2

  • edit listi move AIX

    6.1

    listi listi [ Procedure | at SourceLine | Address [ , Address ] ]

    listi

    v Procedure listi

    v at SourceLine listi SourceLine : ()

    v Address 2 ()

    listi $listwindow set $listwindow=Value

    : dbx POWER PowerPC dbx

    dbx set $instructionset $mnemonics dbx set

    :

    at SourceLine

    :

    1. 10 $listwindow

    listi

    2. 10

    listi at 10

    3. sample.c 5

    listi at "sample.c":5

    4. 0x10000400 0x10000420

    listi 0x10000400, 0x10000420

    list set AIX 6.1 dbx

    () 35

  • malloc malloc [ > File ]

    malloc malloc

    malloc [ allocation [ { address | size | heap | pid | tid | time } { "" "!=" | ~= ]} Value] ] [ > File ]

    malloc allocation attribute RELOP value

    malloc [ freespace [ { address | size | heap } { "" | "!=" | ~=]} Value ] ] [ > File ]

    malloc freespace attribute RELOP value

    : ~= address

    malloc address

    malloc

    :

    > File

    AIX 6.1 malloc

    map

    map { [Format] [ entry ModuleNumber [ , ModuleNumber ] | Address | SymbolName ] [for$tthreadnumber] [ > File ] }

    map TLS TLS TLS

    v ModuleNumber v 2 ModuleNumber v Address v SymbolName

    36 AIX 7.1 2

  • map

    Format Format

    abbr 1

    normal TLS TLS TLS

    raw 1 TLS TLS TLS TLS

    verbose TLS TLS TLS TLS

    Format DBX $mapformat Format $mapformat DBX

    TLS TLS

    :

    > File entry ModuleNumber [ , ModuleNumber ]

    for $t threadnumber

    :

    1.

    map abbr

    2. 3 5

    map verbose entry 3,5

    3. 0x20001000

    map 0x20001000

    4. foo

    map foo

    5. 2 TLS

    () 37

  • map normal for $t2

    $mapformat AIX 6.1 dbx

    move

    move SourceLine

    move SourceLine @ ()

    SourceLine : ()

    :

    1. 12

    move 12

    2. sample.c 5

    move "sample.c":5

    list AIX 6.1

    multproc

    multproc [ on | parent | child | off ]

    multproc fork fork dbx on fork dbx dbx parent child fork off dbx fork off multproc

    dbx X Window dbx ID (pid) X Window dbx X Window fork dbx

    v dbx X Window v X Window dbx $xdisplay $xdisplay DISPLAY dbx set Name=Expression

    v /tmp dbx X Window

    38 AIX 7.1 2

  • v X Window

    $xdisplay X Window $xdisplay X Window

    dbx

    Warning: dbx subcommand multiproc fails. dbxcontinued with multproc disabled.

    .Xdefaults dbx_term

    :

    on off

    :

    1.

    multproc

    2.

    multproc on

    3.

    multproc off

    screen fork AIX 6.1

    mutex

    mutex [ lock | unlock | thnum | utid | MutexNumber ... ]

    mutex mutex MutexNumber mutex mutex mutex mutex

    mutex

    mutex mutex $mMutexNumber type mutex non-rec () recursi () fast

    obj_addr mutex lock mutex mutex yes no

    owner mutex mutex

    blockers mutex

    () 39

  • : dbx print mutex

    :

    lock mutex unlock mutex thnum mutex utid ID ID

    mutex

    :

    1. mutex

    mutex

    2. mutex

    mutex lock

    3. mutex 456

    mutex 4 5 6

    mutex obj_addr type lock owner blockers$m4 0x20003274 non-rec no$m5 0x20003280 recursi no$m6 0x2000328a fast no

    4. 1 mutex

    mutex thnum 1

    5. 0x0001 ID mutex

    mutex utid 0x0001

    attribute condition print thread

    AIX 6.1 mutex

    next

    next [ Number ]

    next Number next Number next 1

    next set $hold_next 1

    40 AIX 7.1 2

  • :

    1.

    next

    2. 3

    next 3

    cont goto nexti set step

    nexti

    nexti [ Number ]

    nexti Number nexti Number nexti 1

    nexti set $hold_next 1

    :

    1.

    nexti

    2. 3

    nexti 3

    gotoi next set stepi AIX 6.1

    onceblock onceblock [ uninit | done ]

    onceblock pthread_once once block uninit done once block once ID onceblock

    : onceblock AIXTHREAD_ONCE_DEBUG ON ON onceblock

    () 41

  • :

    1. once block

    onceblock uninit

    plugin plugin [ Name [ Command ] ]

    plugin Command Name

    :

    1.

    plugin

    2. samplehelp

    plugin sample help

    3. xyzinterpret 0x20000688

    plugin xyz interpret 0x20000688

    pluginload pluginunload AIX 6.1 dbx

    pluginload pluginload File

    pluginload File File

    : dbx 64 32 dbx32 32 dbx

    : /home/user/dbx_plugins/libdbx_sample.sosample

    pluginload /home/user/dbx_plugins/libdbx_sample.so

    plugin pluginunload AIX 6.1 dbx

    pluginunload pluginunload Name

    pluginunload Name

    : sample

    pluginunload sample

    42 AIX 7.1 2

  • plugin pluginload AIX 6.1 dbx

    print print Expression ...

    print Procedure ( [ Parameters ] )

    print

    v Expression v Procedure

    :

    1. x y 2

    print x, y

    () 43

  • prompt "dbx>"

    AIX 6.1 dbx

    quit quit

    quit dbx

    detach

    registers registers [ ALL | $tthreadnumber ... ] [ >File ]

    registers

    v $rNumber Number

    : 0xdeadbeef 16 0xdeadbeef 16

    v $frNumber dbx unset $noflregs

    v $vrNumber $novregs $novregs $novregs () (vr0-vr31vrsavevscr) $vrNf (float)$vrNs (short) $vrNc (char) print assign

    v $vsrNumber () $novsregs $novsregs $noflregs $novregs registers 64 $vsrNf (float)$vsrNs (short)$vsrNc (char)$vsrNg (double) $vsrNll(long long) print assign

    44 AIX 7.1 2

  • v ALL registers registers

    : registers

    :

    >File

    set unset AIX 6.1

    : $t1$t2 $t3

    registers $t1 $t2 $t3

    set unset AIX 6.1

    rerun

    rerun [ Arguments ] [ < File ] [ > File ] [ > > File ] [ 2> File ] [ 2> > File ] [ >& File ] [ > >&File ]

    rerun Arguments Arguments run rerun

    :

    File File > >File File 2>File File 2> >File File >&File File > >&File File

    run

    resource resource { owner | waiter } [ all | pthread id ]

    resource pthread 1 pthread

    () 45

  • pthread 2 pthread pthread pthread

    : resource ON AIXTHREAD_MUTEX_DEBUGAIXTHREAD_COND_DEBUG AIXTHREAD_RWLOCK_DEBUG AIXTHREAD_READ_OWNER AIXTHREAD_WAITLIST_DEBUG resource

    :

    1. pthread

    resource owner

    2. pthreads

    resource waiter all

    return

    return [ Procedure ]

    return Procedure Procedure

    :

    1.

    return

    2. main

    return main

    rwlock rwlock [read | write | RwlockNumber....]

    rwlock rwlock RwlockNumber rwlock rwlock rwlock rwlock

    rwlock

    rwl rwlock $rw RwlockNumber flag_value owner rwlock status rwlock read ()write (

    )free () wsleep[#] #

    46 AIX 7.1 2

  • rsleep[#] #

    : dbx print rwlock

    :

    read rwlock write rwlock

    :

    1. rwlock

    rwlock

    rwl flag_value owner status$rwl 1 $t1 write

    rsleeps[ 0]:wsleeps[ 0]:

    2. rwlock

    rwlock write

    rwl flag_value owner status$rwl 1 $t1 write

    rsleeps[ 0]:wsleeps[ 0]:

    attribute condition mutex print thread

    run

    run [ Arguments ] [ File ] [ > >File ] [ 2>File ] [ 2> >File ] [ >&File ] [ > >&File ]

    run Arguments

    :

    File File 2>File File > >File File 2> >File File >&File File > >&File File

    : blue 12

    run blue 12

    () 47

  • rerun

    screen

    screen

    screen dbx X Window

    screen dbx X Window screen X Window dbx screen screen

    v dbx X Window v X Window dbx $xdisplay $xdisplay DISPLAY dbx setName=Expression

    v X Window TERM

    v /tmp dbxscreen

    v X Window

    dbx

    Warning: dbx subcommand screen fails. dbxcontinues.

    $xdisplay X Window $xdisplay X Window

    .Xdefaults dbx_term

    : dbx X Window

    screen

    AIX 6.1 dbx AIX Version 6.1 AIXwindows Programming GuideAIXwindowsOverview

    set

    set [ Variable=Expression ]

    set dbx Expression Variable set

    48 AIX 7.1 2

  • set

    $catchbp $codepage

    $deferevents $expandunions $frame $frame

    $hexchars 16 $hexin 16 $hexints 16 $hexstrings 16 $hold_next contnextnexti step

    1

    $ignoreifhandler

    $ignoreload load unload loadbind

    $ignorenonbptrap SIGTRAP

    () 49

  • $instructionset Expression

    "default"dbx

    "com" PowerPC POWER dbx POWER

    "pwr" POWER

    "pwrx" AIX 5.1 POWER POWER2

    "pwr6" PowerPC POWER6

    "pwr7" PowerPC POWER7

    "601" AIX 5.1 PowerPC 601 RISC

    "603" AIX 5.1 PowerPC 603 RISC

    "604" PowerPC 604 RISC

    "970" PowerPC 970

    "ppc" POWER AIX 5.11 PowerPC 601 RISC POWER

    "any" POWER POWER POWER

    Expression dbx

    $java dbx Java

    $ignorenonbptrapJava Just-In-Time (JIT)

    $listwindow list 10

    $mapaddrs $mapaddrs

    50 AIX 7.1 2

  • $mapformat map

    "abbr" 1

    "normal" TLS TLS TLS

    "raw" 1 TLS TLS TLS TLS

    "verbose" TLS TLS TLS TLS

    Expression dbx

    $mnemonics dbx

    "default"

    "pwr" POWER

    "ppc" POWER

    Expression dbx

    $noargs whereupdown dump $noflregs registers $novregs registers $novsregs registers $octint 8 $octints 8

    () 51

  • $pretty C C++ (strutunionarray) print pretty

    "on" pretty 1

    "verbose"pretty 1

    "off" pretty $print_dynamic print/dump C++

    $repeat $sigblock $show_vft print/dump C++

    $stack_details where

    $stepignore step/tstep

    dbx step /tstep Expression

    "function"dbx next /tnext

    "module" () next/tnext

    "none" dbx stepi/tstepi dbx

    $thcomp $thcomp thread th-

    $unsafeassign assign $unsafeassign assign

    $unsafebounds $unsafecall

    $unsafegoto goto $vardim

    10 $xdisplay multproc screen X Window

    DISPLAY

    $unsafe dbx

    52 AIX 7.1 2

  • :

    1. 20

    set $listwindow=20

    2. assign

    set $unsafeassign

    3. AIX 5.1 PowerPC 601 RISC

    set $instructionset="601"

    4. IBM-eucCN

    set $codepage="IBM-eucCN"

    unset AIX 6.1

    set edit [vi, emacs] set -o [vi, emacs] set -o edit 1 set-o vi set edit vi vi set -o emacs set edit emacs emacs

    :

    1. vi

    set-o vi

    set edit vi

    sh

    sh [ Command ]

    sh Command SHELL sh

    :

    1. ls

    sh ls

    2.

    sh

    3. SHELL

    sh echo $SHELL

    AIX 6.1 dbx

    () 53

  • skip

    skip [ Number ]

    skip NumberNumber 1

    : 2

    skip 1

    cont

    source

    source File

    source File dbx

    : cmdfile dbx

    source cmdfile

    AIX 6.1 dbx

    status

    status [ more ] [ >File ]

    status tskip (tskip )status dbx status ([]) (..) ()

    > status File

    :

    >File File

    :

    1. tskip

    status

    54 AIX 7.1 2

  • [1] stop at 13[2] stop at 14.3. stop at 15.4. stop at 16[5] stop at 17 stop at 18 if g > 10 stop in func

    Remaining tskip counts:tskip 2 for $t1tskip 1 for $t5

    3 4 6 7

    2. dbx

    status more

    [1] stop at 13[1] where

    .2. stop at 14[1] where[2] registers

    stop at 15 if g > 10[1] where; registers

    dbx addcmd clear delete delcmd tskip stop trace

    AIX 6.1

    step

    step [ Number ]

    step NumberNumber 1

    step set $hold_next 1

    : step set $stepignore $stepignore step

    :

    1. 1

    step

    2. 5

    step 5

    () 55

  • 3. dbx printf

    60 printf ("hello world \n");

    set $stepignore="function"; step

    cont goto next set stepi

    stepi

    stepi [ Number ]

    stepi Number Number 1

    stepi

    :

    1. 1

    stepi

    2. 5

    stepi 5

    gotoi nexti step

    stop

    stop { [Variable] [ at SourceLine | in Procedure | on load ["ModuleName"] ] [ if Condition ]}

    stop

    v if Condition Condition v in Procedure Procedure v Variable Variable v at SourceLine SourceLine

    SourceLine : ()

    v on load ModuleName ModuleName

    ModuleName

    ModuleName(MemberName)

    56 AIX 7.1 2

  • v on load ModuleName

    dbx ID

    stop in main[1] stop in mainstop at 19 if x == 3[2] stop at "hello.c":19 if x = 3stop in func stop in funcstop g stop g

    ([]) ID dbx stop 1 ID () ID ([]) dbx

    status status stop delete clear enable disable dbx addcmd dbx delcmd

    1 9

    v bfth (Function, ThreadNumber)v blth (SourceLine, ThreadNumber)

    ThreadNumber thread (5 $t5 ThreadNumber )

    stopi at &Function if ($running_thread == ThreadNumber)stop at SourceLine if ($running_thread == ThreadNumber)

    :

    at SourceLine if Condition () in Procedure

    () 57

  • on load ModuleName

    :

    1. main

    stop in main

    2. x 12

    stop x at 12

    3. sample.c 5

    stop at "sample.c":5

    4. dbx func1 x

    stop in func1 if x = 22

    5. dbx func1 x

    stopi at &func1 if x = 22

    6. Variable

    stop Variable

    7. Condition

    stop if (x > y) and (x < 2000)

    8.

    status[1] stop in main[2] stop at "hello.c":19 if x = 3delete 1status[2] stop at "hello.c":19 if x = 3clear 19status(dbx)

    delete ID clear

    9. $t5 func1

    stopi at &func1 if ($running_thread == 5)

    bfth(func1, 5)

    10.

    stop on load

    11. Module

    stop on load "Module"

    58 AIX 7.1 2

  • 12. Module Member

    stop on load "Module(Member)"

    addcmd clear delete delcmd disableenable stopi trace AIX 6.1

    stophwp stophwp Address Size

    stophwp

    :

    1. stophwp POWER630 POWER4

    2. stophwp tracehwp (stop trace )

    :

    1. 0x200004e8 4

    stophwp 0x200004e8 4

    tracehwp

    stopi

    stopi { [Address] [ at Address | in Procedure ] [ if Condition ]}

    stopi

    v ifCondition v Address Address v atAddress v inProcedure Procedure

    :

    if Condition () in Procedure at Address

    () 59

  • :

    1. 0x100020f0

    stopi at 0x100020f0

    2. 0x100020f0

    stopi 0x100020f0

    3. 0x100020f0 $t1

    stopi 0x200020f0 if ($running_thread == 1)

    stop AIX 6.1 dbx

    thread

    : thread { [ info ] [ - ] [ ThreadNumber ... ] } | current | run | susp |term | wait

    : thread current [ - ] ThreadNumber

    : thread { hold | unhold } [ - ] [ ThreadNumber ... ]

    : thread { help}

    thread

    thread 2 thread th thread th - 2 1 ThreadNumber thread > * thread

    thread

    thread $tThreadNumber state-k (

    ) runwait suspterm

    wchan ()

    state-u runningblockedterminated

    k-tid ID ()

    mode () ()

    held

    60 AIX 7.1 2

  • scope sys pro

    function

    2 thread thread th -

    thread $tThreadNumber

    tid ID ()pri sched

    fifothrrfor fifo (other) (round robin)

    state ()runwaitsusp zomb

    tid ID pri userl sched

    fifothrrfor fifo (other) (round robin)

    state

    state 16 flags pthread 16 wchan (

    )mode () (

    )held scope

    sys pro cancellation pending

    state

    ed ea d

    ED EA D

    joinable

    () 61

  • boosted function cursig

    $thcomp

    m mode (k)ernel (u)serk k-state (r)unning (w)aiting (s)uspended (z)ombieu u-state (r)unning (R)unnable (s)uspended (t)erminated

    (b)locked (c)reatingh held (yes) (n)os scope (s)ystem (p)rocessc cancellation not pending: (e)nabled & (d)eferred,

    (e)nabled & (a)sync, (d)isabledpending : (E)nabled & (D)eferred,

    (E)nabled & (A)sync, (D)isabledj joinable (yes) (n)ob boosted value of boosted field in pthread structureplk kernel thread (oth)er (fif)o (rr)-> round-robin

    policyplu user thread (oth)er (fif)o (rr)-> round-robin

    policyprk kernel thread hex number

    policypru user thread hex number

    policyk-tid kernel thread id in hexu-tid pthread id in hexfl value of flags field in pthread structure in hexsta value of state field in pthread structure in hexcs value of the current signalwchan event for which thread is waitingfunction function name

    thread 2 dbx printregisters where registers

    thread 3 hold unhold

    : dbx print

    :

    current ThreadNumber ThreadNumber

    help th - hold ThreadNumber

    1 ThreadNumber

    62 AIX 7.1 2

  • unhold ThreadNumber 1 ThreadNumber

    info ThreadNumber 1 ThreadNumber

    [-] set $thcomp 2

    run run susp susp term term wait wait

    :

    1.

    thread wait

    thread state-k wchan state-u k-tid mode held scope function$t1 wait running 17381 u no pro main$t3 wait running 8169 u no pro iothread

    2.

    thread 1 3 4

    thread state-k wchan state-u k-tid mode held scope function$t1 wait running 17381 u no pro main$t3 wait running 8169 u no pro iothread>$t4 run running 9669 u no pro save_thr

    3. 4

    thread current 4

    4. 2

    thread hold 2

    5. 2

    thread wait -

    thread m k u h s c j b kpl upl kpr upr k_tid u_tid fl sta wchan function*$t1 u r w n p ed y 0 oth oth 61 1 0043e5 000001 51 004 main$t3 u r w n p ed y 0 oth oth 61 1 001fe9 000102 51 004 iothread>$t4 u r r n p ed y 0 oth oth 61 1 0025c5 000203 50 064 save_thr

    6. 2

    thread - 1 2 3

    () 63

  • thread m k u h s c j b kpl upl kpr upr k_tid u_tid fl sta wchan function*$t1 u r w n p ed y 0 oth oth 61 1 0043e5 000001 51 004 main$t3 u r w n p ed y 0 oth oth 61 1 00fe9 000102 51 004 iothread>$t4 u r r n p ed y 0 oth oth 61 1 0025c5 000203 50 064 save_thr

    attribute condition mutex print registers where

    AIX 6.1

    tls

    tls map

    tls TLS TLS 1

    tnext

    tnext [Number]

    tnext Number tnext Number tnext 1

    $catchbp dbx $catchbp tnext

    :

    1.

    tnext

    2. 3

    tnext 3

    tnexti AIX 6.1

    tnexti

    tnexti [Number]

    tnexti Number tnexti Number tnexti 1

    $catchbp dbx $catchbp tnexti

    :

    64 AIX 7.1 2

  • 1.

    tnexti

    2. 3

    tnexti 3

    tnext AIX 6.1

    trace

    trace [ SourceLine | Expression at SourceLine | Procedure | [ Variable ] [ at SourceLine | in Procedure ] |on load ModuleName ] [ if Condition ]

    trace SourceLine : () dbx trace status delete enable disable

    trace ModuleName

    ModuleName(MemberName)

    ModuleName on load dbx

    8

    :

    at SourceLine if Condition if Condition

    in Procedure on load ModuleName

    :

    1. printf

    trace printf

    2. hello.c 22

    trace "hello.c":22

    3. main x

    trace x in main

    () 65

  • 4. 0x2004000

    set $A=0x2004000trace $A

    : tracei

    5. Procedure Condition

    (dbx) trace in sub2[1] trace in sub2(dbx) runtrace in hellosub.c: 8 printf("%s",s);trace in hellosub.c: 9 i = 5;trace in hellosub.c: 10 }

    6. Procedure

    (dbx) trace sub[1] trace sub(dbx) runcalling sub(s = "hello", a = -1, k = delete) from function mainreturning "hello" from sub

    7. Expression

    (dbx) trace x*17 at "hellosub.c":8 if (x > 0)[1] trace x*17 at "hellosub.c":8 if x > 0(dbx) runat line 8 in file "hellosub.c": x*17 = 51

    (dbx) trace x[1] trace xinitially (at line 4 in "hello.c"): x = 0after line 17 in "hello.c": x = 3

    8. $t1 x

    (dbx) trace x if ($running_thread == 1)

    9.

    trace on load

    10. Module

    trace on load "Module"

    11. Module Member

    trace on load "Module(Member)"

    tracei

    tracehwp tracehwp Address Size

    tracehwp dbx

    66 AIX 7.1 2

  • :

    1. tracehwp POWER630 POWER4

    2. stophwp tracehwp (stop trace )

    :

    1. 0x200004e8 4

    tracehwp 0x200004e8 4

    stophwp

    tracei

    tracei [ [ Address ] [ at Address | in Procedure ] | Expression at Address ] [ if Condition ]

    tracei

    v Address Address

    v at Address at Address v in Procedure Procedure

    v if Condition Condition

    :

    at Address

    if Condition in Procedure

    :

    1.

    tracei

    2. 0x100020f0

    tracei at 0x100020f0

    3. main 0x20004020

    tracei 0x20004020 in main

    () 67

  • 4. 0x100020f0 $t4

    tracei at 0x100020f0 if ($running_thread == 4)

    trace AIX 6.1 dbx

    tskip

    tskip [Number]

    tskip Number

    1 tskip tskip tskip tskip

    tskip status tskip delete

    : 2

    tskip 1

    cont AIX 6.1

    tstep

    tstep [Number]

    tstep Number tstep Number tstep 1

    $hold_next

    : tstep set $stepignore $stepignore tstep

    :

    68 AIX 7.1 2

  • 1. 1

    tstep

    2. 5

    tstep 5

    3. dbx printf

    60 printf ("hello world /n");

    set $stepignore="function"; step

    cont goto tnext set tstepi AIX 6.1

    tstepi

    tstepi [Number]

    tstepi Number tstepi Number tstepi 1

    $hold_next

    :

    1. 1

    tstepi

    2. 2

    tstepi 5

    gotoi tnexti tstep AIX 6.1

    tstop

    tstop { in Procedure | [Variable] at SourceLine [ if Condition ] } [for $tthreadnumber]

    tstop 1

    v if Condition Condition True v in Procedure Procedure v at SourceLine SourceLine SourceLine

    : ()

    () 69

  • :

    at SourceLine for $t threadnumber if Condition (true) in Procedure

    :

    1. 2 func

    tstop in func for $t2

    2. 12 x

    tstop x at 12

    ttrace AIX 6.1

    tstophwp

    tstophwp address size [for $tthreadnumber]

    tstophwp 1

    :

    1. tstophwp POWER630 POWER4

    2. tstophwp ttracehwp (stop trace )

    3.

    4.

    70 AIX 7.1 2

  • 5.

    :

    for $t threadnumber

    : 2 0x200004e8 4

    tstophwp 0x200004e8 4 for $t2

    ttracehwp AIX 6.1

    tstopi

    tstopi { in Procedure | [Address] at Address [ if Condition ] } [for $tthreadnumber]

    tstopi 1

    v if Condition Condition True v in Procedure Procedure v at Address Address

    :

    at Address for $t threadnumber if Condition in Procedure

    :

    1. 2 0x100020f0

    tstopi at 0x100020f0 for $t2

    2. func

    tstopi in func

    ttracei AIX 6.1

    () 71

  • ttrace

    ttrace { [Variable] at SourceLine | Procedure } [ if Condition ] [for $tthreadnumber]

    ttrace SourceLine : () dbx ttrace status delete enable disable

    1

    :

    at SourceLine for $t threadnumber if Condition Condition True

    in Procedure

    :

    1. 2 printf

    ttrace printf for $t2

    2. hello.c 22

    ttrace "hello.c":22

    ttracei AIX 6.1

    ttracei

    ttracei [Address] at Address [ if Condition ] } [for $tthreadnumber]

    ttracei

    v if Condition Condition True v at Address Address

    1

    :

    72 AIX 7.1 2

  • at Address

    for $t threadnumber if Condition

    :

    1. 3 0x100020f0

    tracei at 0x100020f0 for $t3

    2. 0x100020f0

    tracei at 0x100020f0

    ttrace AIX 6.1

    ttracehwp

    ttracehwp address size [for $tthreadnumber]

    ttracehwp dbx 1

    :

    1. ttracehwp POWER630 POWER4

    2. tstophwp ttracehwp (stop trace )

    3.

    4.

    5.

    :

    for $t threadnumber

    () 73

  • : 2 0x200004e8 4

    ttracehwp 0x200004e8 4 for $t2

    tstophwp AIX 6.1

    unalias

    unalias Name

    unalias Name

    : printx

    unalias printx

    alias AIX 6.1 dbx

    unset

    unset Name

    unset Name dbx

    :

    unset $noflregs

    set AIX 6.1

    up

    up [ Count ]

    up Count Count 1

    :

    1. 2

    up 2

    2.

    up 0

    down AIX 6.1

    74 AIX 7.1 2

  • use

    use [ { + | Directory | '['RegularExpression = NewPath']' } ... ]

    use dbx use

    @ () dbx @ ./@

    use + () + use + + + (./+ /tmp/+ )

    use [ ] () = () @

    v v

    v @ 1 RegularExpression n NewPath

    v @

    v RegularExpression (1 ... n) ()

    v

    : @

    :

    () 75

  • 1. (.) (..)/tmp

    use . .. /tmp

    2. (.) (@) ../source

    use . @ ../source

    3. /tmp2

    use + /tmp2

    4. /tmp3

    use /tmp3 +

    5. /home/developer /mnt

    use + [/home/developer=/mnt]

    6. /home/developer /latest /stable dbx

    use + [/home/developer=/latest] [/home/developer=/stable]

    edit list

    whatis

    whatis Name

    whatis Name Name

    : whatis dbx

    :

    1. x

    whatis x

    2. main

    whatis main

    3. main x

    whatis main.x

    4. $$TagName

    (dbx) whatis $$statusenum $$status { run, create, delete, suspend };

    where

    where [ ALL | $tthreadumber [(startframe endframe)] ...] [ startframe endframe ] [ >File ]

    76 AIX 7.1 2

  • where startframe endframe ( 0 ) n main n-1 >File

    ALL where

    :

    >File

    frame up down AIX 6.1

    :

    1.

    where ALL

    2. $t1$t2 $t3

    where $t1 $t2 $t3

    3. $t2 2-3 $t1 $t3 1-4

    where $t1 $t2(2 3) $t3 1 4

    frame up down AIX 6.1

    whereis

    whereis Identifier

    whereis ID

    : x

    whereis x

    which

    which

    which Identifier

    () 77

  • which ID ID

    : x

    which x

    whereis AIX 6.1

    a.out core .dbxinit

    adb cc

    ptrace

    a.out core

    AIX 6.1 dbx dbx

    dc

    dc [ File]

    dc dc File dc 10 dc

    bc dc C

    c dc

    78 AIX 7.1 2

  • d f i

    I k

    lx x x 0

    Lx x

    o

    O p P q dc 2

    Q sx x

    x Sx x x

    v

    x dc

    X z Z Number Number 0 9

    _ ()

    + - / * % ^ 2 (+) (-) (*) (/)(%) (^) dc 2 dc

    [String] String [= | > | < ] x

    2 x

    ! ? 1 ;: bc

    1. dc

    () 79

  • You: 1 4 / pSystem: 0You: 1 k [ Keep 1 decimal place ]s.

    1 4 / pSystem: 0.2You: 3 k [ Keep 3 decimal places ]s.

    1 4 / pSystem: 0.250You: 16 63 5 / + pSystem: 28.600You: 16 63 5 + / pSystem: 0.235

    dc s. ( [ Comment] s. ) dc

    dc Ctrl-D bc

    2. dc

    You: dc prog.dc5 lf x p [ 5 factorial ]s.

    System: 120You: 10 lf x p [ 10 factorial ]s.System: 3628800

    prog.dc dc lfx f prog.c

    [ f: compute the factorial of n ]s.[ (n = the top of the stack) ]s.[ If 1>n do b; If 1b d 1

  • dcp -h dcp -V dcp -q dcp [-a] [--all-nodes context_list] [-A] [--all-devices context_list] [-n node_list][-N nodegroups] [-d device_list] [-D devicegroups] [-C context] [-f fanout] [-l user_ID] [-o node_options] [-Odevice_options] [-p] [-P] [-Q] [-r node_remote_copy] [--device-rcp device_remote_copy] [-R] [-t timeout] [-Xenv_list] [-T] [-v] source_file... target_path

    dcp (NIM ) dcp source_file target_path /usr/bin/rcp dcp DSM dsh dcp dsh

    dcp dsh dcp dsh

    dcp dsh dcp dsh

    dcp dsh dsh

    user_ID dcp dsh dsh

    () 81

  • dcp AIX rcp OpenSSH scp /usr/bin/rsync

    1. -r

    2. DCP_NODE_RCP

    3. /usr/bin/rcp

    1. --device-rcp

    2. DCP_DEVICE_RCP

    3.

    4. RemoteCopyCmd

    [context:]path[,[context:]path]... path context:

    1. -o

    2. DCP_NODE_OPTS

    a. -O

    b. DCP_DEVICE_OPTS

    [context:]"options"[, [context:]"options"]... options context: dcp ("")

    82 AIX 7.1 2

  • -f DSH_FANOUT () DSH_FANOUT -t DSH_TIMEOUT dcp -T dcp dcp -Q source_file... -R -P target_path 1 source_file -P target_path target_path target_path source_file

    -a -C DSH_CONTEXT

    -A -C DSH_CONTEXT HMC

    --all-devicescontext_list

    context_list HMC

    --all-nodescontext_list

    context_list

    -C context:

    --contextcontext context /opt/csm/pm/dsh/Context

    --device-rcpdevice_remote_copy

    device_remote_copy

    [context:]path[,[context:]path]... HMC -D |--devicegroups devicegroups devicegroup

    -d | --devicesdevice_list

    device_list

    [context:] [user_ID@] device_name[,\

    [context:][user_ID@]device_name]... HMC

    () 83

  • -D |--devicegroupsdevicegroups

    devicegroups devicegroups

    [context:] [user_ID@]devicegroup[,\

    [context:] [user_ID@]devicegroup]... HMC -f | --fanout fanout

    1 64

    -l ( L)|--user user_ID

    -h | --help -n | --nodesnode_list

    node_list

    [context:] [user_ID@]node_name[,\

    [context:] [user_ID@]node_name]...-o --node-optionsnode_options

    dcp context: node_options [context:]"options"[,[context:]"options"]...

    -N | --nodegroupsnodegroups

    nodegroups nodegroups

    [context:] [user_ID@]nodegroup[,\

    [context:] [user_ID@]nodegroup]...-O--device-optionsdevice_options

    dcp context: device_options

    [context:]"options"[,[context:]"options"]... HMC -p | --preserve

    -P | --pull () target_path

    target_path _target -P -R _target dcp -P | --pull 1

    -q | --show-config DSH context:

    -r | --node-rcpnode_remote_copy

    context: node_remote_copy

    [context:]path[,[context:]path]... rsync rsync

    84 AIX 7.1 2

  • -R | --recursive -P () source_file

    -t | --timeouttimeout

    dcp dcp

    -T | --trace dcp -v | --verify

    -X env_list dcp dcp

    () 85

  • -V | --version dcp DSH_CONTEXT -C DSH_DEVICE_LIST -d HMC DCP_DEVICE_OPTS -O HMC DCP_DEVICE_RCP --device-rcp HMCDSH_FANOUT -f DCP_NODE_OPTS -o DCP_NODE_RCP -r DSH_NODE_LIST -n WCOLL DSH_NODE_LIST DSH_NODEGROUP_PATH DSH DSH -a DSH_TIMEOUT -t RSYNC_RSH rsync rsync rsync dcpdcp 0 dcp 0 dcp dcp 0 1 dcp () dcp Kerberos 5 /usr/bin/rcp Kerberos kinit Kerberos k5login

    1. /tmp/etc/hosts node3node4node5 /etc NIM device16 gregb

    dcp -n node3-node5 -d NIM:gregb@device16 /tmp/etc/hosts /etc:

    86 AIX 7.1 2

  • 2. /etc/hosts /tmp/hosts.dir

    dcp -aP /etc/hosts /tmp/hosts.dir

    /tmp/hosts.dir

    hosts._node1 hosts._node4 hosts._node7

    hosts._node2 hosts._node5 hosts._node8

    hosts._node3 hosts._node6

    3. 12 /var/log/testlogdir NIM NodeGroup1 DSH DeviceGroup4 /var/log._target

    dcp -C DSH -N NIM:NodeGroup1 -D DeviceGroup 4 -f 12 \ -RP /var/log/testlogdir /var/log

    4. rsync /localnode/smallfile /tmp/bigfile node1 /tmp

    RSYNC_RSH=/usr/bin/ssh; dcp -r /usr/bin/rsync -o "-z" \ -n node1 /localnode/smallfile /tmp/bigfile /tmp

    rsync rsync RSYNC_RSH -z

    5. /etc/hosts dcp

    dcp -X -a /etc/hosts /etc/hosts

    6. /etc/hosts node1 node2 /tmp/hosts.dir DCP_NODE_OPTS dcp

    dcp -n node1,node2 -P -X DCP_NODE_OPTS /etc/hosts /tmp/hosts.dir

    dd

    dd [ bs=BlockSize ][ cbs=BlockSize ] [ conv= [ ascii | block | ebcdic | ibm | unblock ] [ lcase |ucase ] [ iblock ] [ noerror ] [ swab ] [ sync ] [ oblock ] [ notrunc ] ] [ count=InputBlocks ] [files=InputFiles ] [ fskip=SkipEOFs ] [ ibs=InputBlockSize ] [ if=InFile ] [ obs=OutputBlockSize ][of=OutFile ] [ seek=RecordNumber ] [ skip=SkipInputBlocks ][ span=yes|no ]

    dd [ Option=Value ]

    dd InFile OutFile ( I/O)

    () 87

  • : Block dd 1

    wb k 2 512 1024 x * ()

    conv=ascii conv=ebcdic 2 ASCII EBCDIC

    blockunblock asciiebcdic ibm cbs unblock ascii dd cbs

    : cbs

    dd

    :

    1. seek

    2. dd conv=ascii conv=unblock conv=ebcdic conv=ibm conv=block

    3. dd backup tarcpio rmt

    4. bs ibs obs

    5. conv=sync dd NULL (ibs ) dd NULL

    6. bs syncnoerror notrunc sync bs syncnoerror notrunc

    dd

    88 AIX 7.1 2

  • : bs

    InFile OutFile stdin stdout dd

    dd dd 'n'

    bs=BlockSize ibs obs bs

    cbs=BlockSize conv=block

    count=InputBlocks InputBlocks

    () 89

  • conv= Conversion,.... 1

    ascii EBCDIC ASCII ebcdic ibm block unblock

    block (cbs) ascii ebcdic ibm unblock

    ebcdic ASCII EBCDIC ascii ibm block unblock

    ibm ASCII EBCDIC IBM ascii ebcdic block unblock

    iblock oblock iblock ( 512 ibs=InputBlockSize ) dd dd 1 512 (ibs) 1 oblock

    lcase

    noerror

    notrunc

    ucase

    swab

    sync ibs

    unblock(cbs) ascii ebcdic ibm block

    files=InputFiles InputFiles ()

    90 AIX 7.1 2

  • fskip=SkipEOFs SkipEOFs SkipEOFs

    ibs=InputBlockSize 512 1 ibs

    if=InFile obs=OutputBlockSize 512 1

    obs

    of=OutFile seek=RecordNumber RecordNumber

    skip=SkipInputBlocks SkipInputBlocks

    span=yes|no yes no

    0 >0

    1. ASCII EBCDIC

    dd if=text.ascii of=text.ebcdic conv=ebcdic

    text.ascii EBCDIC EBCDIC text.ebcdic

    : conv=ebcdic dd ASCII ^ () EBCDIC (16 9A) ASCII ~ () EBCDIC ^ (NOT )

    2. ASCII /etc/passwd 132 EBCDIC

    dd if=/etc/passwd cbs=132 conv=ebcdic of=/tmp/passwd.ebcdic

    3. 132 EBCDIC ASCII

    dd if=/tmp/passwd.ebcdic cbs=132 conv=ascii of=/tmp/passwd.ascii

    4. ASCII /etc/passwd IBM EBCDIC 132

    dd if=/etc/passwd cbs=132 conv=ibm of=/tmp/passwd.ibm

    () 91

  • 5. 1KB 2KB

    dd if=/dev/rmt0 ibs=1024 obs=2048 of=/dev/rmt1

    6. dd

    ls -l | dd conv=ucase

    : dd cpio 9348 12 chdev

    chdev -l Device_name -a block_size=32k

    7. 36 (512 /) 3.5 1.4MB

    dd if=Filename of=/dev/rfd0 bs=36b conv=sync

    Filename 1 conv=sync dd NULL

    8. 720b 1.44MB

    dd if=testfile of=/dev/fd0 bs=720b conv=sync

    : dd

    9. 32k

    dd if=inputfile of=/dev/rmt0 bs=32k conv=sync

    10. 32k

    dd if=/dev/rmt0 of=outfile bs=32k conv=sync

    11. 720b 1.44MB

    dd if=testfile of=/dev/fd0 bs=720b conv=sync span=yes

    : dd

    12. 32k

    dd if=inputfile of=/dev/rmt0 bs=32k conv=sync span=yes

    92 AIX 7.1 2

  • 13. 32k

    dd if=dev/rmt0 of=outfile bs=32k conv=sync span=yes

    /usr/bin/dd dd

    backup cp cpio tar tr

    rmt

    defaultbrowser

    Web URL

    defaultbrowser [ URL [new-window, new-tab]]

    defaultbrowser DEFAULT_BROWSER

    URL URL URL

    new-window new-tab Mozilla Web URL URL Mozilla Web 2

    defaultbrowser HTML Web DEFAULT_BROWSER

    () 93

  • DEFAULT_BROWSER URL URL wonderbrowser -r URL DEFAULT_BROWSER wonderbrowser -r

    DEFAULT_BROWSER defaultbrowser Mozilla Web

    1.

    defaultbrowser

    2. URL http://machine/path/file.html

    defaultbrowser http://machine/path/file.html

    3. URL http://machine/path/file.html ( Netscape webpage )

    defaultbrowser http://machine/path/file.html webpage

    4. URLhttp://machine/path/file.html ( Mozilla Web )

    defaultbrowser http://machine/path/file.html new-window

    5. URLhttp://machine/path/file.html ( Mozilla Web )

    defaultbrowser http://machine/path/file.html new-tab

    /usr/bin/defaultbrowser defaultbrowser

    defif

    defif [ -c Class -s Subclass] -t Type

    defif defif

    94 AIX 7.1 2

  • 1.

    2.

    3.

    4.

    5. defined

    -c Class if -s Subclass

    TR

    EN

    SL SLIP

    XT X.25

    LO -t Type

    tr

    en

    sl SLIP

    ie3 IEEE 802.3

    lo

    xt X.25

    defif -t tr

    mkdev

    odm_run_method

    TCP/IP

    (ODM)

    Kernel Extensions and Device Support Programming ConceptsWriting a Device Method

    () 95

  • definet

    inet

    definet [ -c Class ]

    definet inet ODM

    1. inet

    2. inet defined

    mkdev

    : definet

    -c Class inet Class tcpip

    inet0

    definet

    mkdev

    odm_run_method

    (ODM)

    Kernel Extensions and Device Support Programming ConceptsWriting a Device Method

    defragfs

    96 AIX 7.1 2

  • defragfs [ -q | -r | -s] { Device | FileSystem }

    defragfs Device ( /dev/hd4 ) FileSystem /etc/filesystems

    defragfs defragfs

    / -q -r -s

    defragfs JFS2 defragfs snapshot defragfs

    -q -r -q-r -s defragfs

    -s defragfs

    JFS defragfs

    Number of free fragments

    Number of allocated fragments

    Number of free spaces shorter than a block1 1 1

    Number of free fragments in short free spaces1 1

    Number of fragments moved

    () 97

  • Number of logical blocks moved

    Number of allocation attempts

    Number of exact matches

    Total number of fragments

    Number of fragments that may be migrated

    FileSystem filesystem is n percent fragmented (%)

    JFS2 defragfs

    Total allocation groups () JFS2

    Allocation groups defragmented

    Allocation groups skipped - entirely free

    Allocation groups skipped - too few free blocks

    Allocation groups skipped - contains a large contiguous free space

    Allocation groups are candidates for defragmenting

    Average number of free runs in candidate allocation groups 1 (free run) 1 1

    Total number of blocks

    Number of blocks that may be migrated

    FileSystem filesystem is n percent fragmented (%)

    98 AIX 7.1 2

  • RBAC Trusted AIX : lssecattr getcmdattr

    1. /dev/lv00 /data1

    defragfs /data1

    2. /data1

    defragfs /data1

    3. /data1

    defragfs -r /data1

    4. /data1

    defragfs -s /data1

    /etc/filesystems

    crfs lsfs mkfs

    JFS JFS i

    defvsd

    defvsd logical_volume_name global_group_name vsd_name

    () 99

  • System Management Interface Tool (SMIT) defvsd SMIT

    smit vsd_data

    Define a Virtual Shared Disk

    -r

    : IBM

    -R

    : IBM

    -p 1 9 9 (RSCT for AIX 5L: Managing Shared Disks)

    IP uphysio buf_cnt statvsd

    -k -r

    :

    1.

    2. IBM

    -t mbuf

    -T

    -v vsd_name ...

    -V

    100 AIX 7.1 2

  • -C statvsd

    -K

    :

    1.

    2. IBM

    -M IP (MTU)

    v 61440 (60KB) ()v 8192 (8KB) ()v 1024 (1KB) (1500 MTU )

    logical_volume_name

    15

    global_group_name

    vsdvg 31

    vsd_name RSCT vsdnngvg_name 31

    : vsd_name cfgvsd

    root

    () 101

  • startrpdomain startrpnode RSCT RSCT Administration Guide

    1. (vg1n1) lv1vg1n1 vsd1vg1n1

    defvsd lv1vg1n1 vg1n1 vsd1vg1n1

    /opt/rsct/vsd/bin/defvsd

    : vsdatalstvsdvgundefvsd

    deleteX11input

    ODM () X11

    deleteX11input DeviceName ...

    deleteX11input ODM X11 DeviceName ODM

    root

    DeviceName X11

    No DeviceName is found in ODM Database ODM

    102 AIX 7.1 2

  • Usage: deleteX11input DeviceName

    addX11input listX11input

    delta

    SCCS

    delta [ -r SID ] [ -s ] [ -n ] [ -g List ] [ -p ] [ -m ModificationRequestList ] [ -y [ Comment ] ] File ...

    delta get -e (SCCS)

    delta s g (SCCS get )g 512

    File delta SCCS ( s. ) File - () delta SCCS delta -y v -m delta

    : SOH ASCII ( 001) \ () SOH SCCS SOH SCCS

    get SCCS get delta get delta

    delta SCCS delta

    1. get -e

    2.

    3. delta SCCS

    delta -y SCCS get

    () 103

  • SCCS cat SCCS prs SCCS cdc

    : delta delta

    SCCS delta

    -f admin i

    -g List get g SID () get g

    -m ModificationRequestListSCCS v (MR)

    -m v delta MR delta MR delta MR (-y ) MR

    v MR delta MR delta MR

    -n delta g

    -p SCCS (diff ) diff

    104 AIX 7.1 2

  • -r SID SCCS SCCS get -e SID get SID SID (get ) SID SID

    -s delta

    -y[Comment] null Comment

    -y delta

    delta \ () 512

    0 >0

    1. SCCS

    delta s.prog.c

    SCCS s.prog.c prog.c delta 2

    2. SCCS

    delta -y "This delta contains the payroll function" s.prog.c

    /usr/bin/delta delta

    () 105

  • admin cat cdc diff get prs rmdel sccsdiff sccshelp

    sccsfile

    AIX 6.1 SCCS

    AIX 6.1 (SCCS)

    deroff

    nrofftrofftbl eqn

    deroff { -ma -me -ms [ -mm [ -ml ] ] } [ -i | -l ] [ -k ] [ -p ] [ -u ] [ -w ] [ File ... ]

    deroff () troffeqn (.EQ .EN ) tbl

    deroff (.so .nx troff ) .so been .nx

    : deroff troff

    File deroff troff eqn tbl

    -ma MA (man) -me ME

    -ml MM (-mm ) MM -ml

    -mm : -ml

    -mm MM

    106 AIX 7.1 2

  • -ms MS -i -l /usr/lib (/usr/lib/tmac )

    -k

    .ne -p -u ASCII -w -w 1 1

    2 (&) (') 2 3

    eqn neqn nroff tbl troff

    detachrset

    rset

    detachrset [ -P ] pid

    detachrset rset rset ()

    -P rset (pid)

    pid ID

    root CAP_NUMA_ATTACH userid rset (-P ) root

    () 107

  • RBAC Trusted AIX : lssecattr getcmdattr

    21414 rset

    detachrset 21414

    /usr/bin/detachrset detachrset

    attachrset execrset lsrset mkrset rmrset

    devinstall

    devinstall -f File -d Device [ -s ] [ -v]

    devinstall -f

    cfgmgr -i

    SCSI /tmp/device.pkgs devinstall

    -f File cfgmgr /tmp/device.pkgs

    108 AIX 7.1 2

  • -d Device IBM IBM no-rewind-on-close () no-retension-on-open () /dev/rmt0.1 /dev/rmt0.5 IBM

    -s /var/adm/dev_pkg.fail

    -v devinstall

    devinstall -I "acXge /var/adm/ras/devinst.log" geninstall a (apply)c (commit)X (extend fs)g (auto_include)e (log) /var/adm/ras/devinst.log (geninstall ) devinstall geninstall 2 /var/adm/dev_pkg.fail () /var/adm/dev_pkg.success

    0 1

    1 1 bosboot

    2 devinstall

    /var/adm/dev_pkg.success /var/adm/dev_pkg.fail

    : root

    devinstall -f /../tmp/device.pkgs -d /dev/rmt0.1

    bosboot

    bosboot -ad /dev/ipldevice

    /dev/rmtn

    () 109

  • bosboot cfgmgr installp

    devnm

    devnm Path ...

    devnm Path Path Path

    devnm /etc/rc

    :

    1.

    devnm /diskette0/bob/textfile

    /diskette0/bob/textfile /diskette0 devnm

    fd0 /diskette0/bob/textfilerfd0 /diskette0/bob/textfile

    /diskette0/bob/textfile /dev/fd0

    2.

    devnm /

    (/)

    hd0 /

    (/) /dev/hd0

    /dev /usr/sbin/devnm devnm

    110 AIX 7.1 2

  • rc

    df

    AIX df System V df

    df [ [ -P ] | [ -I | -M | -i | -t | -v ] ] [ -k ] [ -m ] [ -g ] [ -s ] [FileSystem ... | File... ]

    df FileSystem File File df FileSystem File df (512 /)

    df statfs -s (VFS) -s statfs df df

    : (NFS) df df

    df NFSv4 nfs4cl

    -g GB

    -i inode inode

    -I

    -k (1024 /) -m MB

    -M 2

    () 111

  • -P POSIX

    -P

    Filesystem 512-blocks Used Available Capacity Mounted on\n

    -P -k-m -g -P 512-blocks

    1

    FileSystem, TotalSpace, UsedSpace, FreeSpace, UsedPercentage, MountPoint-s JFS JFS -s

    -s JFS JFS /etc/filesystems

    -t -v

    -m -g 2 -k-m -g 2

    0 >0

    1.

    df

    //usr/site/usr/venus df

    Filesystem 512-blocks Free %Used Iused %Iused Mounted on/dev/hd0 19368 9976 48% 4714 5% //dev/hd1 24212 4808 80% 5031 19% /usr/dev/hd2 9744 9352 4% 1900 4% /site/dev/hd3 3868 3856 0% 986 0% /usr/venus

    2. /test 1024

    df -k /test

    Filesystem 1024 blocks Free %Used Iused %Iused Mounted on/dev/lv11 16384 15824 4% 18 1% /tmp/ravi1

    1024

    3. /test MB

    112 AIX 7.1 2

  • df -m /test

    Filesystem MB blocks Free %Used Iused %Iused Mounted on/dev/lv11 16.00 15.46 4% 18 1% /tmp/ravi1

    2 MB

    4. /test GB

    df -g /test

    Filesystem GB blocks Free %Used Iused %Iused Mounted on/dev/lv11 0.02 0.02 0% 18 1% /tmp/ravi1

    2 GB

    5.

    cd/df .

    Device 512-blocks free %used iused %iused Mounted on/dev/hd4 19368 9976 48% 4714 5% /

    /etc/filesystems /etc/vfs

    fsck

    filesystems

    System V df

    /usr/sysv/bin/df [ -a ] [ -l ] [ [ [ -e ] [-g ] [ -n ] ] | [ [ -i ] [ -v ] ] | -t ] ] [FileSystem ...] [File ...]

    () 113

  • df 512

    -a inode ()

    -e -g statvfs -a -e-i-n -t -v

    512

    -i inode inode inode inode (%)

    -l -n -t -v (%)

    File File File df

    FileSystem FileSystem

    : FileSystem File df

    0

    >0

    1.

    /usr/sysv/bin/df

    / (/dev/hd4 ): 19656 blocks 1504 files/usr (/dev/hd2 ): 1139904 blocks 20254 files/var (/dev/hd9var ): 23096 blocks 512 files/tmp (/dev/hd3 ): 2464 blocks 204 files/home (/dev/hd1 ): 44208 blocks 146 files/proc (/proc ): 0 blocks 0 files/opt (/dev/hd10opt ): 13880 blocks 310 files

    114 AIX 7.1 2

  • 2.

    /usr/sysv/bin/df .

    3. inode inode inode

    /usr/sysv/bin/df -i

    Mount Dir Filesystem iused avail itotal %iused/ /dev/hd4 1504 6688 8192 19%/usr /dev/hd2 20254 127202 147456 14%/var /dev/hd9var 512 3584 4096 13%/tmp /dev/hd3 204 5940 6144 4%/home /dev/hd1 146 14190 14336 2%/proc /proc 0 0 0 0/opt /dev/hd10opt 310 5834 6144 6%

    4. /tmp

    /usr/sysv/bin/df -v /tmp

    5.

    /usr/sysv/bin/df -n

    6.