コマンド・リファレンス第 1 巻 (a から c) AIX ® バージョン7.1...
Transcript of コマンド・リファレンス第 1 巻 (a から c) AIX ® バージョン7.1...
-
AIX 7.1
1 (a c)
SC88-8366-00(SC23-6709-00)
-
AIX 7.1
1 (a c)
SC88-8366-00(SC23-6709-00)
-
827
AIX 7.1
SC23670900AIX Version 7.1
Commands Reference, Volume 1, a - c
11 2010.9
Copyright IBM Corporation 2010.
-
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ixISO 9000. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiiSingle UNIX Specification 32 64 . . . . . . . . . . . . . xii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
. . . . . . . . . . . . . . . . . . . . . . . . . . 1ac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1acceptreject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2acctcms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3acctcom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5acctcon1 acctcon2 . . . . . . . . . . . . . . . . . . . . . . . . . . 9acctctl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11acctdisk acctdusg . . . . . . . . . . . . . . . . . . . . . . . . . . 17acctmerg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19acctprc1acctprc2 accton . . . . . . . . . . . . . . . . . . . . . . . 22acctrpt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24acctwtmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30aclconvert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31acledit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33aclget . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35aclgettypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37aclput . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38adb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40addbib . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42addrpnode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44addX11input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46adfutil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47admin (SCCS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48aixmibd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55aixpert . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57aixpertldap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60aixterm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62ali . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103alias . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104alog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106alstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109alt_disk_copy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111alt_disk_install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115alt_disk_mksysb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125alt_rootvg_op . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129amepat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133anno . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140ap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142apply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143apropos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145ar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150arp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
Copyright IBM Corp. 2010 iii
-
artexdiff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155artexget . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157artexlist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160artexmerge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161artexremset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162artexset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164as . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167asa fpr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172at . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173ate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179atmstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193atq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195atrm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196attachrset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198audit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199auditbin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203auditcat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205auditconv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207auditmerge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209auditpr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210auditselect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213auditstream . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218authexec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 220authrpt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222authqry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224autoconf6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225automount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226automountd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229autopush . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230awk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231back . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249backsnap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252banner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259basename . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259batch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261battery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262bc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263bdftopcf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 276bdiff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 277bellmail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278bffcreate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281bfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285bg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289bicheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 291biff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292bindintcpu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293bindprocessor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294binld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297biod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298bj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299bootauth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
iv AIX 7.1 1
-
bootlist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301bootparamd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 306bootpd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 307bootptodhcp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309bosboot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310bosdebug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314bs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316bsh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327bterm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329bugfiler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332burst . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335cachefslog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337cachefsstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339cachefswssize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340cal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341calendar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342cancel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344canonls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347captoinfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350cat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351catman . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354cb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355cd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356cdc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 358cdcheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360cdeject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362cdmount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363cdromd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364cdumount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366cdutil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367certadd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368certcreate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370certdelete . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373certget . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374certlink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375certlist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377certrevoke . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380certverify . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381cfgif . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383cfginet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 384cfgmgr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385cfgqos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389cfgvsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390cflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391cfsadmin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393chargefee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396chauth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397chauthent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400chC2admin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 401chCCadmin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402chcifscred . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403
v
-
chcifsmnt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404chclass . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406chcluster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410chcod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411chcomg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412chcondition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416chcons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421chcore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423chcosi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425chdev . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427chdisp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430chdom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431checkeq checkmm . . . . . . . . . . . . . . . . . . . . . . . . . . 432checknr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433chedition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434chfilt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435chfn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438chfont . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440chfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441chgif . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 450chginet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452chgroup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453chgrp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457chgrpmem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459chhwkbd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 461chiscsi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 463chitab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465chkbd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467chkey . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468chlang . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468chlicense . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471chlpclacl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472chlpcmd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477chlpracl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481chlpriacl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 487chlprsacl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492chlv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 496chlvcopy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501chmaster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503chmod . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504chmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 509chnamsv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512chndaf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513chnlspath . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516chnfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517chnfsdom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 519chnfsexp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520chnfsim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525chnfsmnt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529chnfsrtd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532chnfssec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534chown . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535
vi AIX 7.1 1
-
chpasswd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537chpath . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 539chprtsv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 541chps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 544chpv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546chque . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549chquedev . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550chresponse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 552chrole . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557chroot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 559chrsrc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 561chsec . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566chsensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570chserver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573chservices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575chsh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577chslave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579chssys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580chsubserver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583chtcb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586chtun . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587chtz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591chuser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591chusil . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604chvfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605chvg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 606chvirprt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 613chvmode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 614chwpar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 615chypdom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 625ckauth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626ckfilt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 626ckpacct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629ckprereq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630cksum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633clcmd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634clear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635clogin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 636clusterconf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637clsnmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 639cmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646col . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647colcrt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 649colrm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 650comb (SCCS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651comm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654comp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657compare_report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660compress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663comsat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665configassist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 666
vii
-
conflict . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 667confsetcntrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668confsrc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 673cp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 675cpcosi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 680cpio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 682cplv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693cpp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 695cpuextintr_ctl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 699cpupstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 701craps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 703createvsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 704crfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 710cron . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 716cronadm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 719crontab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 721crvfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 726csh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 727csmstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 729csplit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 731csum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 733ct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 736ctaclfck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 738ctags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 742ctcasd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 744ctctrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 746cthactrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 752cthagsctrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 754cthagstune . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 758cthatsctrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 759cthatstune . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 762ctlvsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 764ctmsskf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767ctscachgen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 771ctsidmck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 774ctskeygen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 777ctsnap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 780ctsthl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 782ctsvhbac . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 786ctsvhbal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 791ctsvhbar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 794cu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 797curt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 803custom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 813cut . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 820cw checkcw . . . . . . . . . . . . . . . . . . . . . . . . . . . . 822cxref . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 825
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 827 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 829
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 831
viii AIX 7.1 1
-
AIX ( 1 ) a c AIX CD
()
1
Web-based System Manager System Management InterfaceTool (SMIT)
Copyright IBM Corp. 2010 ix
-
()
1 ([ ]) ({ }) (|) unget
unget [ -rSID ] [ -s ] [ -n ] File ...
v (bold)
v (italics) Files Directories
v v v v 1 [ a | b ] a b { a | b } a b
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 1
-
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
v v - () v ; ()
xi
-
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 2 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 v
xii AIX 7.1 1
-
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 1
-
ac
/usr/sbin/acct/ac [ -d ] [ -p ] [ -w File] [ User... ]
ac wtmp
init login /var/adm/wtmp root adm 0 /var/adm/wtmp
No /var/adm/wtmp
wtmp -w
-d -p
-w File /var/adm/wtmp wtmp
: (x)
1. wtmp
/usr/sbin/acct/ac
2. wtmp smith jones
/usr/sbin/acct/ac smith jones
3. wtmp smith jones
Copyright IBM Corp. 2010 1
-
/usr/sbin/acct/ac -p smith jones
/usr/sbin/acct/ac ac /var/adm/wtmp
init login
acceptreject
accept Destinations
reject [ -r Reason ] Destination
accept Destinations Destination 1 1 lpstat -a
reject destinations destination 1 1 lpstat -a
accept -? reject -? 0
-r Reason Reason Reason Destination lpstat -a Reason new destination unknown reason
2 AIX 7.1 1
-
RBAC Trusted AIX : lssecattr getcmdattr
/var/spool/lp/*
enable lpadmin lpsched
acctcms
/usr/sbin/acct/acctcms [ -t | -a [ -o ] [ -p ] ] [ -c ] [ -j ] [ -n ] [ -s ] [ File ... ]
acctcms File acct
-o -p acctcms /etc/acct/holidays /etc/acct/holidays CPU () () ()
3
-
-a ASCII kcore (KB ) CPU (KB)1 CPU CPU acctcms kcore () kcore (KB) -t
-a
-o
-p -o -p acctcms /etc/acct/holidays /etc/acct/holidays CPU () () ()
TOTAL COMMAND SUMMARY
COMMAND NUMBER TOTAL TOTAL TOTALNAME CMDS KCOREMIN CPU-MIN REAL-MIN
MEAN MEAN HOG CHARS BLOCKSSIZE-K CPU-MIN FACTOR TRNSFD READ
-c kcore CPU -n -n
-j 1 other -n -c -n
-o -a
-p -a
-s
-t
acctcms -a
: (x) adm
4 AIX 7.1 1
-
today total
acctcms File . . . > todaycp total previoustotalacctcms -s today previoustotal > totalacctcms -a -s total
File today (previoustotal ) (total ) -a total ASCII
/etc/acct/holidays /usr/sbin/acct/acctcms acctcms
lastcomm runacct
acct utmpwtmpfailedlogin
acct
acctcom
/usr/sbin/acct/acctcom [ [ -q | -o File ] | [ -a ] [ -b ] [ -c Classname ] [-f ] [ -h ] [ -i ] [ -k ] [ -m] [ -r ] [ -t ] [ -v ] [ -w [ -X ] [ -W ]] [ -C Seconds ] [ -g Group ] [ -H Factor ] [ -I Number ] [ -lLine ] [ -n Pattern ] [ -O Seconds ] [ -u User ] [ -e Time ] [ -E Time ] [ -s Time ] [ -S Time ] [ -@ [WparName ] ] [ File ... ]
5
-
acctcom File /var/adm/pacct acctcom /usr/sbin/acct
File /dev/null acctcom /var/adm/pacct
File acctcom /var/adm/pacct acctcom ckpacct pacct /var/adm/pacct? (? )
1 ttyCPU (KB)
COMMAND START END REAL CPU MEANNAME USER TTYNAME TIME TIME (SECS) (SECS) SIZE(K)
root (#) (cron ) ? () TTYNAME
:
1. acctcom ps
2.
-a
-b acctcom
-c Classname :
-C Seconds CPU ( + ) Seconds
-e Time hh:mm:ss
-E Time hh:mm:ss -E -S acctcom
-f acct.h ac_flag 2 fork 2 AIX Version 6.1 Files Reference acct acct
6 AIX 7.1 1
-
-g Group ID
-h CPU ()
(total CPU time) / (elapsed time)-H Factor Factor
(total CPU time) / (elapsed time)-i () -k kcore ( 1
KB ) -l Line (L ) /dev/Line -I Number (i ) -m -h -k
-m -n Pattern Pattern Pattern
ed acctcom + ()
-o File -q
-O Seconds CPU -q -a
-q -o -r CPU
(user-time) / (system-time + user-time)-s Time
hh:mm:ss -S Time
hh:mm:ss -t CPU CPU -u User User
ID ID root # () ID ? ()
-v -w -W 8
132 -W -X 2
-X 8 -X -W 2
7
-
-@ [ WparName ] WparName
-@
RBAC Trusted AIX : lssecattr getcmdattr
1. CPU 2
/usr/sbin/acct/acctcom -O 2 < /var/adm/pacct
/var/adm/pacct
2. finance
/usr/sbin/acct/acctcom -g Finance < /var/adm/pacct
/var/adm/pacct
3. /dev/console 5
/usr/sbin/acct/acctcom -l /dev/console -s 17:00
/var/adm/pacct
4. 8
/usr/sbin/acct/acctcom -X < /var/adm/pacct
/var/adm/pacct
5. warpath WPAR
acctcom -@ warpath < /var/adm/pacct
/var/adm/pacct
6. WPAR
acctcom -@ < /var/adm/pacct
/var/adm/pacct
8 AIX 7.1 1
-
/usr/sbin/acct/acctcom acctcom /var/adm/pacct /etc/group /etc/passwd
ed ps runacct su
cron
acct
acct utmpwtmpfailedlogin
acctcon1 acctcon2
acctcon1 [ -l File ] [ -o File ] [ -p ] [ -t ] [ -X ]
acctcon2 [ -X ]
acctcon1acctcon1 runacct () (
9
-
) /var/adm/wtmp /var/adm/wtmp
acctcon1 ASCII
v v IDv v ()v ()v ()v (/)
acctcon1 acctcon1 1 -t acctcon1
-l login
acctcon2acctcon2 runacct acctcon1 acctmerg
: acctcon1
-l File (L ) () /var/adm/acct/nite/lineuse
-o File /var/adm/acct/nite/reboots
-p / -p acctcon1
-t
-X 8 : acctcon1 acctcon2
10 AIX 7.1 1
-
: adm (x)
1. (/var/adm/wtmp ) (/var/adm/logsess )
acctcon1 -t -l/var/adm/acct/nite/lineuse \-o/var/adm/acct/nite/reboots \ /var/adm/logsess
/var/adm/acct/nite/lineuse /var/adm/acct/nite/reboots2
2. (/var/adm/acct/nite/ctmp ) (/var/adm/logacct )
acctcon2 < /var/adm/acct/nite/ctmp \> /var/adm/logacct
/usr/sbin/acct/acctcon1 acctcon1 /usr/sbin/acct/acctcon2 acctcon2 /var/adm/wtmp
acctmerg fwtmpacctwtmp wtmpfix init login runacct
acct utmpwtmpfailedlogin
acct
acctctl
11
-
acctctl fadd file size
acctctl frm file
acctctl freset file
acctctl fquery [file]
acctctl fswitch [file]
acctctl isystem {time|off}
acctctl iprocess {time|off}
acctctl agproc {on|off}
acctctl agke {on|off}
acctctl agarm {on|off}
acctctl trquery [trid] [-@ [wpar]]
acctctl tron trid [-@ wpar]
acctctl troff trid [-@ wpar]
acctctl email {on|off|addr}
acctctl on [-@ [wpar]]
acctctl off [-@ [wpar]]
acctctl [-@ [wpar]]
acctctl turacct {on|off}
(AACCT) acctctl
v v v v
-@
AACCT 1 AACCT
12 AIX 7.1 1
-
SYSLOG
AACCT 2 AACCT
acctctl fadd file size
acctctl frm file
acctctl freset file
acctctl fquery [file]
acctctl fswitch [file]
2 projctl AIX 6.1 4 projctl
13
-
3 ()
v v v v v (CPU )
ID ID ID sys
acctctl trquery [trid] [-@ [wpar]] trid trid trid wpar -@ trid wpar -@ trid
acctctl tron trid [-@ wpar] wpar -@
acctctl troff trid [-@ wpar] wpar -@
ID
ID ID
14 AIX 7.1 1
-
4 AACCT
acctctl email {on|off|addr} on 80
acctctl iprocess {time|off} time
acctctl isystem {time|off} time
acctctl agproc {on|off}
acctctl agke {on|off}
acctctl agarm {on|off} ARM
acctctl dump pid
acctctl on [-@ [wpar]] wpar -@ wpar -@
acctctl off [-@ [wpar]] wpar -@ wpar -@
acctctl [-@ [wpar]] wpar -@ wpar -@
acctctl turacct {on|off} Scaled Performance Utilization ResourcesRegister (SPURR)
15
-
0 >0
root
root adm
RBAC Trusted AIX : lssecattr getcmdattr
1.
acctctl
Advanced Accounting is not running.Email notification is off.The current email address to be used is not set.Process Interval Accounting is off.System Interval Accounting is off.System-wide aggregation of process data is off.System-wide aggregation of third party kernel extension data is off.System-wide aggregation of ARM transactions is off.Files: 0 defined, 0 available.
2.
acctctl on
3. 200 MB
acctctl fadd /var/aacct/acctdata1 200
4. 2
acctctl iprocess 120
5.
acctctl agproc on
6.
acctctl email on
7.
acctctl email [email protected]
8. WPAR
acctctl on -@
9. wpar1 WPAR trid
16 AIX 7.1 1
-
acctctl trquery -@ wpar1
NUMBER STATE NAME33 disabled wpar-proc34 disabled wpar-agg_proc35 disabled wpar-agg_app36 enabled wpar-system38 enabled wpar-file39 enabled wpar-netif44 disabled wpar-agg_KE
/usr/bin/acctctl
/var/aacct /var/aacct/acctdata
AIX 6.1 4 projctl
AIX 6.1 .
The Open Group Application Response Measure (ARM) Issue4.0 - C Binding (ARM) API http://www.opengroup.org/tech/management/arm
acctdisk acctdusg
/usr/sbin/acct/acctdisk
/usr/sbin/acct/acctdusg [ -u File ] [ -p File ] [ -X ]
acctdisk acctdusg dodisk cron dodisk
diskusg acctdisk dodisk -o diskusg acctdusg
17
-
(YP ) acctdusg -p
acctdiskacctdisk diskusg acctdusg acctmerg
acctdusgacctdusg dodisk -o dodisk diskusg
acctdusg ( find / -print ) () /etc/passwd -p File
uid login #blocks
#blocks 1KB
-p File /etc/passwd -u File -X
: adm (x)
1. crontab cron
0 2 * * 4 /usr/sbin/acct/dodisk
dodisk (4) 2 (0 2) dodisk diskusg acctdisk /usr/adm/acct/nite/dacct
2. crontab cron
0 2 * * 4 /usr/sbin/acct/dodisk -o
18 AIX 7.1 1
-
dodisk (4) 2 (0 2) dodisk acctdusg acctdisk /var/adm/acct/nite/dacct
/usr/sbin/acct/acctdisk acctdisk /usr/sbin/acct/acctdusg acctdusg /etc/passwd /usr/sbin/acct
acctmerg diskusg dodisk runacct
cron
acct utmpwtmpfailedlogin
acct
acctmerg
/usr/sbin/acct/acctmerg [ -a [ Specification ] ] [ -h [ Specification ] ] [ -i [ Specification ] ] [-p [ Specification ] ] [ -q Filename ] [ -v [ Specification ] ] [ -X ] [ -t ] [ -u ] [ File ... ]
acctmerg () (tacct tacct ASCII tacctx tacctx ASCII ) (acct tacct tacctx /usr/include/sys/tacct.h )acctmerg File ( 9 )acctmerg ( ID ) -a-v -p acctmerg
19
-
acctmerg runacct ( 1 )/var/adm/acct/nite(x)/daytacct /var/adm/acct/sum(x)/tacctmonacct ASCII /var/adm/acct/fiscal
Specification 1 acct tacct(x) ta_name
-h2-3,11,15-13,2
-h
v (2)v CPU (3)v (11)v (15)v (14)v (13)v (2)
(1-18 1- )
acctmerg -i Specification tacct
tacct
1 UID ID 2 LOGIN NAME 3 CPU PRIME CPU ()4 CPU NPRIME 5 KCORE PRIME ()6 KCORE NPRIME 7 BLKIO PRIME 8 BLKIO NPRIME 9 RW/WR PRIME /10 RW/WR NPRIME 11 CONNECT PRIME ()12 CONNECT NPRIME 13 DISK BLOCKS 14 PRINT ()15 FEES 16 # OF PROCS 17 # OF SESS 18 # OF SAMPLES
20 AIX 7.1 1
-
-a[Specification] ASCII -h[Specification] -a
-p -v -i[Specification] ASCII
-p[Specification] ASCII -q Filename qacct (accrec.h )
ID ID
-t -u ID -v[Specification] ASCII -X 8
: (x) adm
1. -i1-2,13,18 dacct tacct
acctmerg -i1-2,13,18 output
acctmerg ID(i1-21318) dacct tacct
2. tacct jan2.rpt
acctmerg -v jan2.tmp
jan2.tmp Jan2.rpt ASCII Jan2.tmp
3. Jan2.tmp Jan2.rpt
acctmerg -i jan2.rpt
/usr/sbin/acct/acctmerg acctmerg /usr/include/sys/acct.h acct tacct /var/adm/acct/nite/daytacct
/var/adm/acct/sum/tacct
21
-
/var/adm/acct/fiscal /var/adm/acct/sum/tacct
acctcms acctcom acctcon1 acctcon2 acctdisk acctprc1acctprc2 accton fwtmp runacct
acct utmpwtmpfailedlogin
acct
Print spooler
acctprc1acctprc2 accton
/usr/sbin/acct/acctprc1 [ InFile]
/usr/sbin/acct/acctprc2 [ -X ]
/usr/sbin/acct/accton [ [-@] OutFile ]
3 acctprc acctprc1acctprc2 accton runacct
acctprc1 acct ID ASCII ID CPU CPU (1024 ) (64 )
InFile ID utmp File acctprc1 /etc/passwd InFile ID
acctprc2 acctprc1 () ID
22 AIX 7.1 1
-
accton OutFile () OutFile OutFile accton OutFile /var/adm/pacct
-X 8 acctprc2 tacct tacctx : acctprc2
-@
: adm (x)
1. out.file ASCII
/usr/sbin/acct/acctprc1 < /var/adm/pacct >out.file
2. 1 ASCII
/usr/sbin/acct/acctprc2 < out.file > \/var/adm/acct/nite/daytacct
tacct ID /var/adm/acct/nite/daytacct acctmerg /var/adm/acct/sum/tacct
3.
/usr/sbin/acct/accton
/usr/sbin/acct/acctprc1 acctprc1 /usr/sbin/acct/acctprc2 acctprc2 /usr/sbin/acct/accton accton /etc/accton accton /etc/passwd acctprc1 ID
23
-
acctmerg runacct
acct utmp
acctrpt
acctrpt [ -f filename ] [ -F ] [ -U uid ] [ -G gid ] [ -P projID ] [ -C command ] [ -b begin_time ] [ -eend_time ] [ -p projfile ] [ -n ]
acctrpt [ -f filename ] [ -F ] -L resource [ -b begin_time ] [ -e end_time ]
acctrpt [ -f filename ] [ -F ] -T [ -b begin_time ] [ -e end_time ]
acctrpt { -c | -x } [ -f filename ] [ -p projfile ] [ -n ]
acctrpt [-b begin_time] [-e end_time] [ [ [-U uid] [-G gid] [-C command] [-@ wpar] ] | [ -L resource [-@wpar] ] ] [-n] [-f filename ]
acctrpt LPAR
4 -U-G-P -C acctrpt -U ALL -P ALL UID
24 AIX 7.1 1
-
LPAR () -L LPAR
: -L OS LPAR
API -T
-U-G-P-C-L -T
-@ wpar
-@
-b begin_time begin_time MMDDhhmmyy 10 MM DD hh mm yy 2 begin_time end_time end_time begin_time
-C command 12 -C ALL
-c -e end_time end_time
MMDDhhmmyy 10 MM DD hh mmyy 2 end_time begin_time end_time begin_time
-f filename -f /var/aacct/aacctdata
25
-
-F
-G gid GID GID GID -G ALL
-L resource LPAR resource 1
cpumemCPU
filesys
netif
disk
vtarget VSCSI
vclient VSCSI
ALL LPAR -L -U-P-G-C -T
-n ID
-P projID ID ID -P ALL
-p projfile -p
-T -T -U-P-G-C -L
-U uid UID UID UID -U ALL
-x
0 >0
26 AIX 7.1 1
-
RBAC Trusted AIX : lssecattr getcmdattr
1. /var/aacct/acctdata
acctrpt -F -f /var/aacct/acctdata
2. /var/aacct/acctdata
acctrpt -U ALL -f /var/aacct/acctdata
3. /var/aacct/acctdata ID 256 ID 257 uname
acctrpt -U 256 257 -C uname -f /var/aacct/acctdata
4. /var/aacct/acctdata
acctrpt -P ALL -U ALL -f /var/aacct/acctdata
5. /var/aacct/acctdata CPU
acctrpt -L cpumem -f /var/aacct/acctdata
6.
acctrpt -c -f /var/aacct/acctdata
PROJNAME PROJID AGGR ORIGIN
System 0 ENABLED LOCAL
7. ID
acctrpt -P ALL -f /var/aacct/acctdata -n
-f acctrpt
File Name Open Date Last Close Date Host Name Partition Name Partition ID System Model System ID
27
-
-P-G-U -C 1 acctrpt
PROJID ( ID)UID ( ID)GID ( ID)CMD CNT CPU CPU ()LFILE (MB )DFILE (MB )LSOCKET (MB )RSOCKET (MB )DMEM PMEM VMEM
-L cpumem acctrpt CPU LDAP
CNT IDLE CPU ()IOWAIT CPU ()SPROC ()UPROC ()INTR ()IO PGSPIN PGSPOUT LGPGUTIL PGRATE (1 )PMEMUTIL LPAR (MB )IOMEMUTIL (MB )
-L filesys acctrpt LPAR
CNT DEVNAME MOUNTPT FSTYPE RDWR OPEN CREATE LOCKS XFERS (MB )
-L netif acctrpt LPAR
CNT NETIFNAME NUMIO
28 AIX 7.1 1
-
XFERS (MB )
-L disk acctrpt LPAR
CNT DISKNAME BLKSZ ()XFERS READ WRITE
-L vtarget acctrpt VSCSI LPAR
CNT CLIENT# SERVERID IDUNITID IDBYTESIN (MB )BYTESOUT (MB )
-L vclient acctrpt VSCSI LPAR
CNT CLIENT# SERVERID IDUNITID IDBYTESIN (MB )BYTESOUT (MB )
-T acctrpt
PROJID ( ID)CNT CLASS GROUP NAME TRANSACTION USER RESPONSE ()QUEUED ()USER CPU ()
-@ acctrprt LPAR
: -U-G-P -C ID TRID_agg_proc ID
29
-
acctrpt * () ID -2
/usr/bin/acctrpt acctrpt /var/aacct/acctdata
AIX Version 6.1 Technical Reference: Base Operating System and Extensions Volume 1 libaacct.a
AIX 6.1 .
acctwtmp
utmp
/usr/sbin/acct/acctwtmp "Reason"
acctwtmp runacct utmp 11 Reason
Reason 11
: adm (x)
/usr/sbin/acct/accwtmp acctwtmp /var/adm/wtmp
30 AIX 7.1 1
-
/usr/include/utmp.h
acctcon1 acctcon2 acctmerg fwtmp runacct wtmpfix
aclconvert
1
aclconvert [ -R ] [-I] -t ACLType File
aclconvert File (ACL) ACLType ACL File ACL ACL ACL
-I -R
ACL -t ACLType ACL ACL
ACL -I
0
31
-
>0
trusted computing base
aclconvert
FILE_Acl
RBAC Trusted AIX : lssecattr getcmdattr
1. status AIXC ACL
aclconvert -t AIXC status
2. dir1 AIXC ACL
aclconvert -RI -t AIXC dir1
dir1 ACL AIXC
/usr/bin/aclconvert
/usr/bin/aclconvert aclconvert
acledit aclput chmod
32 AIX 7.1 1
-
acledit
acledit [ -t ACL_type ] [ -v ] FileObject
acledit FileObject EDITOR
: EDITOR acledit ACL ACL
ACL
attributes: SUIDbase permissions:
owner (frank): rw-group (system): r-xothers : ---
extended permissions:enabled
permit rw- u:dhsdeny r-- u:chas, g:systemspecify r-- u:john, g:gateway, g:mailpermit rw- g:account, g:finance
: acledit trusted process
33
-
-t ACL ACL ACL ACL ACL ACL ACL ACL ACL ACL ACL ACL
-v ACL FS ACL acledit
trusted computing base
acledit
FILE_Acl
x /usr/bin/aclgetx /usr/bin/aclput
RBAC Trusted AIX : lssecattr getcmdattr
plans
acledit plans
34 AIX 7.1 1
-
/usr/bin/acledit acledit
aclget aclput auditpr chmod
aclget
aclget [ -o OutAclFile ] [ -v ]FileObject
aclget FileObject OutAclFile
ACL (ACE)
-o OutAclFile OutFile
-v ACL FS ACL
trusted computing base
RBAC Trusted AIX :
35
-
lssecattr getcmdattr
ACL 1 ACL (ACE) ACE ( ACE ) () ACE ACL ACL ACL AIX ACL ACL ACL ACL
1. status
aclget status
2. plans status
aclget plans | aclput status
plans ACL ACL ACL ACL ACL
3. plans acl1
aclget -o acl1 plans
/usr/bin/aclget aclget
acledit aclput chmod
36 AIX 7.1 1
-
aclgettypes
ACL
aclgettypes FileSystemPath
aclgettypes ACL ACL ACL
0 >0
trusted computing base
RBAC Trusted AIX : lssecattr getcmdattr
1. /home/plan1 ACL
aclgettypes /home/plan1
/usr/bin/aclgettypes
/usr/bin/aclgettypes aclgettypes
37
-
acledit aclput chmod
aclput
aclput [ -i inAclFile ] [ -R ] [ -t acl_type ] [ -v ]FileObject
aclput FileObject -i
: Ctrl-D
ACL 1 ACL (ACE) ACE ( ACE ) () ACE ACL ACL ACL AIX ACL ACL ACL
38 AIX 7.1 1
-
-i inAclFile InFile
: ACL ACL -R ACL
-t ACL_type ACL ACL
ACL ACL -v ACL
ACL
trusted computing base
aclput
FILE_Acl
RBAC Trusted AIX : lssecattr getcmdattr
1.
aclput statusattributes: SUID
Ctrl-D
2. acldefs status
aclput -i acldefs status
3. plans status
39
-
aclget plans | aclput status
4. plans status 2
aclget -o acl plans
plans acl acl
aclput -i acl status
2 acl status
/usr/bin/aclput aclput
acledit aclget auditpr chmod
adb
adb [ -k ] [ -l Directory ] [ -w ] [ ObjectFile [ CoreFile ] ]
adb
ObjectFile ObjectFile adb ObjectFile a.out
CoreFile ObjectFile CoreFile core
40 AIX 7.1 1
-
adb adb Quit Interrupt adb
adb
[Address] [,Count] [Command] [;]
Address Count Count 1 Address . () Address
; ()
adb
v v v v v
AIX 6.1 adb
: adb
-k -l Directory $< $
-
cc dbx
AIX 6.1 adb
addbib
addbib [ -a ] [ -p PromptFile] Database
addbib refer
Instructions?
Enter addbib Database
Enter (null ) - () Continue? Enter
(viexedited)
-a Ctrl-D
42 AIX 7.1 1
-
-p PromptFile PromptFile addbib
addbib
%A
%B
%C ()
%D
%E
%F (refer )
%G
%H
%I ()
%J
%K
%L refer -k
%M ()
%N
%O
%P
%Q ()
%R ()
%S
%T
%V
%X refer roffbib
%Y,Z refer
: %A
%A Bill Tuthill%T Refer - A Bibliography System%I Computing Services%C Berkeley%D 1982%O UNIX 4.3.5.
43
-
indxbib lookbib refer roffbib sortbib
addrpnode
1
addrpnode [-c] [-h] [-TV] node_name1 [node_name2 ... ]
addrpnode [-c] { -f -F { file_name "-" } } [-h] [-TV]
addrpnode :preprpnode
addrpnode (addrpnode) 1 1 1 1
1 addrpnode -c
addrpnode startrpnode
-c 1
addrpnode -c addrpnode 1
-f | -F { file_name | "-" }file_name 1 (#) (# 1 )
STDIN -f "-" -F "-"
-h
-T
44 AIX 7.1 1
-
-V
node_name1 [node_name2 ... ] 1
IP DNS () IP
addrpnode IBM.PeerDomain IBM.PeerNode preprpnode preprpnode
0
1 RMC
2
3
4
5
CT_CONTACT
(RMC) CT_CONTACT IP RMC CT_CONTACT RMC RMC
CT_IP_AUTHENTCT_IP_AUTHENT RMC IP CT_CONTACT IP RMC CT_CONTACT IP CT_IP_AUTHENT CT_IP_AUTHENT (DNS)
45
-
AIX Reliable Scalable Cluster Technology (RSCT)
-f "-" -F "-" 1
-h
nodeB nodeC ApplDomain (ApplDomain nodeA ) nodeA
addrpnode nodeB nodeC
/usr/sbin/rsct/bin/addrpnode
:RSCT: Administration Guide()
: lsrpnodemkrpdomainpreprpnodermrpnodestartrpdomainstartrpnode
: rmccli (RMC )
addX11input
ODM () X11
addX11input
addX11input ODM X11 addX11input addX11input DeviceNameGenericName ModuleName ODM
46 AIX 7.1 1
-
root system
ODM could not open class ODM X11 /usr/lib/objrepos
deleteX11input listX11input
adfutil
PS/2 Micro Channel AIX 5.1
adfutil [ -d Device | -f File] [ -a AdapterName| -c PS/2CardID] [ -m FileName ...] [ -q ]
adfutil PS/2 Micro Channel AIX 5.1 PS/2 DOS ASCII
DOS @XXXX.ADF (XXXX PS/2CardID)@XXXX.ADF adfutil 1 -c DOS
/tmp/adfnnn nnn ID ID
/usr/lib/microcode-m
: Micro Channel
47
-
-a AdapterName ODM DOS AdapterName
-c PS/2CardID PS/2CardID ID DOS 4
-d Device Device /dev/fd0
-f File -f
-m FileName FileName /usr/lib/microcode
-q
1. /dev/fd0
adfutil
2. /home/owner/adf.file
adfutil -f /home/owner/adf.file
3. insert diskette /dev/fd0 @0FFE.ADF
adfutil -c 0FFE -q
4.
adfutil -m FileName
dosdir
admin (SCCS)
Source Code Control System (SCCS)
48 AIX 7.1 1
-
SCCS admin { -n -i[FileName ] } [ -a { User | GroupID } ] ... [ -f HeaderFlag[Value ] ... ] [ -r SID ] [ -tFileName ] [ -m ModificationRequestList ] [ -y[Comment ] ] File ...
: ()
SCCS admin [ -a { User | GroupID } ] ... [ -e { User | GroupID } ] ... [ { -d HeaderFlag | -fHeaderFlag[Value ] ... } ] [ -m ModificationRequestList ] [ -t[FileName ] ] [ -y[Comment ] ] File ...
: ()
SCCS admin -h File ...
SCCS admin -z File ...
admin (SCCS) SCCS
admin get
File admin -i -n admin
File admin SCCS SCCS s. File - () admin 1 SCCS
SCCS s.Name SCCS admin x.Name x x SCCS admin x admin x SCCS admin SCCS
SCCS 755 ()
49
-
SCCS (444) SCCS SCCS SCCS
admin ( z.Name) SCCS
() -f -d get g
-a User -a GroupID SCCS () User ID ID 1 admin -a SCCS User GroupID ! () -a !User
-d HeaderFlag SCCS SCCS 1 admin -d
-e User -e GroupID SCCS ID 1 admin -e
-f HeaderFlag[Value ] SCCS 1 admin 12 HeaderFlag Value
50 AIX 7.1 1
-
-h SCCS SCCS 1 SCCS SCCS -h -z -h
-i[FileName ] FileName SCCS 1 -i admin -i -n SCCS admin 1 admin 1 SCCS-n SCCS FileName 1 512MBCS() FileName
-m ModificationRequestList SCCS (Modification Request: MR) null v MR v (MR ) v MR admin
-n SCCS -i -n SCCS
-r SID SCCS (SID) SID 4 (3.2.5.1) admin 1 -r 1 1 ( 1.1) SID get SID
-r -i -n SCCS
51
-
-t[FileName ] FileName SCCS SCCS -t SCCS
v -t SCCS
v -t SCCS
v MBCS ()
FileName
-y[Comment ] delta SCCS admin
date and time created YY/MM/DD HH:MM:SS by Login
MBCS () FileName
-z SCCS SCCS 1 (-h )
: -z admin SCCS SCCS
File admin - () admin
-f -d get g
b get -b c Number Number get -e Number
0 9999 ( 9999 )d SID SID get f Number Number get -e Number
0 9999 ( 1 )
52 AIX 7.1 1
-
i [String] get delta
There are no SCCS identification keywords in the file. (cm7)
SCCS SCCS (get )
j get SCCS SID j SCCS
lList (L ) List 1 get -e
: : = | , : : = SID | a
a SCCS
m Module get SCCS 59 Module Module s. SCCS MBCS ()
n null delta 2.7 5.1 3 4 null 3 4 s. null null SCCS
q Text get SCCS
t Type get g
v [Program] delta (MR) Program MR SCCS v -m (null ) MBCS ()
SCCS SCCS SCCS SCCS
SCCS SCCS -h -z admin -h admin SCCS -z
53
-
0 >0
test.c ed
1. SCCS 1 s.test.c SCCS
$ admin -n s.test.c
-n admin SCCS
2. SCCS
$ admin -itest.c s.test.cThere are no SCCS identification keywords in the file (cm7)$ lss.test.c test.c
-i admin 1.1 1.1 SCCS
$ mv test.c back.c
There are no SCCS identification keywords in the file (cm7)SCCS SCCS SIDget SCCS s. i
SCCS s. SCCS
admin SCCS 1.1 SID SCCS 0 SID 1.0 2.1.1.0 1
3. test.c 3.1 -r admin
$ admin -itest.c -r3 s.test.c
SCCS ID admin -aSCCS ID ID ID SCCS -a ID SCCS
54 AIX 7.1 1
-
4. ID dan
$ admin -adan s.test.c
5. SCCS SCCS SCCS -h admin
$ admin -h s.file1 s.file2 ...$ admin -h directory1 directory2 ...
SCCS admin
ERROR [s. filename]:1255-057 The file is damaged. (co6)
-z admin
$ admin -z s.file1
SCCS SCCS
/usr/bin/admin SCCS admin
delta ed get prs sccshelp what
sccsfile
AIX 6.1 SCCS
AIX 6.1 (SCCS)
aixmibd
AIX (MIB) SimpleNetwork Management Protocol (SNMP) 3 AIX EnterpriseSpecific MIB
aixmibd [-f FileName ] [-d Level ] [-a Host ] [-c Community ]
55
-
AIX MIB AIX Enterprise Specific MIB (aixmibd) SNMP AIX snmpd SNMP-DPI API (snmpinfo ) AIX MIB SNMP
() /home 95% ( (%))
: AIX (SRC) aixmibd
-a Host IPv4IPv6
-c Community -d Level /
56
v 8 = DPI 1v 16 = DPI 2v 32 = 1v 64 = 2v 128 = 3
-f File
1. aixmibd instrumhost1 SNMP
startsrc -s aixmibd -a "-a host1 -c instrum"
56 AIX 7.1 1
-
2. aixmibd SRC startsrc aixmibd startsrc publicTCP nmsu SNMP
startsrc -s aixmibd -a "-a nmsu"
/etc/aixmibd.conf aixmibd
/usr/samples/snmpd/aixmibd_security_readme /usr/samples/snmpd/aixmibd_security_readme /etc/aixmibd.conf
/usr/samples/snmpd/aixmibd.my aixmibd MIB
clsnmp snmpinfo SNMP 3 snmpdv3snmptrap
aixpert
aixpert
aixpert -l h|high | m|medium | l|low | d|default | s|sox-cobit [-n -o filename ] [ -a -o filename ] [ -p]
aixpert -c [ -p ]
aixpert -u [ -p ]
aixpert -d
aixpert [-f filename ] [ -a -o filename ] [ -p ]
aixpert AIX
aixpert -l aixpert -l high
57
-
aixpert -l -n -o filename filename -f
() 2 aixpert
: aixpert aixpert
-a -o -a -o
-p -p -l-u-c -f
-c /etc/security/aixpert/core/appliedaixpert.xml
-f filename
/etc/security/aixpert/core/hls.xml
aixpert -l h -n /etc/security/aixpert/core/hls.xml
aixpert -f /etc/security/aixpert/core/hls.xml
-f appliedaixpert.xml
/etc/security/aixpert/core/appliedaixpert.xml/etc/security/aixpert/core/undo.xml
58 AIX 7.1 1
-
-l
h|high
m|medium
l|low
d|defaultAIX
s|sox-cobitSOX-COBIT
-l -n -o
/etc/security/aixpert/core/appliedaixpert.xml/etc/security/aixpert/core/undo.xml
: d|default aixpert ()
-n -o -n -o
-o filename root
-u -d (DTD)
filename root
aixpert root
1.
aixpert -l high -n -o /etc/security/aixpert/plugin/myPreferredSettings.xml
XML ( )
59
-
2.
aixpert -f /etc/security/aixpert/plugin/myPreferredSettings.xml
3.
aixpert -c -p
/usr/sbin/aixpert/ aixpert
/etc/security/aixpert/core/aixpertall.xml XML -r-------- root
/etc/security/aixpert/core/appliedaixpert.xml XML /etc/security/aixpert/log/aixpert.log
syslog aixpert -rw------- root
/etc/security/aixpert/log/firstboot.log (SbD)
/etc/security/aixpert/core/undo.xml xml
AIX
aixpertldap
AIX Security Expert XML Light Directory Access Protocol (LDAP)
aixpertldap -u -D bindDN -w bindPwd [ -b baseDN ] [ -f filename ] [ -l label ]
aixpertldap -d -D bindDN -w bindPwd [ -b basedn ]
aixpertldap [ -? ]
aixpertldap LDAP AIX
Security Expert XML (XML
60 AIX 7.1 1
-
) aixpert
AIX Security Expert LDAP /etc/security/aixpert/ldap aixpert -fAIX
Security Expert Web-based System Manager (websm) (bindDN ) (bindPwd ) LDAP AIX Security Expert websm (GUI)
: LDAP XML LDAP LDAP
-D bindDN LDAP -w bindPwd LDAP XML
-b basedn XML
v XML basedn XML basedn basedn : cn=aixdata
basedn "ou=Austin,o=ibm,c=US" aixpertldap XML "ou=aixpert,ou=Austin,o=ibm,c=US" (DN)
v XML basedn aixpertldap DN XML XML basedn (cn=aixdata)
basedn aixpertldap basedn : ou=aixpert, ou=aixdata XML
-d XML LDAP /etc/security/aixpert/ldap
-f filename LDAP XML
/etc/security/aixpert/core/appliedaixpert.xml LDAP
: f d
61
-
-l label XML XML
XML (Accounts department) AccountsDept
: l d -u XML LDAP -?
0 1
root aixpertldap
1. ou=aixpert, ou=Bangalore,o=ibm,c=IN DN /home/hussain/netwsec.xml
NetworkSecurity
aixpertldap -u -D binddn -w secret -b ou=Bangalore,o=ibm,c=IN-f /home/hussain/netwsec.xml -l NetworkSecuriry
2. ou=aixpert, ou=Bangalore,o=ibm,c=IN DN /etc/security/aixpert/ldap XML
aixpertldap -d -D binddn -w secret -b ou=Bangalore,o=ibm,c=IN
3. ou=aixpert, cn=aixdata DN XML
aixpertldap -d -D binddn -w secret
/etc/security/aixpert/ldap XML
aixpert
AIX
LDAP (Light Directory Access Protocol)
aixterm
X Window
62 AIX 7.1 1
-
aixterm [ -ah ] [ -ar ] [ -autopush ] [ -b NumberPixels] [ -bd Color] [ -bg Color] [ -bwNumberPixels] [ -cc CharRange:Value[ ,... ] ] [ -cr Color] [ -csd CharShape] [ -cu ] [ -C ] [-display Name:Number] [ -dw ] [ -f0 Font] [ -f1 Font] [ -f2 Font] [ -f3 Font] [ -f4 Font ] [-f5 Font ] [ -f6 Font ] [ -f7 Font ] [ -f0 FontSet ] [ -f1 FontSet ] [ -f2 FontSet ] [ -f3 FontSet ][ -f4 FontSet ] [ -f5 FontSet ] [ -f6 FontSet ] [ -f7 FontSet ] [ -fb Font ] [ -fg Color ] [-fi FontSet ] [ -fn Font ] [ -fs Font ] [ -fullcursor ] [ -geometry Geometry ] [#geometry Geometry ] [ -help ] [ -i ] [ -ib File ] [ -im InputMethod ] [ -j ] [ -keywords ] [-lang Language ] [ -l ] [ -leftscroll ] [ -lf File ] [ -ls ] [ -mb ] [ -mc Number ] [ -ms Color ][ -mn ] [ -n IconName ] [ -name Application ] [ -nb Number ] [ -nobidi ] [ -nonulls ] [-nss NumShape ] [ -orient Orientation ] [ -outline Color ] [ -po Number ] [ -ps ] [ -pt Preedit ][ -reduced ] [ -rfb Font ] [ -rfi Font ] [ -rfn Font ] [ -rfs Font ] [ -rf0 Font ] [ -rf1 Font ] [-rf2 Font ] [ -rf3 Font ] [ -rf4 Font ] [ -rf5 Font ] [ -rf6Font ] [ -rf7 Font ] [ -rf0 FontSet ] [-rf1 FontSet ] [ -rf2 FontSet ] [ -rf3 FontSet ] [ -rf4 FontSet ] [ -rf5 FontSet ] [ -rf6 FontSet ] [-rf7 FontSet ] [ -rv ] [ -rw ] [ -s ] [ -sb ] [ -sf ] [ -si ] [ -sk ] [ -sl NumberLines ] [-sn ] [ -st ] [ -suppress ] [ -symmetric ] [ -T Title ] [ -text TextType ] [ -ti ] [ -tm String ][ -tn TerminalName ] [ -ut ] [ -v ] [ -vb ] [ -W ] [ -xrm String ] [ -132 ] [ -e Command ]
aixterm X Window VT102 (HFT) VT102 -v
aixterm 16
aixterm aixterm
aixterm () aixterm
aixterm 3
v v v
()
aixterm () ()AIXwindows (MWM) aixterm
63
-
WINDOWID aixterm ID
aixterm TERM TERM=aixterm
TERM TERM ( .profile )
rlogintn rsh TERM aixterm 2
1. TERM=aixterm
2. export TERM
(vi ) aixterm 1
1. su
2. cd/tmp
3. mkdir Xxxxx
4. cd Xxxxx
5. ftp LocalSystemName
6. cd /usr/share/lib/terminfo
7. get ibm.ti
8. quit
9. TERMINFO=/tmp/Xxxxx
10. export TERMINFO
11. tic ibm.ti
12. ls
13. ls a
14. mkdir /usr/share/lib/terminfo/a
15. cp a/aixterm* /usr/share/lib/terminfo/a
16. cd /tmp
17. rm -r /tmp/Xxxxx
18. exit
19.
a. TERM=aixterm
b. export TERM
/aixterm /Arabic/Hebrew -lang (ar_AAAr_AAiw_IL Iw_IL) SMIT Web-based System Manager wsm system Cultural Environment ()
64 AIX 7.1 1
-
Arabic/Hebrew Arabic/Hebrew
v v v v v
: Arabic/Hebrew .Xdefaults
: Arabic/Hebrew 2
v v
: Arabic/Hebrew
v v v v v
/AIX 6.1
:
: Arabic/Hebrew
E N SCR->
-
blank ghain I V U A H P
: ()
Arabic/Hebrew
Alt + Enter Alt + Right Shift Arabic/Hebrew Alt + Left Shift
Alt + Kpd*
Alt + Kpd 1 Alt + Kpd 2 Alt + Kpd 3 Alt + Kpd 4 ()Alt + Kpd 7 Alt + Kpd 8 Shift + Kpd / (/) Alt + Kpd /
/ Arabic/Hebrew telnettn tn3270
aixterm
aixterm
Xv VT100 aixterm
Xh HFT aixterm
66 AIX 7.1 1
-
H HFT
V VT100
BEL ()
0x07
Xv, Xh, H, V
BS ()
0x08
Xv, Xh, H, V
HT ()
0x09
Xv, Xh, H, V
LF ()
0x0A
Xv, Xh, H, V
VT ()
0x0B
Xv, Xh, H, V
FF ()
0x0C
Xv, Xh, H, V
67
-
CR ()
0x0D
Xv, Xh, H, V
SO ()
0x0E
Xv, Xh, H, V
SI ()
0x0F
Xv, Xh, H, V
DCI () 1
0x11
H, V
DC3 () 3
0x13
H, V
CAN ()
0x18
H, V
SUB () ()
0x1A
H, V
68 AIX 7.1 1
-
ESC ()
0x1B
Xv, Xh, H, V
SS4 () 4
0x1C
H
SS3 () 3
0x1D
H
SS2 () 2
0x1E
H
SS1 () 1
0x1F
H
cbt ()
ESC [ Pn Z
Xv, Xh, H
cha ()
ESC [ Pn G
Xv, Xh, H
69
-
cht ()
ESC [ Pn I
H
ctc ()
ESC [ Pn W
H
cnl ()
ESC [ Pn E
H
cpl ()
ESC [ Pn F
Xv, Xh, H
cpr ()
ESC [ Pl; Pc R
Xv, Xh, H, V
cub ()
ESC [ Pn D
Xv, Xh, H, V
cud ()
ESC [ Pn B
Xv, Xh, H, V
70 AIX 7.1 1
-
cuf ()
ESC [ Pn C
Xv, Xh, H, V
cup ()
ESC [ Pl; PC H
Xv, Xh, H, V
cuu ()
ESC [ Pn A
Xv, Xh, H, V
cvt ()
ESC [ Pn Y
H
da1
v ( vt100 )v (vt100 )
v ESC [ cv ESC [ 0 cv ESC [ ? 1 ; 2 c
Xv, Xh, V
dch ()
ESC [ Pn P
Xv, Xh, H
71
-
decaln ()
ESC # 8
Xv, Xh, V
deckpam ()
ESC =
Xv, V
deckpnm ()
ESC >
Xv, V
decrc ()
ESC 8
Xv, Xh, V
decsc ()
ESC 7
Xv, Xh, V
decstbm ()
ESC [ Pt; Pb r
Xv, Xh, V
dl ()
ESC [ Pn M
Xv, Xh, H
72 AIX 7.1 1
-
dsr ()
ESC [ Ps n
v 0 vt100 : - Xv, Xh, Vv 5 : - Xv, Xh, Vv 6 : - Xv, Xh, H, Vv 13 - H
dmi ()
ESC ` ()
H
emi ()
ESC b
H
ea ()
ESC [ Ps O
v 0 - Xv, Xh, Hv 1 - Xv, Xh, Hv 2 - Xv, Xh, H
ed ()
ESC [ Ps J
v 0 - Xv, Xh, H, Vv 1 - Xv, Xh, H, Vv 2 - Xv, Xh, H, V
73
-
ef () -esall
ESC [ Ps N
v 0 - Xv, Xh, Hv 1 - Xv, Xh, Hv 2 - Xv, Xh, H
el ()
ESC [ Ps K
v 0 - Xv, Xh, H, Vv 1 - Xv, Xh, H, Vv 2 - Xv, Xh, H, V
ech ()
ESC [ Pn X
Xv, Xh, H
hts ()
ESC H
Xv, Xh, H, V
hvp ()
ESC [ Pl; Pc f
Xv, Xh, H, V
74 AIX 7.1 1
-
ich ()
ESC [ Pn @
Xv, Xh, H
il ()
ESC [ Pn L
Xv, Xh, H
ind ()
ESC D
Xv, Xh, H, V
ls2 () G2
ESC n
Xv
ls3 () G2
ESC o
Xv
nel ()
ESC E
Xv, Xh, H, V
ksi ()
ESC [ Ps p
H
75
-
pfk ()PF
ESC [ Pn q
Xh, H
rcp ()
ESC [ u
Xv, Xh, H
ri ()
ESC M
Xv, Xh, H, V
ris ()
ESC c
Xv, Xh, H, V
rm ()
v ANSI ()-ESC [ Ps;...;Psv XTERM :
()-ESC [ ? Ps;...;Ps l
v XTERM : ()-ESC [ ? P;...;Ps r
v XTERM : ()-ESC [ ? Ps;...;Ps s
76 AIX 7.1 1
-
sapv
v 0 BIDI v 1 v 2 v 3 v 5 ()v 6 ()v 7 ()v 8 ()v 13 v 14 v 15 v 18 ()v 19 ()v 20 ()v 21 5, 6, 7, 8v 22 v 23 v 24 v 5 8 21 22 1
ESC [Psl;...Psn]
Xh
scp ()
ESC [ s
Xv, Xh, H
77
-
scs ()
v v ASCII (USASCII)v
:
v ESC ( A (GO)v ESC ) A (G1)v ESC * A (G2)v ESC + A (G3)
ASCII (USASCII):
v ESC ( B (GO)v ESC ) B (G1)v ESC * B (G2)v ESC + B (G3)
:
v ESC ( 0 (GO)v ESC ) 0 (G1)v ESC * 0 (G2)v ESC + 0 (G3)
Xv, V
sd ()
ESC [ Pn T
H
sl ()
ESC [ Pn Sp @
H
78 AIX 7.1 1
-
spd ()
v 0 Latin v 1 National
ESC [Ps1;1 S
Xh
sr ()
ESC [ Pn Sp A
H
srs ()
v 0 v 1
ESC [Ps[
Xh
ss2 () G2
ESC N
Xv
ss3 () G3
ESC O
Xv
su ()
ESC [ Pn S
Xv, Xh, H
79
-
sgr ()
ESC [ Ps m
v 0 - Xv, Xh, H, Vv 1 - Xv, Xh, H, Vv 4 - Xv, Xh, H, Vv 5 () - Xv, Xh, H, Vv 7 - Xv, Xh, H, Vv 8 - Xh, Hv 10..17 - Xh, Hv 30..37 - Xh, Hv 40..47 - Xh, Hv 90..97 - Xh, Hv 100..107 - Xh, H
sg0a ()GO
ESC ( = 08:03:00"
08:03:00
7. 05/05/89 1
"date == 05/03/89""date != 05/03/89""date < 05/03/89""date 05/03/89""date >= 05/03/89"
05/05/89
/usr/sbin/auditselect auditselect /etc/rc /etc/security/audit/config /etc/security/audit/events /etc/security/audit/objects ()
/etc/security/audit/bincmds auditbin
217
-
/etc/security/audit/streamcmds auditstream /etc/security/audit/hosts CPU ID
audit auditcat auditconv auditpr auditstream env
auditbin
auditstream
auditstream [ -m ] [ -c Class ...]
auditstream /dev/audit () -c (/etc/security/audit/config )
auditselect auditpr
auditstream auditstream /etc/security/audit/config
: auditstream
218 AIX 7.1 1
-
-c Class /etc/security/audit/config
-m ID
(x) root setuid root trusted computing base
r /dev/audit
RBAC Trusted AIX : lssecattr getcmdattr
1. /etc/security/audit/config
cmds = /etc/security/audit/streamcmds
streammode=on
/etc/security/audit/streamcmds
/usr/sbin/auditstream -c authentication | \/usr/sbin/auditpr -v > /dev/console
/usr/sbin/auditstream | /usr/sbin/auditselect -e \"result == FAIL_ACCESS" | \/usr/sbin/auditpr -t 2 -v > /dev/lpr2
2 /dev/lp2
2.
/usr/sbin/auditstream | /usr/sbin/auditselect -e "event == \USER_Login || event == USER_SU" | \/usr/sbin/auditpr -v > /dev/lp0 &
219
-
su
/usr/sbin/auditstream auditstream /etc/rc /dev/audit /etc/security/audit/config /etc/security/audit/events /etc/security/audit/objects ()
/etc/security/audit/bincmds auditbin /etc/security/audit/streamcmds auditstream /etc/security/audit/hosts ID
audit auditcat auditconv auditpr auditselect
auditbin
authexec
(RBAC)
authexec RBACcommandName
authexec RBAC authexec RBAC RBAC RBACcommandName authroles
authexec /usr/sbin/
authexec RBACcommandName
220 AIX 7.1 1
-
RBAC 16
authexec exec authexec
RBACcommandName root RBAC root
RBACcommandName RBAC RBACcommandName
:
usr/sbin/shutdown authroles
authexec /usr/sbin/shutdown
authrole usr/sbin/shutdown
/usr/sbin/shutdown:
accessauths=aix.system.boot.shutdown
innateprivs=PV_AZ_ROOT,PV_DAC_O,PV_DAC_R,PV_DAC_W,
PV_DAC_X,PV_PROC_PRIV,PV_PROC_SIG
secflags=FSF_EPS
authroles=isso,so,sa
shutdown authroles 3 1 3authroles issososa shutdown aix.system.boot.shutdown so shutdown so isso sa
/etc/security/users /etc/security/roles /etc/security/authorizations /etc/security/privcmds RBAC
221
-
setsecattr lssecattr
privcmds
authrpt
authrpt [-Rload_module] [-C] [-c | -f | -r | -u] { auth1,auth2 ... }
authrpt ()
-c-f-r -u
-c /etc/security/privcmds -c ALLOW_ALLALLOW_GROUP ALLOW_OWNER
-f /etc/security/privfiles
-u
-r
()
-c -f -u -r -R -C
authorizaton:attribute1:attribute2: ...authorization1:value1:value2: ...authorization2:value1:value2: ...
222 AIX 7.1 1
-
0 >0
: root (x)
root aix.security.auth.list
RBAC Trusted AIX : lssecattr getcmdattr
/etc/security/roles/etc/security/authorizations/etc/security/privcmds/etc/security/privfiles
aix.fs aix.system
authrpt -c aix.fs,aix.system
aix.security
authrpt aix.security
aix.security.user
authrpt -C aix.security.user
#authorization:commands:privfiles:roles:usersaix.security.user:/usr/bin/mkuser,/usr/bin/chuser:/etc/csh.cshrc,/etc/csh.login:role1:Bob,Simon
rolerpt usrrpt
AIX Version 6.1 Files Reference /etc/security/privcmds
223
-
authqry
authqry { -c [-s] | -q [-F ] [ -t ] } user
authqry
-c rbacqry /etc/security/audit/config ()rbacqry rbacqry /etc/security/audit/config
-s
-q
-t (-t ) -t
: authqry AIX authqry
-c -s
-q -F -F trailListFile
1 -F /audit/trail
-t
0 >0
224 AIX 7.1 1
-
: root (x)
RBAC Trusted AIX : lssecattr getcmdattr
/etc/security/authorizations/audit/trail
Bob
authqry -q Bob
Simon 20
authqry -q -t 20 Simon
roleqry audit
events
autoconf6
IPv6
autoconf6 [ -a ] [ -A ] [ -i ] [ -s ] [ -6 ] [ -M ] [ -O ] [ -R ] [ -c ] [ -v ] [ -m main_interface ] [interface_name ... ]
autoconf6 ND autoconf6 ()
225
-
-a IPv4
-A -i -a -i
-m main_interface main_if6 no
-s SIT IPv4 SIT SIT
-6 SIT IPv4 (interoperability)
-M () IPv6 -O () -R () IPv6 -c LL -v (
) interface_name -i
-i interface_names interface_name -i ibX InfiniBand EUI-64 IPv6 ibX autoconf6 ibX IPv4 ibX
autoconf6 ()
ifconfig ndpd-host ndpd-router route
automount
/usr/sbin/automount [ -m ] [ -n ] [ -v ] [ -t duration ] [ -i interval ] [ -f file ] [ -s timeout ] [-D value ] [ -d value ]
226 AIX 7.1 1
-
automount AutoFS AutoFS automount AutoFS automountd AutoFS
automount COMPAT_AUTOMOUNT automount AIX 5.0
( 10 ) automountd
automountd automount SRC
/etc/auto_master () /etc/auto_master
/key map
: /etc/auto_master automount automount
/etc/auto_master (/-)
/directkey [-options] server:/dir
/directkey automountd /directkey server:/dir
indirectkey [-options] server:/dir
/key/indirectkey automountd /key/indirectkey server:/dir
/etc/auto_master (-hosts) automountd /etc/hosts /key /key/server automountd /key/server
227
-
: NIS/NIS+ LDAP automount /etc/irs.conf
automount nis_ldap
LDAP
automount nis_ldap files
filesnisnisplus nis_ldap
NIS/NIS+ AIX Version 6.1 Network InformationServices (NIS and NIS+) Guide Managing NIS Automount Maps
LDAP PC-NFS LDAP
-d value autofs automount
-D value -f file
/etc/auto_master -i Interval autofs
-m NIS -n nobrowse -s timeout fork
30 -t Duration auto
21 120 600 -v
/etc/auto_master
/etc/hosts
/etc/irs.conf
mount
auto.master NIS AIX Version 6.1 Network Information Services (NIS and NIS+) Guide Managing NISAutomount Maps
228 AIX 7.1 1
-
PC-NFS LDAP
(NFS)
NFS
automountd
AutoFS
/usr/sbin/automountd [ -n ] [ -T ] [ -v ] [ -D name=value ]
automountd AutoFS RPC
automount Maps
-D name=Value automountd -n nobrowse -T RPC -v
df mount automount
auto_master/auto.master NIS AIX Version 6.1 Network Information Services (NIS and NIS+) Guide How toManage NIS automount Maps
NFS
(NFS)
229
-
autopush
STREAMS
autopush -f File
autopush -r -M Major -m Minor
autopush -g -M Major -m Minor
autopush
-f File autopush
File 1 4
maj_ min_ last_min_ mod1 mod2 . . . modn
3 min_ -1 maj_ last_min_ last_min_ 0 1 min_ last_min_
autopush 8 # ()
-r -g
-M Major -m Minor
autopush
230 AIX 7.1 1
-
File
Major Minor
1.
autopush -f File
2.
autopush -r -M Major -m Minor
3.
autopush -g -M Major -m Minor
streamio
Streams
AIX Version 6.1 Communications Programming ConceptsSTREAMS Overview
awk
awk [ -u ] [ -F Ere ] [ -v Assignment ] ... { -f ProgramFile | 'Program' } [ [ File ... | Assignment ... ] ]...
awk 1
awk grep awk
awk LANGLC_ALL LC_COLLATELC_CTYPELC_MESSAGES LC_NUMERICNLSPATH PATH
v awk
231
-
v awk v v awk
v v
awk awk 2
v File v ARGV ARGC v File
File
awk `Program' -f ProgramFile
awk awk 3
v v v
3 awk
1. awk
232 AIX 7.1 1
-
awk BEGIN
2. 1
RS
3. awk
() $1 2 $2 $0 -F FS FS
4.
5.
6.
7. awk
awk END awk
awk awk
Pattern { Action }
Pattern () Action ()
awk 4
v v v v BEGIN END
233
-
awk grep egrep testfile
smawley, andysmiley, allensmith, alansmithern, harrysmithhern, annesmitters, alexis
awk /smi/ testfile
smi awk '/smi/'
smiley, allensmith, alansmithern, harrysmithhern, annesmitters, alexis
+ + () 1
awk /smith+ern/ testfile
smit 1 h ern
smithern, harrysmithhern, anne
? () 1 ()
awk /smith?/ testfile
smit 1 h
smith, alansmithern, harrysmithhern, annesmitters, alexis
| | ()
awk /allen|alan / testfile
allen alan
smiley, allensmith, alan
234 AIX 7.1 1
-
( )
awk /a(ll)?(nn)?e/ testfile
ae alle anne allnne
smiley, allensmithhern, anne
{m} m
awk /l{2}/ testfile
smiley, allen{m,} m
awk /t{2,}/ testfile
smitters, alexis{m, n} m n (m n )
(m
-
~,!~ () (
)
awk $1 ~ /n/ testfile
n
smithern, harrysmithhern, anne
^
awk $2 ~ /^h/ testfile
2 h
smithern, harry$
awk $2 ~ /y$/ testfile
2 y
smawley, andysmithern, harry
. () 1
awk /a..e/ testfile
a e 2
smawley, andysmiley, allensmithhern, anne
* () 1
awk /a.*e/ testfile
a e
smawley, andysmiley, allensmithhern, annesmitters, alexis
\ ()
/a\/\//
a // 2
: awk awk C
236 AIX 7.1 1
-
\" \" ()\/ / () \ddd 1 2 3 8 d 8
\\ \ () \a \b \f \n ()\r \t \v
: gsubmatchsplit sub () 4 () awk 1 NULL
< ()> ()= ()= = ()! = ()
$1 < $4
4
$1 =! "q"
q
$1 >= "d"
abc d
3
v , () 2 2 ()
/begin/,/end/
begin end (end )
v ( )
237
-
v || ()&& () ! ()
$1 == "al" && $2 == "123"
al 2 123
BEGIN END BEGIN END BEGIN END END BEGIN BEGIN END
v v v v v
{ } () ; ()
+ ()- ()/ ()^ ()* ()% ()
Expression Operator Expression
$2 = $1 ^ 3
3 2
- () + () C
+Expression -Expression
238 AIX 7.1 1
-
C
++Variable --Variable
C
Variable++ Variable--
+= ()-= ()/= () *= () C
Variable += Expression
Variable -= Expression
Variable /= Expression
Variable *= Expression
$1 *= $2
$1 $2 $1
^= () %= ()
Variable1^=Expression1
Variable2%=Expression2
C
Variable1=pow(Variable1, Expression1)
Variable2=fmod(Variable2, Expression2)
pow pow fmod fmod
$3 = $1 $2
$1 $2 $3
awk close
: C
atan2( y, x ) y/x cos( x ) x x sin( x ) x x exp( x ) x
239
-
log( x ) x sqrt( x ) x int( x ) x rand( ) n (0
-
match( String, Ere ) Ere String 1 Ere 0 RSTART RLENGTH -1 ( 1)
split( String, A, [Ere] ) String A [1], A [2], .. ., A [n ] n EreEre (FS ) A
tolower( String ) String LC_CTYPE
toupper( String ) String LC_CTYPE
sprintf(Format, Expr, Expr, .. . ) Expr Format printf
:
close( Expression ) print printf Expression getline 0 close
system(Command ) Command system
241
-
Expression | getline [ Variable ] Expression 1 Variable Expression Command Expression Mode r popen Expression getline 1 Variable $0 NF
getline [ Variable ] < Expression Expression 1 Variable Expression getline 1 Variable $0 NF
getline [ Variable ] Variable Variable $0 NFNR FNR
: getline 1 (EOF) 0 -1
function Name (Parameter, Parameter,...) { Statements }
awk
242 AIX 7.1 1
-
0
return
{ () } ()
function average ( g,n){
for (i in g)sum=sum+g[i]
avg=sum/nreturn avg
}
average g n
awk C { } () { } () ; () C 6
if
if ( Expression) { Statement } [ else Action ]while
while ( Expression) { Statement }for
for ( Expression ; Expression ; Expression) { Statement }break break while for
continue continue while for
243
-
awk C 5
for...in
for ( Variable in Array) { Statement }
for...in Variable 1 Array Statement for...in delete
if...in
if ( Variable in Array) { Statement }
if...in Array Array
delete
delete Array [ Expression ]
delete Array Expression
for (i in g)delete g[i];
g[] exit
exit [ Expression ]
exit END Expression awk exit END END
#
# Comment
#
next
244 AIX 7.1 1
-
awk 2
print
print [ ExpressionList ] [ Redirection ] [ Expression ]
print ExpressionList OFS ORS
Redirection > ()>> () | () 3 Redirection Expression (Redirection > >> ) (Redirection | )
printf
printf Format [ , ExpressionList ] [ Redirection ] [ Expression ]
printf ExpressionList Format printf c (%c) printf Redirection Expression print
c : 0
: Expression Redirection Expression
0 null (" ")
x = "4" + "8"
12 x " " ()
0 null (" ")
245
-
$ () $1 2 $2 $0 $NF (null ) NF $0 (FS ) -F awk FS
[ ] () ID
/red/ { x["red"]++ }/green/ { y["green"]++ }
red green
2 awk 1 SUBSEP 2
x[expr1, expr2,...exprn]
x[expr1SUBSEPexpr2SUBSEP...SUBSEPexprn]
in Index in
awk
ARGC ARGV ARGV File Assignment 1
0 ARGC -1 ARGV
v Assignment v null ARGV null
v ARGV [ARGC -1] awk
CONVFMT printf (OFMT ) "% .6g"
246 AIX 7.1 1
-
ENVIRON awk
ENVIRON [ "Environment VariableName" ] = EnvironmentVariableValue
awk ENVIRON
FILENAME BEGIN FILENAME END
FNR FS
FS 2
v FS 1 v FS
NF ( 99) BEGIN Variable getline NF Variable getline END END NF
NR BEGIN NR 0 END
OFMT printf "%.6g" OFS ()ORS ()RLENGTH match RS () RS null 1
FS
RSTART match ( 1)match SUBSEP \031
-f ProgramFile ProgramFile awk -f
-u awk awk
-F Ere Ere
-v Assignment awk Assignment Name = Value Name Value "() Value
-v BEGIN awk
247
-
Assignment awk -v Assignment Assignment (File ) Assignment BEGIN () Assignment END ()
File File - ()
'Program' awk -f Program ' ' ()
0 >0
exit [ Expression ]
1. 73
awk length >72 chapter1
72 chapter1 Action 1
2. start stop startstop
awk /start/,/stop/ chapter1
3. chapter1 awk sum2.awk
awk -f sum2.awk chapter1
sum2.awk chapter1 2
{sum += $2
}END {
print "Sum: ", sum;print "Average:", sum/NR;
}
2 sum 0 2 END 2 NR
4. 2
248 AIX 7.1 1
-
awk { print $2, $1 } chapter1
5. awk
awk -f sum3.awk chapter2
chapter2 2 ()
BEGIN {FS = ",|[ \t]+"}{print $1, $2}{s += $1}
END {print "sum is",s,"average is", s/NR }
egrep fgrep grep lex printf sed
popen printf system
back
back
back 3 1 ()
v 0 v 1 v 24 v 25
Instructions? Y move? ? ()
Y back.log
back
(Ctrl-C)
249
-
/usr/games games () /usr/games/lib/backrules /tmp/b* back.log
arithmetic bj craps fish fortune hangman moo number quiz ttt turnoff turnon wump
backsnap
JFS2
backsnap [ -R ] { -m MountPoint -s size=Size | -n snapshotName } [ BackupOptions ] FileSystem
JFS2 restore
-m MountPoint
-R
-s size=Size
Size M Size G 512
-n snapshotName JFS2
250 AIX 7.1 1
-
BackupOptions backup
-i
i -[0-9]
restore
FileSystem JFS2
0
>0
1. /home/janet/sb
backsnap -m /tmp/snapshot/janetsb -s size=16M -i -f/dev/rmt0 /home/janet/sb
16 /home/janet/sb /tmp/snapshot/janetsb /dev/rmt0
2. /home/janet/sb i
backsnap -R -m /tmp/snapshot/janetsb -s size=16M -0 -f /dev/rmt0 /home/janet/sb
16 /home/janet/sb /tmp/snapshot/janetsb i /dev/rmt0
/usr/sbin/backsnap backsnap
251
-
backup restore snapshot
backup
backup -i [ -b Number ] [ -p [ -e RegularExpression ] ] [ -E{force|ignore|warn} ] [ -f Device ] [ -lNumber ] [ -U ] [ -O ] [ -o ] [ -q ] [ -v ] [ -Z ]
i backup [ [ -Level ] [ -b Number ] [ -c ] [ -f Device ] [ -L Length ] [-n snapshotName] [ -U ] [ -O ] [-u ] ] [ FileSystem ] | [ -w | -W ] [ -Z ]
backup 2
v -i v Level FileSystem i
backup 9 i /dev/rfd0
-9uf/dev/rfd0 /dev/rhd4
/dev/rfd0 backup
:
1. backup
2.
3. 0 () backup
252 AIX 7.1 1
-
backup 0 restore
0 -b backup -b restore -b
4.
-i backup
:
1.
2. backup
a
3. -p 2GB
i i -Level FileSystem -Level -u -u -Level n n-1 /etc/dumpdates 0 9 0 9 0 /etc/dumpdates
FileSystem () (/)
253
-
i (/dev/hd4 )
:
1. i backup
2. i 65535 uid gid uid gid uid gid 65535 uid gid
3. i JFS () JFS paxtar cpio
4. -Z
-b Number 1 1 512 i 1024 backup 100 i 32
backup 51200 (100 * 512) i 32768 (32 * 1024)
backup -b
-c 9 -e RegularExpression
1 1 -e -p
254 AIX 7.1 1
-
-E -E -E warn
force
ignore
warn
-f Device Device (/dev/rmt0 ) - () - () backup dd
/dev/deviceXXX-YYY
XXX YYY XXX YYY /dev/rfd0-3
2.3 GB 8 1.44 MB
Device backup backup
-i (restore )
-l Number ( L) format
-L Length -c-d -s bkm g (512 ) (1024 ) (1024 K ) (1024 M ) 2GB -L 2g
: -L i
-n snapshotName -n i
255
-
-o 2 2 2 2 2 -o
ID ID 2
-O Trusted AIX : Trusted AIX -O AIX
-p 2 GB
:
-q -q backup Enter -q
-U ACL AIXC ACL PCL NFS4 ACL AIXC
-u /etc/dumpdates -u -u i
-v backup -v 0 0
-v backup
-w -w
256 AIX 7.1 1
-
-W /etc/dumpdates -W
-Level (0 9 ) 9
-Z (EFS) EFS : -Z AIX 6.1
Trusted AIX aix.fs.manage.backup backup
RBAC Trusted AIX : lssecattr getcmdattr
0 >0
1. /home
find /home -print | backup -i -f /dev/rmt0
-i find/home | () backup -f /dev/rmt0 backup
2. /home/mike
cd /home/mike
find . -print | backup -i -v -q
find ./ () -v backup /dev/rfd0
257
-
3. / ()
backup -0 -u -f /dev/rmt0 /
0 / () -u backup /etc/dumpdates
4. 0 / ()
backup -1 -u -f /dev/rmt0 /
/etc/dumpdates / () 0
5. (Extended Attributes) ACL
ls /etc/passwd | backup -ivUf arch.bk
6. Trusted AIX
ls /etc/passwd | backup -ivOf arch.bk
/etc/filesystems /etc/dumpdates i /dev/rfd0 /dev/rhd4 () /usr/sbin/backup backup
dd find rdump restore
dumpdates filesystems rmt
AIX 6.1 (SMIT)SMIT SMIT
258 AIX 7.1 1
-
AIX
banner
ASCII
banner String
banner ASCII String 10
1 1 1 1
1.
banner SMILE!
2. 1
banner "Out to" Lunch
Out to 1 Lunch
/usr/bin/banner banner
echo
basename
basename String [ Suffix ]
259
-
basename String / () Suffix basename
1. String // () String / () / () 2 4
2. /
3. String / /
4. Suffix
K > basename /u/dee/desktop/cns.boo cns.boo
cns.boo
Suffix
K > basename /u/dee/desktop/cns.boo .boo
cns
basename dirname
0 >0
1.
basename $WORKFILE
WORKFILE WORKFILE /home/jim/program.c program.c
2.
OFILE=`basename $1 .c`.o
260 AIX 7.1 1
-
($1) OFILE .c .o $1 /home/jim/program.c OFILE program.o program.o
: ` ()
/usr/bin/basename basename
dirname sh
batch
batch
batch batch
batch
batch at -q b -m now -q b at
0 >0
batch 261
-
here batch
/usr/bin/batch batch /bin/batch batch /var/adm/cron cron /var/spool/cron/atjobs
at bsh csh kill ksh mail nice ps
: cron
Korn POSIX Bourne
AIX 6.1
battery
battery [ -d ]
battery -d battery
battery type: NiCd or NiMHcurrent battery usage: charging, discharging, in use, fully chargedbattery capacitycurrent remaining capacityfull charge count
-d battery
262 AIX 7.1 1
-
discharge quantitydischarge time
50% ( 20 30 ) 50% () 100%
-d
:
:
1.
battery
battery type: NiMHcurrent battery usage: in usebattery capacity: 3200 (mAH)current remaining capacity: 1800 (mAH) [57%]full charge count: 3
/usr/bin/battery battery
bc
bc [ -c ] [ -l ] [ File... ]
bc bc File bc
263
-
bc dc () -c dc -c bc
bc 10 8 16 10 10 bc . ()
bc C bc ibase obase ibase2 16 obase 2 BC_BASE_MAX BC_BASE_MAX /usr/include/sys/limits.h ibase obase bc A F 16 10 15
bc 1 obase scale
bc
v v v ID v v v v -I
bc program
%token EOF NEWLINE STRING LETTER NUMBER
%token MUL_OP/* *, /, % */
%token ASSIGN_OP/* =, +=, -=, *=, /=, %=, ^= */
%token REL_OP/* ==, =, !=, */
%token INCR_DECR/* ++, -- */
%token Define Break Quit Length/* define, break, quit, length */
%token Return For If While Sqrt/* return, for, if, while, sqrt */
%token Scale Ibase Obase Auto/* scale, ibase, obase, auto */
%start program
%%
264 AIX 7.1 1
-
program : EOF| input_item program;
input_item : semicolon_list NEWLINE| function;
semicolon_list : /* empty */| statement| semicolon_list ; statement| semicolon_list ;;
statement_list : /* empty */| statement| statement_list NEWLINE| statement_list NEWLINE statement| statement_list ;| statement_list ; statement;
statement : expression| STRING| Break| Quit| Return| Return ( return_expression )| For ( expression ;
relational_expression ;expression ) statement
| If ( relational_expression ) statement| While ( relational_expression ) statement| { statement_list };
function : Define LETTER ( opt_parameter_list ){ NEWLINE opt_auto_define_liststatement_list }
;
opt_parameter_list:/* empty */| parameter_list;
parameter_list : LETTER| define_list , LETTER;
opt_auto_define_list: /* empty */| Auto define_list NEWLINE| Auto define_list ;;
define_list : LETTER| LETTER [ ]| define_list , LETTER| define_list , LETTER [ ];
opt_argument_list : /* empty */| argument_list;
argument_list : expression| argument_list , expression;
relational_expression: expression| expression REL_OP expression;
265
-
return_expression : /* empty */| expression;
expression : named_expression| NUMBER| ( ex