TanNoisEr-IT avatar

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

oneshot

Published: 29 Mar 2021 › Updated: 29 Mar 2021#Linux 5 [wget, date,  sed, man, setterm] useful cli oneliners.

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

  • 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

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

Written by

Tech blog. Mainly focused on Linux and Free Software, featuring geeky articles and personal insights.

Read more #linux posts


Best Posts From TanNoisEr-IT

We have not curated any of oneshot's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From TanNoisEr-IT