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.

  • oo1@kbin.social
    link
    fedilink
    arrow-up
    5
    ·
    6 months ago

    in case it’s not clear from the comments . and sorry for repeating if it is, but this >> thing is a really useful terminal thing to know in many cases.
    >>
    will trap and redirect terminal output.

    So consider any old commmand and its output:
    echo abc

    This invokes the echo command and echo outpts “abc” to terminal.

    If we add on >> we can catch and redirect the output:

     echo abc >> blah.txt
    
    

    Will capture the output “abc” into the file.

    Note this is an APPEND operation, so run it twice to the same output file and you’ll add more and more output to new lines at the end of the same file.