Util-linux cheat sheet

  • OK this is more than I need right now, but I did get curious about the "script" command that captures your term session to a text file- to start and stop use:

      script
      ctrl-d
    
    But when looking at my output file (if you just do what I did above it will be called 'typescript') it has control characters around the file names. How can I suppress these?

  • I'm guessing this was generated by running `man -f` on the list of executables provided by util-linux.

        descriptions() { xargs -I '{}' man -f '{}' ; }
        executables() { pkgfile -bl $1 | cut -f 2; } # Arch Linux specific
        executables util-linux | descriptions 2> missed | sort | less