User Tools

Site Tools


bash_oneliners

This is an old revision of the document!


BASH oneliners

  • Remove offending key from known_hosts file with one command
$ sed -i 18d .ssh/known_hosts
  • Whats my WAN IP?
$ dig +short myip.opendns.com @resolver1.opendns.com
  • Find large files, print 10 largest files in dir
$ find . -printf '%s %p\n'|sort -nr|head
bash_oneliners.1449484814.txt.gz · Last modified: 2015/12/19 14:59 (external edit)