Created
March 24, 2014 21:31
-
-
Save jmcclell/9749594 to your computer and use it in GitHub Desktop.
sysadmin tips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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