ssh – remove offending key.

2016-04-04 1 min read Linux
Whenever a system/server is re-installed or the host key changed for any reason, you would have seen the “host key verification failed”. And as usual you would have to go to known_hosts file and delete the offending key. I will show you 2 simple ways to do this here. The output that you get in such scenario is: Offending ECDSA key in ~/.ssh/known_hosts:4 First, you can use sed to directly delete the offending key with a command like this : Continue reading

bashrc with lots of functions and useful alias

2013-10-30 1 min read bash
Here is a link of a useful 10K lines bashrc http://pastebin.com/LEkXXuST You may not want to put the whole thing, but get an idea and use what you think can be helpful to you or at-least get an idea. This was not posted by me, so if you are re-using code as is, check the permissions to copy.

Pimp your ls

2010-05-27 1 min read bash
Here are some of the things that you can do with your ls command. First off you can use alias&#8217;s to help you type the most typical ls commands. I will give you some examples: alias ls =&#8221;ls –color –classify&#8221; alias ls.=&#8221;ls -d .*&#8221; Very commonly used : 1 2 <td> <div class="text codecolorer"> alias ll="ls -lhvrt"<br /> lsd="ls -lUd */" # List directories only </div> </td> </tr> And after all this you can download the l script from pixelbeat. Continue reading