Debdeep Bhattacharya

View My GitHub Profile

Improving productivity on terminal

11 May 2019

Preferred termial: xfce4-terminal

I moved from xterm to xfce4-terminal due to its ability to resize the font on the fly using Ctrl Shift +/-. xterm lacked many features which I wanted to use while keeping it lightweight. I have modified some aspects of it though.

Apart from many shortcuts a linux terminal provides, here are some of my favorite ones.

Last command

Array approach for typing less:

instead of cp /etc/file /etc/file-old, do cp /etc/file{,-old} or, instead of mv /etc/file.txt /etc/file.pdf fo ` mv /etc/file.{txt,pdf} So, empty field inside {.,.}` means itself.

Of course, you can define your own alias in .bashrc, but these shortcuts will save you a lot of typing effot. Lifehacker has a few more tips.