Skip to content

Instantly share code, notes, and snippets.

@jmcclell
Created March 24, 2014 21:31
Show Gist options
  • Save jmcclell/9749594 to your computer and use it in GitHub Desktop.
Save jmcclell/9749594 to your computer and use it in GitHub Desktop.
sysadmin tips
Delete a line in a file (great for removing offending keys in known_hosts)
sed -i.bak -e '134d' /root/.ssh/known_hosts
will delete line #134 and back p the file as known_hosts.bak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment