upgrading xubuntu to 24.04, fresh install, but I’d like to copy the output of both dpkg -l and history to a usb stick.

About history: will it copy all commands I executed on all tabs? I work with several tabs simultaneously.

ETA: thank you for all your input, problem has been solved.

  • lurch@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    30 days ago

    I’m pretty sure the history command outputs only commands from the shell/tab it’s invoked in plus the commands already saved to the shells history file. Commands are not always saved to the file immediately. So to make 100% sure, you have to clean exit all shells before using history.

    You can easily test this by using a unique command (like: echo 123) in one shell and history in another.

    Also the shell probably has a man page detailing config options that affect the history.