Ctrl \
or
kill -SIGQUIT <pid>
Override it with:
stty quit <some-binding>
Similarly for that age-old backspace not deleting a character problem:
stty erase ^h
To see the current terminal capabilities, run:
stty -a
Ctrl \
or
kill -SIGQUIT <pid>
Override it with:
stty quit <some-binding>
Similarly for that age-old backspace not deleting a character problem:
stty erase ^h
To see the current terminal capabilities, run:
stty -a
cp -r somepackage somepackage-new
# make changes in somepackage-new
diff -ruN somepackage somepackage-new > mychanges.patch
# give the patch to someone else, who can now do:
cd somepackage
patch -p1 < mychanges.patch
More information than you’ll ever need here.
I wanted to install Hack recently, and this is how I did it:
Make a folder and dump the .ttf files there:
mkdir -p /usr/share/fonts/hack
Then run this:
fc-cache -f -v
Here’s a quick tip that I’ll need to keep getting back to every now and then.
In Centos:
ln -s /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
In Debian:
timedatectl set-timezone Asia/Kolkata
Here’s a great site that should be in every linux user’s toolbox : Explain Shell.
It basically allows you type a command that you picked up from the web somewhere (or something burned in memory that you type out of sheer habit), and it shows what each argument to it actually does. For example, here’s a command I had to run recently that I had no clue about:
git pull -s recursive -X theirs upstream master
Paste that in the explainshell website and it coughs up a great explanation. Pretty useful when you don’t want to scroll through long man pages piecing together a particular command.
Today I re-discovered etckeeper, which allows `/etc` to be version-controlled with a VCS (git in my case). I decided to spend some time figuring it out and stop worrying about messing things up each time I wanted to experiment with something. It also hooks in to the package manager during an upgrade or install, so that’s ones less thing to worry about.
etckeeper is written by Joey Hess, whose ikiwiki platform I’m already using to power this site. Check out his neat, minimalistic setup here. His blog is always an interesting read.
It took me less than an hour to figure things out the first time. Now I have a neat setup that runs itself: each change made to one of my dotfiles or configuration files automatically pushes the changes to the backup server and keeps it in sync.
Best of all, there is no lock-in with a third party provider, and no worry about unsupported platforms.