Sunday, October 24, 2021

Random Notes

How to sum values of one column in command line.

cat <file with one column of values> |  paste -sd+ - | bc


How to change vim type to take keyboard input in normal form


Create a file ~/.vimrc if already not exist add below line to it
"set nocp"


What to do if mouse/touchpad stops working on ubuntu suddenly ?

run following commands, it will remove and install the psmouse module of ubuntu
sudo modprobe -r psmouse & sudo modprobe psmouse