696
AIX 5L 5.2 , 2 ,d-h SA30-0389-06

AIX 5L 5 - Tistoryh-polaris.tistory.com/attachment/gk060000000005.pdf · dnssec-signkey .....139 dnssec-signzone ... LOG_NONE, LOG_SYSERR, LOG_OBJERR, LOG_PROTOCOL LOG_PROTERR( ),

  • Upload
    dokhue

  • View
    222

  • Download
    4

Embed Size (px)

Citation preview

  • AIX 5L 5.2

    , 2 , d - h

    SA30-0389-06

  • AIX 5L 5.2

    , 2 , d - h

    SA30-0389-06

  • !

    , 661 .

    7 (2003 10)

    , AIX 5L 5.2 .

    IBM . .

    135-270

    467-12,

    ..

    , [email protected] .

    .

    Copyright International Business Machines Corporation 1997, 2003. All rights reserved.

  • . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix

    ISO 9000. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii

    UNIX98 32 64 . . . . . . . . . . . . . . . . . . . . . . . . . xii

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii

    () . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

    dacinet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

    dadmin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

    date . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

    dbx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

    dc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

    dd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

    defaultbrowser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64

    defif . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

    definet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

    defragfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

    defvsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70

    deleteX11input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

    delta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

    deroff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76

    detachrset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

    devinstall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78

    devnm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

    df . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81

    dfmounts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86

    dfpd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87

    dfsck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88

    dfshares . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90

    dhcpaction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

    dhcpcd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

    dhcprd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

    dhcpsconf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97

    dhcpsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99

    diag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101

    diaggetrto . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105

    diagrpt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106

    diagsetrto . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107

    diction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

    diff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

    diff3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

    diffmk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

    Copyright IBM Corp. 1997, 2003 iii

  • dig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

    digest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

    dircmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122

    dirname . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123

    dis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125

    disable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126

    diskusg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128

    dispgid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130

    dispuid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131

    dist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133

    dnssec-keygen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136

    dnssec-makekeyset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138

    dnssec-signkey . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139

    dnssec-signzone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140

    docsearch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142

    dodisk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143

    domainname . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144

    dosdel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145

    dosdir . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146

    dosformat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148

    dosread . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150

    doswrite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152

    dp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153

    dpid2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154

    drm_admin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157

    drmgr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161

    drslot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162

    ds_reg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165

    dscreen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166

    dsh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168

    dslpaccept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176

    dslpaccess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177

    dslpadmin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178

    dslpdisable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 183

    dslpenable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184

    dslpprotocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185

    dslpreject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187

    dslpsearch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188

    dspcat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190

    dspmsg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191

    dtappintegrate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193

    dtscript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194

    dtterm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195

    0u . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204

    dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207

    dumpcheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209

    iv , 2

  • dumpfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211

    echo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211

    ed red . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213

    edit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253

    edquota . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261

    egrep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263

    elogevent, logevent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265

    emgr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267

    emstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272

    emsvcsctrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274

    enable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 278

    enotifyevent, notifyevent . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279

    enq . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281

    enroll . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292

    enscript . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292

    entstat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298

    env . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303

    epkg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305

    eqn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 310

    errclear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312

    errdead . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 314

    errdemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316

    errinstall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318

    errlogger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321

    errmsg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322

    errpt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324

    errstop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331

    errupdate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332

    ewallevent, wallevent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340

    ex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342

    execerror . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344

    execrset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344

    expand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346

    expfilt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347

    explain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348

    explore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 349

    exportfs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 350

    exportvg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 354

    expr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355

    exptun . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359

    extendlv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 360

    extendvg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363

    f . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364

    factor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367

    fc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368

    fccheck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371

    v

  • fcclear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373

    fcdecode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376

    fcdispfid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 377

    fcfilter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 379

    fcinit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381

    fclogerr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385

    fcpushstk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393

    fcreport . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399

    fcstkrpt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402

    fcteststk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 404

    fddistat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406

    fdformat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409

    fdpr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 410

    fencevsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 417

    feprom_update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419

    ff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420

    fg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422

    fgrep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423

    file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426

    filemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429

    fileplace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437

    find . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440

    finger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446

    fingerd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 449

    fish . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 451

    flcopy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452

    flush-secldapclntd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453

    fmt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454

    fold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455

    folder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 456

    folders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459

    format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462

    fortune . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 464

    forw . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 465

    frcactrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468

    from . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471

    fsck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472

    fsck_cachefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477

    fsdb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478

    fsplit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490

    ftp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491

    ftpd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503

    fuser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 510

    fwtmp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512

    fxfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513

    gated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528

    vi , 2

  • gdc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 531

    gencat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 535

    gencopy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536

    gencore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537

    genfilt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538

    geninstall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540

    genkex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542

    genkld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543

    genld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543

    gennames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 544

    gensyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545

    gentun . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546

    genxlt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 549

    get . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551

    getconf . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 560

    getdev . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568

    getdgrp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 570

    getopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573

    getopts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575

    gettable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577

    getty . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578

    glbd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580

    gprof . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582

    grap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587

    greek . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591

    grep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591

    grpop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594

    grpck . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595

    grpsvcsctrl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598

    ha_star . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602

    ha.vsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 603

    ha_vsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 607

    haemd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 609

    haemd_HACMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 612

    haemqvar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 614

    haemtrcoff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619

    haemtrcon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 621

    haemunlkrm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 624

    hagsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 627

    hagsns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629

    hagsvote . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 631

    halt fasthalt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635

    hangman . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 636

    hatsoptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637

    hash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 639

    head . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 640

    vii

  • help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642

    host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642

    hostent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 645

    hostid . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 647

    hostmibd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648

    hostname . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651

    hosts2ldif . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652

    hp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653

    hplj . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653

    hps_dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655

    htable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 656

    hty_load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 658

    hyphen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 661

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663

    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665

    viii , 2

  • 6 AIX 5L 5.2 2

    . , , ,

    6 ..

    6 .

    AIX 5L 5.2 5200-01 .

    AIX 5.2 5200-01 .

    .

    .

    . , ( )

    .

    .

    . .

    .

    .

    . .

    .

    SMIT( )

    .

    .

    ,

    , , , ,

    . , . . , ,

    ,

    .

    Copyright IBM Corp. 1997, 2003 ix

  • .

    ( )

    ([ ]), ({ }) (|)

    . unget .

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

    .

    v . , .

    v . Files Directories .

    v .v .v .v . , [ a | b ] a b , . , { a | b } a b

    .

    v ( ... ) .v ( - ) .

    ( ) -w lslpp

    . , installp .

    lslpp -w /usr/sbin/installp

    .

    x , 2

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

    installp , .

    lslpp -w "*installp*"

    .

    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

    ,

    . .

    , & .

    &

    ,

    .

    . cron

    . , at batch

    .

    . .

    $ .

    , ls Enter

    $ ls

    . ,

    . .

    .

    . . ,

    ls -l(long) ,

    .. ls -l .

    xi

  • $ ls -l

    .

    , . , /usr/bin .

    $ ls -l /usr/bin

    .

    v .v -( ) .v ;() , .v \() .

    . .

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

    . (: telnet )

    , .

    .

    , .

    (: Bourne, C Korn)

    . , .

    ,

    . , (Ctrl-C Alt-Pause) . ,

    .

    ISO 9000ISO 9000 .

    UNIX98 32 64 4.3 UNIX Open Group UNIX98

    . 4.3

    .

    . ,

    .

    UNIX98 Go Solo 2: The Authorized

    Guide to Version 2 of the Single UNIX Specification CD-ROM Open Groups

    UNIX98 .

    xii , 2

  • .

    v AIX 5L 5.2 , 1 v AIX 5L 5.2 , 2 v AIX 5L 5.2 , 3 v AIX 5L 5.2 , 4 v AIX 5L 5.2 , 5 v AIX 5L 5.2 , 6 v AIX 5L Version 5.2 Files Referencev AIX 5L Version 5.2 Glossaryv AIX 5L Version 5.2 Guide to Printers and Printingv AIX 5L 5.2 v AIX 5L 5.2 AIX v AIX 5L Version 5.2 Network Information Services (NIS and NIS+) Guidev AIX 5L 5.2 : v AIX 5L 5.2 v AIX 5L Version 5.2 Performance Tools Guide and Referencev AIX 5L 5.2 v AIX 5L Version 5.2 System Management Concepts: Operating System and Devicesv AIX 5L Version 5.2 System Management Guide: Communications and Networksv AIX 5L Version 5.2 System Management Guide: Operating System and Devicesv AIX 5L 5.2 : v AIX 5L 5.2 : v AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 1v AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 2v AIX 5L Version 5.2 Technical Reference: Communications Volume 1v AIX 5L Version 5.2 Technical Reference: Communications Volume 2v AIX 5L Version 5.2 Technical Reference: Kernel and Subsystems Volume 1v AIX 5L Version 5.2 Technical Reference: Kernel and Subsystems Volume 2v AIX 5L 5.2 v Performance Toolbox Version 2 and 3 for AIX: Guide and Reference

    xiii

  • xiv , 2

  • ()

    dacinet

    TCP .

    dacinet aclflush

    dacinet aclclear |

    dacinet acladd |

    dacinet acldel |

    dacinet aclls |

    dacinet setpriv |

    dacinet unsetpriv |

    dacinet lspriv |

    dacinet TCP . dacinet

    .

    Copyright IBM Corp. 1997, 2003 1

  • acladd DACinet ACL(Access Control List)

    ACL . acladd

    .

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

    .

    addr DNS IP v4/v6 . -

    ACL

    .

    length addr addr length ,

    .

    u:user|uid

    ID. uid ,

    . ,

    .

    g:group|gid

    ID. gid ,

    . ,

    .aclclear ACL .

    2 , 2

  • acldel DACinet ACL ACL

    . dacinet acldel ACL

    ACL . acldel

    .

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

    .

    addr DNS IP v4/v6 . -

    ACL

    .

    length addr addr length ,

    .

    u:user|uid

    ID. uid ,

    . ,

    .

    g:group|gid

    ID. gid ,

    . ,

    .aclflush ACL ,

    TCP

    . 1024

    .aclls ACL . dacinet aclls

    0 ACL . ,

    ACL ACL . ACL

    ,

    . ,

    user|group@host|subnet

    .

    .lspriv

    (, 1024

    ).setpriv

    . 1024

    .unsetpriv

    .

    ,

    .

    () 3

  • /usr/sbin/dacinet dacinet .

    dadmin

    DHCP .

    dadmin [ -?] [ -v] [ -h Hostname] [ -f] -d IpAddress | [ -x] -i | [ -x] -s | -t on|off|Value | -q IpAddress

    | -p IpAddress | -c Clientld

    dadmin DHCP DHCP .

    DHCP IP

    IP , , IP , ,

    .

    dadmin DHCP IP DHCP

    .

    IP dadmin IP

    . , IP dadmin

    , , , IP DNS A

    , IP ID .

    , dadmin IP IP , IP

    , , IP

    DNS A

    .

    , dadmin

    .

    ,

    ( DHCP ).

    LOG_NONE, LOG_SYSERR, LOG_OBJERR, LOG_PROTOCOL

    LOG_PROTERR( ), LOG_WARN LOG_CONFIG( ), LOG_EVENT

    LOG_PARSEERR( ), LOG_ACTION, LOG_INFM, LOG_ACNTING, LOG_STAT, LOG_TRACE,

    LOG_START LOG_RTRACE.

    : LOG_START . 0x0800 0x1FFF

    .

    4 , 2

  • -cClientld DHCP

    . Clientld DHCP

    ID 16 DHCP

    TYPE-STRING .-dIpAddress IP IpAddress . ,

    (FREE)

    .-f -d . -f

    . IP .-hHostname DHCP . Hostname

    IP .-i DHCP .

    .-pIpAddress

    . IpAddress

    .-qIpAddress IP

    .-s DHCP

    .-t on|off|Value DHCP .

    16 . Value

    10 16 . On off

    .-v .-x dadmin 1 . -x

    DHCP -i

    -s .-? .

    0 .>0 .

    dadmin , DHCP

    .rhosts . DHCP

    , dadmin

    .

    /usr/sbin/dadmin dadmin .

    () 5

  • .rhosts , AIX 5L Version 5.2 Files Reference DHCP Server Configuration File.

    dhcpsd .

    AIX 5L Version 5.2 System Management Guide: Communications and Networks TCP/IP Address and

    Parameter Assignment - Dynamic Host Configuration Protocol(DHCP)

    AIX 5L Version 5.2 System Management Guide: Communications and Networks TCP/IP Daemons

    date

    .

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

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

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

    : .

    +( ) , date

    (STDOUT) . , .

    . date

    .

    date , .

    v mmddHHMM[YYyy]v mmddHHMM [yy ]

    date .

    mm .dd .HH 24 .

    6 , 2

  • MM .YY .

    : 69 99 1969 1999 20, 00 68 2000

    2068 21 .yy .

    : date 4 . , 4 , date YYyy

    (1970 2037 ).

    . (CUT)

    .

    date +( ) , .

    %( ) . % %%(2

    ) . date

    . date

    .

    -a [ +

    | -

    ]sss [ .

    fff ]

    sss.fff (fff ). .

    .

    -n .-u (CUT) .

    %a .%A .%b .%B .%c . .%C 10(00-99) . 100 .%d 10(10-31) . 0 .%D %m/%d/%y .%e 10(1-31) . .%h (%b ).%H 10(00-23) (24 ) .%I 10(01-12) (12 ) .%j 10(001-336) .%m 10(01-12) .%M 10(00-59) .%n < > .%p AM PM .%r POSIX AM-PM 12 (01-12) , %I:%M:%S %p .%S 10(00-59) .%t .%T HH:MM:SS 24 (100-23) .%u 1 7( = 7) 10 . %w .%U 10[00 - 53] ( ) . 0 .

    () 7

  • %V 01 53 10 ( ). 1 1 4 , 01 ,

    53 .%w 0 6( = 0) 10 . %u .%W 00 53 10 ( ).%x .%X .%y .%Y 10 .%Z , .%% %( ) .

    %E %O AIX 5L Version 5.2 Files Reference LC_TIME

    . (era, era_year,

    era_d_fmt alt_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 .

    1. .

    date

    8 , 2

  • 2. .

    date 0217142590

    CST , 1990 2 17 14:25:00 CST

    .

    : .

    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 ( , vs )

    .LC_MESSAGES .LC_TIME date .NLSPATH LC_MESSAGES .TZ -u , . TZ -u

    , .

    environment .

    localtime

    , strftime

    , time

    .

    AIX 5L Version 5.2 Files Reference LC_TIME Category.

    AIX 5L Version 5.2 National Language Support Guide and Reference Understanding Locale

    .

    dbx

    .

    () 9

  • dbx [ -a ProcessID ] [ -c CommandFile ] [ -d NestingDepth ] [ -I Directory ] [ -E DebugEnvironment

    ] [ -p oldpath=newpath:...| pathfile ] [ -k ] [ -u ] [ -F ] [ -r ] [ -x ] [ ObjectFile [ CoreFile ] ]

    dbx C, C++, Pascal FORTRAN ,

    .

    v .v .v .v .

    ObjectFile ( ) . dbx

    -g( ) .

    : cc -g . -g

    strip xcoff , dbx .

    -c dbx $HOME .dbxinit .

    , .dbxinit . .dbxinit ,

    $HOME .dbxinit . .dbxinit $HOME

    , .

    .dbxinit .

    ObjectFile , dbx . a.out.

    CoreFile , dbx

    . , ObjectFile

    . dbx

    .

    dbx . dbx C Pascal

    , FORTRAN .

    .

    * ^

    .[ ] ( ) ..

    . C -> ()

    .& ...

    .

    : n[1..4].

    10 , 2

  • .

    =, -, *, /( ), div( ), mod, exp() -, I, bitand, xor, ~. or, and, not, II, && , =, < > !=, = == ( ),

    stop trace .

    .

    . Typename(Expression), Expression |Typename, (Typename) Expression

    . x 97 .

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

    dbx Korn .. vi vi

    , emacs emacs ..

    dbx set -o set edit . vi

    , set edit vi set -o vi .

    EDITOR .

    dbx .dbxhistory . DBXHISTFILE

    , $HOME/.dbxhistory.

    , dbx 128 . DBXHISTSIZE

    .

    -a ProcessID . ,

    kill . ID ps

    . , dbx ,

    , ,

    .-c CommandFile (STDIN) dbx . $HOME

    , .

    $HOME

    . $HOME ,

    . source dbx .-d NestingDepth . 25.-E DebugEnvironment .

    () 11

  • -p oldpath=newpath:...| pathfile oldpath=newpath

    . oldpath ( ) newpath

    . , .

    . , -p

    .

    .-F (lazy) dbx

    . , (lazy) (on) . dbx

    . , dbx

    . , whereis i

    i .-I Directory ( i) Directory

    . .

    v . .

    v

    v .-k . .-r .

    , dbx

    .

    ,

    .

    : -r , dbx

    .-u dbx @(at ) .

    .-x dbx FORTRAN _( )

    . dbx (

    : xxx xxx_) .

    1. dbx . samp.c

    . C

    -g . , samp .

    $ cc -g samp.c -o samp

    samp

    .

    $ sampBus Error - core dumped

    .

    $ dbx samp

    .

    12 , 2

  • 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

    .

    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

    , Xwindow . Xwindow , .

    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 .

    () 13

  • 3. objefile ,

    .

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

    dbx use . -I

    use .

    4. -r .

    $ dbx -r samp

    .

    Entering debug program . . .dbx version 3.1Type help for help.reading symbolic information . . .bus error in main at line 2525 x[i] = 0;

    (dbx) quit

    -r

    .

    5. , .

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

    dbx

    : dbx .

    / .? .alias dbx .assign .attribute .call .case dbx .catch .clear .cleari .condition .cont

    .delete .detach

    .display memory .down .dump .edit .file .func .goto .

    14 , 2

  • gotoi .help dbx .ignore .list .listi .map .move .multproc .mutex mutexes .next .nexti .print , .prompt dbx .quit dbx .registers , , ,

    .rerun .return .rwlock Rwlocks .run .screen dbx Xwindow .set dbx .sh .skip .source dbx .status trace stop .step .stepi .stophwp .stop .stopi .thread .trace .tracehwp .tracei .unalias .unset .up .use .whatis

    .where .whereis ID .which ID .

    /

    / [ RegularExpression [ / ] ]

    / RegularExpression .

    / dbx .

    .

    :

    () 15

  • 1. 12 .

    / 12

    2. , .

    /

    ? (search) regcmp

    .

    ?

    ? [ RegularExpression [ ? ] ]

    ? RegularExpression

    . ? dbx () .

    .

    :

    1. z , .

    ?z

    2. , .

    ?

    / (search) regcmp

    .

    alias

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

    alias dbx . Name .

    String dbx Name .

    alias .

    :

    1. rerun rr .

    alias rr rerun

    2. printandstep print n step

    .

    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

    16 , 2

  • px 16 .

    assign

    assign Variable=Expression

    assign Expression Variable .

    :

    1. 5 x .

    assign x = 5

    2. y x .

    assign x = y

    3. z z .

    assign z = z

    4. false B .

    assign B = false

    5. Hello World . Y, enter:

    assign Y = "Hello World"

    6. , dbx $unsafeassign

    .

    set $unsafeassign

    Displaying and Modifying Variables .

    attribute

    attribute [ AttributeNumber ... ]

    Attribute , mutex AttributeNumber

    . , .

    .

    attr $aAttributeNumber .obj_addr .type .

    thr, mutex cond, mutexes

    .state . valid inval .stack .scope . ,

    . sys pro .prio .

    () 17

  • sched . , fifo, rr (

    ) other .p-shar mutex condition . mutex condition

    , . yes no .protocol mutex . mutex .

    no_prio, prio protect .

    :

    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 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs Creating Threads,

    Mutexes Using Condition Variables .

    call

    call Procedure([] )

    call Procedure . .

    .

    : dbx .

    (dbx) call printf("hello")hello

    18 , 2

  • printf

    .

    case

    case [ default | mixed | lower | upper ]

    case dbx .

    . C, C++ ,

    . FORTRAN Pascal, .

    , .

    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

    SIGHUP, SIGCLD, SIGALARM SIGKILL

    . , .

    :

    1. dbx .

    catch

    () 19

  • 2. SIGALARM .

    catch SIGALARM

    ignore Handling Signals .

    clear

    clear SourceLine

    clear (stop) . SourceLine

    .

    v v :()

    : 19 .

    clear 19

    cleari delete . AIX 5L Venrsion 5.2 General Programming Concepts: Writing

    and Debugging Programs Setting and Deleting Breakpoints .

    cleari

    cleariAddress

    cleari Address .

    :

    1. 0x100001b4 .

    cleari 0x100001b4

    2. main() .

    cleari &main

    clear , delete , AIX 5L Venrsion 5.2 General Programming Concepts: Writing and

    Debugging Programs Setting and Deleting Breakpoints .

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

    condition . ConditionNumber

    , condition .

    , condition .

    20 , 2

  • .

    cv $cConditionNumber .obj_addr .num_wait .waiters .

    : 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 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs Using

    Condition Variables .

    cont

    cont [ SignalNumber | SignalName ]

    cont

    . , SignalNumber SignalName

    .

    SIG . ,

    .

    () 21

  • 1. .

    cont

    2. SIGQUIT .

    cont SIGQUIT

    dbx detach , dbx goto , dbx next , dbx skip

    , dbx step .

    delete

    delete { Number ... | all }

    delete . Number

    , all . dbx

    status .

    all .

    1. , .

    delete all

    2. 4 , .

    delete 4

    clear , cleari , status AIX 5L Venrsion 5.2 General Programming

    Concepts: Writing and Debugging Programs Setting and Deleting Breakpoints .

    detach

    detach [ SignalNumber | SignalName ]

    detach

    .

    .

    v SignalName v SignalNumber

    SIG .

    , . ,

    .

    22 , 2

  • 1. dbx

    .

    detach

    2. SIGREQUEST dbx

    .

    detach SIGREQUEST

    Using the dbx Debug Program .

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

    display memory

    .

    .

    v Address

    v Address , Address Count.

    &() . +( ),

    -( ), * . .

    v Mode . Mode . Mode X.

    b 8 .c .d 10 .D 10 .f .g .h 16 .i .lld 8 10 .llu 8 10 .llx 8 16 .llo 8 8 .o 8 .O 8 .q .s (null)

    .x 16 .X 16 .

    () 23

  • :

    >File .

    :

    1. 0x3fffe460 16

    .

    0x3fffe460 / X

    2. y 2 .

    &y / 2c

    3. FORTRAN a_string 6 - 8 .

    &a_string + 5, &a_string + 7/c

    AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs Examining

    Memory Addresses .

    down

    down [ Count ]

    down Count .

    . Count 1.

    :

    1. .

    2. .

    down 3

    up , where AIX 5L Venrsion 5.2 General Programming Concepts: Writing and

    Debugging Programs Displaying a Stack Trace .

    dump

    dump [ Procedure ] [ >File ]

    dump . Procedure .(

    ), . Procedure ,

    . >File .

    :

    >File .

    24 , 2

  • :

    1. .

    dump

    2. add_count .

    dump add_count

    3. var.list .

    dump > var.list

    AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs Displaying

    and Modifying Variables .

    edit

    edit [ Procedure | File ]

    edit . File Procedure

    , .

    , . vi . EDITOR

    .

    :

    1. .

    edit

    2. main.c .

    edit main.c

    3. do_count() .

    edit do_count

    list , vi vedit . AIX 5L Venrsion 5.2 General Programming Concepts:

    Writing and Debugging Programs Changing the Current File or Procedure Displaying the Current

    File .

    file

    file [ File ]

    file File . .

    File . File

    , dbx . File , file

    . , file

    .

    () 25

  • :

    1. main.c .

    file main.c

    2. , .

    func . AIX 5L Venrsion 5.2 General Programming Concepts: Writing and

    Debugging Programs Changing the Current File or Procedure Displaying the Current File

    .

    func

    func [ Procedure ]

    func Procedure . Procedure

    , .

    . .

    :

    1. do_count .

    func do_count

    2. , .

    func

    file . AIX 5L Venrsion 5.2 General Programming Concepts: Writing and

    Debugging Programs Changing the Current File or Procedure .

    goto

    gotoSourceLine

    goto . ,

    . set $unsafegoto

    .

    : 6 .

    goto 6

    cont , gotoi set .

    26 , 2

  • gotoi

    gotoi Address

    gotoi Address .

    : 0x100002b4 .

    gotoi 0x100002b4

    goto .

    help

    help [ Subcommand | Topic ]

    help dbx . help

    Subcommand

    . help Topic .

    .

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

    :

    1. dbx .

    help

    2. dbx .

    help list

    3. dbx set_variables .

    help set_variables

    ignore

    ignore [ SignalNumber | SignalName ]

    () 27

  • ignore .

    .

    .

    v SignalNumber v SignalName

    . SIG .

    SignalNumber SignalName , SIGHUP, SIGCLD,

    SIGALRM SIGKILL . dbx

    SIGTRAP . ,

    .

    : dbx .

    ignore alrm

    catch . AIX 5L Venrsion 5.2 General Programming Concepts: Writing and

    Debugging Programs Handling Signals .

    list

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

    list .

    .

    v Procedure .

    , list .

    v SourceLine-Expression

    .

    SourceLine-Expression +( ) -( ),

    . , $( ) SourceLine , @ SourceLine

    .

    .

    , .

    list , $listwindow .

    $listwindow

    . $listwindow 10 .

    :

    28 , 2

  • 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)

    edit , listi move . AIX 5L Venrsion 5.2 General

    Programming Concepts: Writing and Debugging Programs Displaying the Current File

    .

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

    listi . .

    v Procedure listi

    .

    v at SourceLine listi

    . SourceLine (:)

    .

    v Address

    .

    listi , $listwindow .

    , set $listwindow=Value .

    : dbx POWER POWER PC

    . dbx .

    () 29

  • 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 5L Venrsion 5.2 General Programming Concepts:

    Writing and Debugging Programs Debugging at the Machine Level with dbx .

    map

    map [ > File ]

    map .

    , , , .

    :

    > File .

    AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs Debugging

    at the Machine Level with dbx .

    move

    moveSourceLine

    move SourceLine . @(at

    ) .

    SourceLine :() .

    :

    30 , 2

  • 1. 12 .

    move 12

    2. sample.c 5 .

    move "sample.c":5

    list . AIX 5L Venrsion 5.2 General Programming Concepts: Writing and

    Debugging Programs Displaying the Current File .

    multproc

    multproc [ on |parent|child| off ]

    multproc dbx

    . on dbx

    . dbx . parent child

    . off dbx

    . off . , multproc

    .

    dbx Xwindows . dbx

    . ID(pid).

    , Xwindows dbx . Xwindows

    dbx

    . .

    v dbx Xwindows v Xwindows dbx $xdisplay

    $xdisplay DISPLAY . setName=Expressiondbx

    .

    v /tmp . dbx Xwindow .

    v Xwindow .

    $xdisplay , Xwindow . $xdisplay

    , Xwindows .

    dbx ,

    .

    : dbx . dbx .

    .Xdefaults dbx_term

    .

    () 31

  • :

    on .off .

    :

    1. , .

    multproc

    2. , .

    multproc on

    3. , .

    multproc off

    screen fork

    . AIX 5L Venrsion 5.2 General Programming Concepts:

    Writing and Debugging Programs Debugging Programs Involving Multiple Processes .

    mutex

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

    mutex mutex . MutexNumber , mutex

    mutex . , mutex

    mutex .

    mutex .

    mutex $mMutexNumber mutex .type mutex , non-rec(), recursi() fast .obj_addr mutex .lock mutex , mutex , .owner mutex mutex .blockers mutex .

    : dbx print mutex ,

    .

    :

    lock mutex .unlock mutex .thnum mutex .utid id id mutex

    .

    :

    32 , 2

  • 1. mutex .

    mutex

    2. mutex .

    mutex lock

    3. mutex 4, 5, 6 .

    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. thread 1 mutex .

    mutex thnum 1

    5. id 0x0001 mutex

    .

    mutex utid 0x0001

    attribute , condition , print , thread .

    , AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs Using

    Mutexes .

    next

    next [ Number ]

    next . Number next

    . Number , next .

    next ,

    .

    , set $hold_next .

    .

    :

    1. .

    next

    2. .

    next 3

    cont , goto , nexti , set step .

    () 33

  • nexti

    nexti [ Number ]

    nexti . Number nexti

    . Number , nexti .

    nexti ,

    . ,

    set $hold_next .

    .

    :

    1. .

    nexti

    2. .

    nexti 3

    gotoi , next , set stepi . , AIX 5L Venrsion

    5.2 General Programming Concepts: Writing and Debugging Programs Running a Program at the

    Machine Level .

    print print Expression ...

    printProcedure ( [ Parameters ] )

    print .

    v Expression .v Procedure . .

    :

    1. 2 x y .

    print x, y

  • prompt

    prompt [ String ]

    prompt dbx String .

    : dbx> , .

    prompt "dbx>"

    AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs Defining

    a New dbx Prompt .

    quit quit

    quit dbx

    .

    detach .

    registers registers [ >File ]

    registers , , ,

    .

    v $rNumber , Number .

    : 0xdeadbeef 16 . 0xdeadbeef 16

    .

    v $frNumber . , . unset $noflregs dbx .

    : registers .

    :

    >File .

    set unset . , AIX 5L Venrsion 5.2 General Programming Concepts:

    Writing and Debugging Programs Using Machine Registers .

    rerun

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

    >& File ]

    () 35

  • rerun . Arguments . Arguments

    , run rerun .

    :

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

    >&File

    File .

    run .

    return

    return [ Procedure ]

    return Procedure .

    Procedure , .

    :

    1.

    .

    return

    2. main .

    return main

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

    rwlock rwlocks . RwlockNumber , rwlock

    rwlocks . , rwlock

    rwlocks .

    rwlock .

    rwl $rw RwlockNumber rwlock .flag_value .owner rwlock .status rwlock . ( ), (

    ), ( ).wsleep[#] . # .rsleep[#] . # .

    36 , 2

  • : dbx print rwlock ,

    .

    :

    read rwlocks .write rwlocks .

    :

    1. rwlocks .

    rwlock

    .

    rwl flag_value owner status$rwl 1 $t1 write

    rsleeps[ 0]:wsleeps[ 0]:

    2. rwlocks .

    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 .

    () 37

  • run blue 12

    rerun .

    screen

    screen

    screen dbx Xwindow .

    .

    screen dbx Xwindows . screen

    Xwindow , dbx screen

    . screen

    .

    v dbx Xwindows v Xwindows dbx $xdisplay

    $xdisplay DISPLAY . dbx set Name=Expression

    .

    v Xwindows , TERM .

    v /tmp . dbx screen .

    v Xwindow .

    dbx ,

    .

    : dbx . dbx .

    $xdisplay , Xwindow . $xdisplay

    , Xwindows .

    .Xdefaults dbx_term

    .

    : dbx Xwindow .

    screen

    AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs Separating

    dbx Output From Program Output AIX 5L Version 5.2 AIXwindows Programming Guide AIXwindows

    overview .

    38 , 2

  • set

    set [ Variable=Expression ]

    set dbx . Expression

    Variable .

    . . set

    , .

    set .

    $catchbp .$expandunions .$frame $frame

    .$hexchars 16 .$hexin 16 .$hexints 16 .$hexstrings 16 .$hold_next cont, next, nexti step

    .

    .$ignoreload load , unload loadbind

    .$instructionset . Expression

    .

    default

    dbx .

    com POWER PC POWER

    . dbx POWER .

    pwr POWER .

    pwrx AIX 5.1 POWER POWER2

    .

    601 AIX 5.1 PowerPC 601 RISC

    .

    603 AIX 5.1 PowerPC 603 RISC

    .

    604 PowerPC 604 RISC .

    ppc POWER

    . AIX 5.1 PowerPC 601 RISC

    POWER .

    any POWER POWER .

    , POWER .

    Expression dbx

    .

    () 39

  • $listwindow list

    . 10.$mapaddrs . $mapaddrs .$mnemonics dbx .

    default

    .

    pwr POWER .

    ppc POWER .

    Expression dbx

    .$noargs where, up, down, dump .$noflregs registers .$octin 8 .$octints 8 .$pretty print pretty printed C C++ (strut, union,

    array) .

    on pretty printing

    .

    verbose

    pretty

    printing .

    .

    off Pretty printing . .$repeat .$sigblock .$stepignore

    step

    dbx . step

    ! . Expression

    .

    function

    dbx next . .

    module

    (: )

    , next .

    none dbx

    stepi . dbx

    .

    $thcomp $thcomp , th- .$unsafeassign assign . $unsafeassign assign

    .$unsafebounds .$unsafecall

    .$unsafegoto goto .

    40 , 2

  • $vardim . 10

    .$xdisplay multproc screen Xwindows .

    DISPLAY .

    $unsafe dbx .

    :

    1. 20 .

    set $listwindow=20

    2. assign .

    set $unsafeassign

    3. AIX 5.1 PowerPC 601 RISC

    , .

    set $instructionset="601"

    unset . , AIX 5L Venrsion 5.2 General Programming Concepts: Writing

    and Debugging Programs Changing Print Output with Special Debug Program Variables

    .

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

    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

    () 41

  • 2. .

    sh

    3. SHELL .

    sh echo $SHELL

    AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs Running

    Shell Commands from dbx .

    skip

    skip [ Number ]

    skip . Number

    . Number

    1 .

    : .

    skip 1

    cont .

    source

    sourceFile

    source File dbx .

    : cmdfile dbx .

    source cmdfile

    AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs Reading dbx

    Subcommands from a File .

    status

    status [ >File ]

    status trace stop . > status

    File .

    :

    >File File .

    dbx clear , delete , stop trace .

    42 , 2

  • , AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs Setting

    and Deleting Breakpoints .

    step

    step [ Number ]

    step . Number

    . Number , 1 .

    step ,

    . ,

    set $hold_next .

    .

    : step set $stepignore . $stepignore

    step

    ! .

    :

    1. , .

    step

    2. 5 , .

    step 5

    3.

    60 printf ("hello world \n") dbx printf

    .

    set $stepignore="function"; step

    cont , goto , next , set , stepi .

    stepi

    stepi [ Number ]

    stepi . Number

    . Number 1 .

    , stepi .

    .

    :

    () 43

  • 1. , .

    stepi

    2. 5 .

    stepi 5

    gotoi , nexti , step .

    stop

    stop { [Variable] [ at SourceLine | in Procedure ] [ if Condition ]}

    stop .

    .

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

    SourceLine :() .

    dbx .

    ID .

    . .

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

    ID. dbx stop

    . , ID

    . dbx

    , .

    status . status

    . delete clear stop .

    .

    9

    . .

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

    44 , 2

  • ThreadNumber thread ( ,

    5 thread $t5 ThreadNumber).

    .

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

    :

    at SourceLine .ifCondition .inProcedure .

    :

    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. thread $t5 func1 ,

    .

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

    () 45

  • bfth(func1, 5)

    clear , delete , stopi trace . , AIX 5L Venrsion

    5.2 General Programming Concepts: Writing and Debugging Programs Setting and Deleting Breakpoints

    .

    stophwp stophwp Address Size

    stophwp .

    .

    :

    1. stophwp . 630, PowerPC

    .

    2. , stophwp tracehwp

    . ,

    . (

    stop trace ) ,

    .

    :

    1. 0x200004e8 4 ,

    .

    stophwp 0x200004e8 4

    tracehwp .

    stopi

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

    stopi .

    v if Condition .v Address Address .v at Address .v e inProcedure , Procedure .

    :

    ifCondition .inProcedure .

    46 , 2

  • atAddress .

    :

    1. 0x100020f0 .

    stopi at 0x100020f0

    2. 0x100020f0 .

    stopi 0x100020f0

    3. 0x100020f0 $t1 .

    stopi 0x200020f0 if ($running_thread == 1)

    stop . , AIX 5L Venrsion 5.2 General Programming Concepts: Writing and

    Debugging Programs Debugging at the Machine Level with dbx .

    thread

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

    wait

    : thread current [ - ] ThreadNumber

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

    : thread {help}

    thread .

    thread . thread th

    . thread th - .

    , . ThreadNumber

    . thread ,

    >. , *

    . thread .

    thread .

    thread $tThreadNumber .state-k , . ,

    wait, susp,

    term.wchan ( ).state-u . , , .k-tid ID ( ).mode ( ) ( ).held .scope . ,

    sys pro

    .function .

    () 47

  • thread . , thread th -

    , long .

    thread $tThreadNumber .

    tid ID( ).pri .sched . fifo fif, other oth, (round robin) rr

    .state , .

    run, wait, susp, zombie zomb .

    tid ID.pri userl .sched . fifo fif, other oth,

    (round robin) rr .state . , , , ,

    .state 16 .flags pthread 16 .wchan (

    ).mode ( ) (

    ).held .scope . sys pro

    .cancellation pending .

    state .

    ed

    , ea ,

    d .

    ED

    , EA ,

    D .

    joinable .boosted .function .cursig .

    $thcomp , .

    48 , 2

  • 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)isabled pending:(E)nabled &(D)eferred, (E)nabled &(A)sync,(D)isabledj joinable (yes) (n)o

    b 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 . dbx print,

    register where .

    registers .

    thread . hold

    unhold .

    .

    : dbx print ,

    .

    :

    current ThreadNumber , . ThreadNumber ,

    .help th - .hold ThreadNumber , .

    ThreadNumber .unhold ThreadNumber , .

    ThreadNumber .

    () 49

  • info ThreadNumber , long .

    ThreadNumber long .

    [-]

    . , set $thcomp

    long .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. thread 4 , .

    thread current 4

    4. thread 2 , .

    thread hold 2

    5. thread , .

    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. thread , .

    thread - 1 2 3

    .

    50 , 2

  • 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 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs Creating

    Threads .

    trace

    trace [ SourceLine | Expression at SourceLine | Procedure | [ Variable ] [ at SourceLine | in Procedure

    ] ] [ if Condition ]

    trace , , ,

    . SourceLine :()

    . . dbx trace . status

    . delete .

    . 8

    .

    :

    at SourceLine .ifCondition . ifCondition .inProcedure .

    :

    1. printf .

    trace printf

    2. hello.c 22 .

    trace "hello.c":22

    3. main x .

    trace x in main

    4. 0x2004000 .

    set $A=0x2004000trace $A

    : tracei .

    5. Procedure .

    Condition . .

    () 51

  • (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)

    tracei .

    tracehwp tracehwp Address Size

    tracehwp . dbx

    .

    :

    1. tracehwp . 630, PowerPC

    .

    2. , stophwp tracehwp

    . ,

    . (

    stop trace ) ,

    .

    :

    52 , 2

  • 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 inProcedure Procedure .v ifCondition Condition .

    :

    atAddress . .ifCondition . .inProcedure . .

    :

    1. .

    tracei

    2. 0x100020f0 .

    tracei at 0x100020f0

    3. main 0x20004020

    .

    tracei 0x20004020 in main

    4. thread $t4 0x100020f0 .

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

    trace . , AIX 5L Venrsion 5.2 General Programming Concepts: Writing

    and Debugging Programs Debugging at the Machine Level with dbx .

    unalias

    unaliasName

    unalias Name .

    : printx .

    () 53

  • unalias printx

    alias . , AIX 5L Venrsion 5.2 General Programming Concepts: Writing and

    Debugging Programs Creating Subcommand Aliases .

    unset

    unsetName

    unset Name dbx .

    : .

    unset $noflregs

    set . , AIX 5L Venrsion 5.2 General Programming Concepts: Writing and

    Debugging Programs Changing Print Output With Special Debugging Variables .

    up

    up [ Count ]

    up Count .

    . Count 1.

    :

    1. 2 , .

    up 2

    2. .

    up 0

    down . , AIX 5L Venrsion 5.2 General Programming Concepts: Writing

    and Debugging Programs Changing the Current File or Procedure Displaying a Stack Trace

    .

    use

    use [ Directory ... ]

    use dbx .

    use , .

    @(at ) dbx ( )

    . @ , ./@ .

    54 , 2

  • use +( ) . +

    , (: ./+ /tmp/+).

    :

    1. (.), (..), /tmp

    .

    use . .. /tmp

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

    .

    use . @ ../source

    3. /tmp2 .

    use + /tmp2

    , edit list .

    whatis

    whatisName

    whatis Name

    , Name ,

    .

    : dbx whatis .

    :

    1. x

    .

    whatis x

    2. main

    , .

    whatis main

    3. main x

    .

    whatis main.x

    4. , ( Pascal )

    , $$TagName .

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

    where

    where [ >File ]

    where . >File ,

    .

    () 55

  • :

    >File .

    up down . , AIX 5L Venrsion 5.2 General Programming

    Concepts: Writing and Debugging Programs Displaying a Stack Trace .

    whereis

    whereisIdentifier

    whereis ID .

    .

    : x .

    whereis x

    which .

    which

    which Identifier

    which ID . ID

    .

    : x .

    which x

    whereis . , AIX 5L Venrsion 5.2 General Programming Concepts: Writing

    and Debugging Programs Scoping of Names .

    a.out .core ..dbxinit .

    adb , cc .

    a.out , core

    AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs dbx Symbolic

    Debug Program Overview Using the dbx Debug Program.

    56 , 2

  • dc

    ..

    dc [ File]

    dc . dc EOF( ) File

    (STDIN) . dc ,

    . ,

    . dc ,

    bc dc . C

    ..

    c . dc .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 .

    () 57

  • Number . Number 0 - 9

    . .+ - / * % ^ (+), (-), "(*), (/), (%)

    (^ ) . dc

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

    . x

    .! .? .;: bc .

    1. dc , .

    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

    . lf x 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

  • [ Return f(n) = 1 ]s.[d - 1 +] sb[ Return f(n) = n * f(n-1) ]s.[d 1 - lf x *] sr

    bc -c() dc

    . dc Ctrl-D bc

    .

    /usr/bin/dc dc .

    bc .

    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

    (STDOUT) . I/O

    .

    : dd

    .

    . w, b k

    2, 512

    1024 . x *() . count

    .

    () 59

  • conv=ascii conv=ebcdic .

    ASCII EBCDIC .

    cbs block, unblock, ascii, ebcdic ibm

    . unblock ascii , dd .

    , . cbs .

    : cbs , .

    , dd .

    :

    1. .

    seek

    .

    2. dd conv=ascii conv=unblock

    . conv=ebcdic, conv=ibm conv=block

    .

    3. dd backup, tar cpio

    . .

    rmt .

    4. bs, ibs obs .

    5. conv=sync dd (null) . , dd

    (ibs ) (null)

    . .

    6. bs sync, noerror notrunc

    . sync

    . bs sync,

    noerror notrunc ,

    .

    dd .

    : bs

    .

    InFile OutFile stdin stdout dd .

    dd

    . dd

    . n .

    60 , 2

  • bs=BlockSize ibs obs . bs

    .cbs=BlockSize conv=block ,

    .count=InputBlocks InputBlocks .conv= Conversion,.... .

    . .

    ascii EBCDIC ASCII . ebcdic, ibm, block unblock

    .

    block .

    (cbs) . ascii, ebcdic, ibm unblock

    .

    ebcdic ASCII EBCDIC . ascii, ibm, block unblock

    .

    ibm ASCII IBM EBCDIC . ascii, ebcdic, block

    unblock .

    iblock, oblock

    . iblock ( 512

    ibs=InputBlockSize )

    , dd . dd

    ,

    . , 512 .

    (ibs) .

    . oblock

    .

    lcase .

    noerror .

    notrunc .

    .

    ucase .

    swab .

    sync ibs .

    unblock

    . (cbs)

    . ascii, ebcdic, ibm block

    .files=InputFiles

    InputFiles .

    .fskip=SkipEOFs SkipEOFs .

    SkipEOFs .

    () 61

  • ibs=InputBlockSize . 512 . ibs

    .if=InFile . (STDIN) .obs=OutputBlockSize . 512 . obs

    .of=OutFile . (STDOUT) .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 (9A

    16), 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 132 EBCDIC

    .

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

    5. 1KB 2KB

    .

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

    62 , 2

  • 6. dd .

    ls -l | dd conv=ucase

    .

    : 9348 12 dd cpio

    . , chdev .

    chdev -l Device_name -a block_size=32k

    7. 512 36 3.5 1.4MB

    .

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

    Filename .

    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

    13. 32k ,

    .

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

    () 63

  • /usr/bin/dd dd .

    backup, cp, cpio, tar, tr .

    rmt .

    AIX 5L Version 5.2 System Management Concepts: Operating System and Devices Backup Overview

    for System Management ..

    AIX 5L 5.2 :

    ..

    defaultbrowser

    URL .

    defaultbrowser [ URL [Netscapewindowname]]

    defaultbrowser DEFAULT_BROWSER .

    URL , URL .

    URL .

    Netscapewindowname

    . URL . URL

    . URL .

    , .

    , .

    defaultbrowser HTML

    . ,

    DEFAULT_BROWSER . ,

    .

    64 , 2

  • DEFAULT_BROWSER . URL

    . ,

    URL wonderbrowser -r URL , DEFAULT_BROWSER

    wonderbrowser -r .

    DEFAULT_BROWSER , defaultbrowser

    .

    URL .

    Netscapewindowname , .

    , URL . URL

    .

    .

    1.

    .

    defaultbrowser

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

    .

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

    3. , URL http://machine/path/file.html

    , webpage , .

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

    /usr/bin/defaultbrowser defaultbrowser

    defif

    .

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

    () 65

  • defif .

    . defif .

    1. ! .

    2. .

    3. .

    4. .

    5. defined .

    -cClass

    . if-sSubclass . .

    TR

    EN

    SL

    XT X.25

    LO

    -tType . .

    tr

    en

    sl

    ie3 IEEE( ) 802.3

    lo

    xt X.25

    .

    defif -t tr

    mkdev .

    odm_run_method

    .

    AIX 5L Version 5.2 System Management Guide: Communications and Networks TCP/IP Network

    Interfaces.

    General Programming Concepts Object Data Manager(ODM) Overiew for Programmers.

    66 , 2

  • Kernl Extensions and Device Support Programming Concepts Writing a Device Method.

    definet

    inet .

    definet [ -c Class ]

    definet ODM inet

    . .

    1. inet .

    2. inet .

    mkdev .

    : definet .

    -c Class inet . Class tcpip.

    inet0 .

    definet

    mkdev .

    odm_run_method

    .

    General Programming Concepts Object Data Manager(ODM) Overiew for Programmers.

    Kernl Extensions and Device Support Programming Concepts Writing a Device Method.

    () 67

  • defragfs

    .

    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 defragfs -q, -r -s .-s . defragfs

    .

    JFS defragfs .

    Number of free fragments

    .

    Number of allocated fragments

    .

    68 , 2

  • Number of free spaces shorter than a block

    .

    .

    Number of free fragments in short free spaces

    .

    .

    Number of fragments moved

    .

    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

    .

    () 69

  • Allocation groups are candidates for defragmenting

    .

    Average number of free runs in candidate allocation groups

    , .

    .

    Total number of blocks

    .

    Number of blocks that may be migrated

    .

    FileSystem filesystem is n percent fragmented

    .

    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 .

    AIX 5L Version 5.2 System Management Concepts: Operating System and Devices Understanding Data

    Compression Understanding Fragments and a Variable Number of i-nodes

    defvsd

    defvsd - .

    70 , 2

  • defvsd logical_volume_name global_group_name vsd_name

    .

    SMIT(System Management Interface Tool) defvsd . SMIT

    .

    smit vsd_data

    , .

    logical_volume_name

    .

    . 15 .

    global_group_name

    vsdvg

    . 31 .

    vsd_name . RSCT

    .

    vsdnngvg_name. 31 .

    : vsd_name cfgvsd

    .

    (: )

    .

    .

    0 .

    -1 .

    () 71

  • .

    startrpdomain . startrpnode

    . RSCT RSCT:

    .

    createvsd -n 1/2:hdisk13/ -s 1024 -g testvg -v testvsd -T 16

    .

    createvsd: calls Getopts.createvsd: parsing node_list.createvsd: creates task tables.createvsd: calls checkclvm.perl on the nodes c164n11.ppd.pok.ibm.comcreatevsd: calls domkvglv.perl.OK:1:mkvg -f -y testvg -s 16 hdisk13OK:1:mklv -a c -y lvtestvsd1n1 -e x testvg 64 hdisk13It took about 8 seconds in mkvglv.createvsd: calls dovaryoffvg.perl testvg on the primary node c164n11.ppd.pok.ibm.comOK:1:chvg -a n testvgOK:1:varyoffvg testvgcreatevsd: calls doimportvg.perl testvg on the nodesc164n12.ppd.pok.ibm.com with 000048186b991a6fimportvg : testvgimportvg : OK:2:importvg -y testvg hdisk5importvg : OK:2:chvg -a n testvgimportvg : timestamp 2 testvg 3e036cb33403c8c8importvg : OK:2:varyoffvg testvgimportvg : It took about 10 seconds.It took about 12 seconds in importvg.createvsd: calls vsdvg.OK:1:vsdvg -g testvgn1b2 testvg 1 2It took about 12 seconds in vsdvg.createvsd: calls dovaryonvg.perl testvg on pri nodes c164n11.ppd.pok.ibm.comOK:1:varyonvg testvgcreatevsd: calls defvsd.OK:1:defvsd lvtestvsd1n1 testvgn1b2 testvsd1n1It took about 5 seconds in defvsd.

    1. vg1n1 lv1vg1n1 vsd1vg1n1

    .

    defvsd lv1vg1n1 vg1n1 vsd1vg1n1

    72 , 2

  • /opt/rsct/vsd/bin/defvsd

    : vsdatalst, vsdvg, undefvsd

    deleteX11input

    ODM(Object Data Management) X11 .

    deleteX11input DeviceName ...

    deleteX11input ODM X11 .

    DeviceName ODM .

    .

    .

    . ,

    .

    DeviceName X11 .

    ODM . ODM

    .: deleteX11input DeviceName .

    addX11input , listX11input .

    delta

    (SCCS) .

    () 73

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

    File ...

    delta get -e

    (SCCS) .

    delta (SCCS get ) g-

    . g 512 .

    File delta SCCS

    (, s. ) . File -( )

    , delta (STDIN) SCCS . delta

    (STDIN) , -y . v -m

    . delta EOF( ) (STDIN) .

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

    . SOH SCCS .

    SCCS get delta get

    . , get delta .

    delta SCCS . delta

    .

    1. get -e .

    2. .

    3. SCCS delta .

    -y delta .

    SCCS . get ,

    . .

    , SCCS , cat SCCS

    , prs (STDOUT) . SCCS

    . , cdc .

    : ID delta .

    . delta

    . , ID .

    SCCS delta .

    74 , 2

  • admin -f i . ,

    .

    -gList get g- SID() .

    , get g- .-m ModificationRequestList

    SCCS v , MR(Modification Request)

    .

    -m v , delta (STDIN)

    MR . (STDIN) , delta

    MR . delta EOF( )

    MR . MR (-y

    ). , MR .

    v , MR

    . delta MR 0

    , delta MR

    .-n delta g- .-p SCCS diff

    (STDOUT) . diff .-rSID (SCCS) .

    SCCS get -e

    , . SID get SID

    SID(get ) . SID

    SID .-s delta (STDOUT)

    .-y[Comment] . (null)

    Comment . ,

    .

    -y delta (STDIN)

    (EOF) .

    , delta .

    \(), . 512 .

    .

    0 .>0 .

    () 75

  • 1. (SCCS) .

    delta s.prog.c

    SCCS s.prog.c prog.c

    . delta .

    (EOF) .

    2. (SCCS)

    .

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

    /usr/bin/delta delta .

    admin , cat , cdc , diff , get , prs , rmdel , sccsdiff sccshelp

    .

    sccsfile .

    AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Programs List of SCCS

    Commands.

    AIX 5L Venrsion 5.2 General Programming Concepts: Writing and Debugging Program