#Linux 5 [wget, date, sed, man, setterm] useful cli oneliners.

in #linux3 years ago (edited)
  • WGET Download an entire website with a single command:
wget --random-wait -r -p -e robots=off -U mozilla http://www.example.com    

https://www.commandlinefu.com/commands/view/901/download-an-entire-website

  • DATE Which day would be +90 from now?
    date -d "today +90 days" or date -d "+90 days"

  • SED Delete blank lines:
    strictly empty sed '/^$/d' or with spaces & tabs sed '/^\s*$/d'
    https://stackoverflow.com/questions/16414410/delete-empty-lines-using-sed

  • Search MAN pages for a given string: man -k string

  • SETTERM Change (and keep it) VT background and foreground:
    $ setterm -store -background blue -foreground cyan







please feel free to write comments suggestions and alternatives

untitled.gif