Ctl-a Beginning of line Ctl-e End of line Ctl-k Delete from cursor position to end of line Esc-a Begining of a sentence, if each sentence is eperated by two blanks Esc-e End of a sentence, if each sentence is seperated by two blanks Esc-k Delete from cursor to end of sentence, if each sentence is […]
How to Run a Shell Command from Python and Get The Output?
In Python, often you may want to execute linux command and get the output of the command as string variable. There are multiple ways to execute shell command and get output using Python. A naive way to do that is to execeute the linux command, save the output in file and parse the file. Get […]
Vim and EMACS Jokes on Twitter
Are you a Vim user or emacs user? Either way, here are some funny jokes on using Vim and emacs, mostly Vim though 🙂 on twitter. And mostly about exiting Vim 🙂 Did you know that How to Exit Vim is one of the most popular questions on Stack Exchange. The question pretty close to […]
How To Remove ^M Characters in Vim?
Moved a text file between tow different operating systems? Found the annoying ^M special character? Here are ways to remove ^M character. To remove ^M within a line (without creating a a line break) :%s/^V^M//g To remove ^M within a line (creating a a line break) :%s/^V^M/^V^M/g
Great Web Tool to Learn Linux Commands
Ever wondered what these different parameters of a linux command does? One option is to lookup the meaning of each parameter in a command on a man page. For sure sure it is worth doing that, but very cumbersome. The website ExplainShell.com makes it easy to understand the meaning of each parameter in a linux […]

