последние введеные команды

Discussion in 'Linux, Freebsd, *nix' started by SVAROG, 21 May 2009.

  1. SVAROG

    SVAROG Elder - Старейшина

    Joined:
    13 Feb 2007
    Messages:
    424
    Likes Received:
    86
    Reputations:
    -1
    нужно записать все последние введёные команды в текстовый файл :confused: help
     
  2. oRb

    oRb Elder - Старейшина

    Joined:
    9 May 2008
    Messages:
    294
    Likes Received:
    582
    Reputations:
    256
    почитай содержимое следующих файлов:
    .bash_history
    .sh_history
     
  3. pento

    pento Elder - Старейшина

    Joined:
    3 Jul 2006
    Messages:
    126
    Likes Received:
    24
    Reputations:
    -1
    man script
     
  4. razb

    razb Active Member

    Joined:
    24 Mar 2009
    Messages:
    658
    Likes Received:
    133
    Reputations:
    18
    Вот держи:
    Code:
    $cat ~/.bash_history > cmd_history.txt || cat ~/.sh_history >> cmd_history.txt