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

in #linux2 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    


  • 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'

  • 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