Research and education quanta of an experimental physicist

TERMINAL BASED TEXT EDITORS

Sep 01, 2016 learning text editor phys-492/592

When you log into a Linux machine using PuTTY from a Windows PC, you need a terminal based text editor to create or modify text files. If all you want to do is to read a text file, you need the following commands instead of a text editor:

» Read full story ...

STOP ACCIDENTALLY PRINTING FROM RXVT

Aug 31, 2016 learning terminal

Explicitly set the following X resource of rxvt to something you like instead of the default value: lpr:

» Read full story ...

SEND MULIPLE LINE COMMANDS OVER SSH

Aug 31, 2016 learning SSH

#!/bin/sh
ssh -T usr@host <<'CMDS'
for pid in `ps aux | grep badThings | awk '{print $2}'`
do
  kill -9 $pid
done
CMDS
» Read full story ...

FIX BACKSPACE KEY PROBLEM IN LINUX TERMINALS

Aug 31, 2016 learning terminal

Very often the backspace key in your terminal prints strange characters instead of deleting a letter on the left. The historic reason is explained in this article. Basically, you need to dump the current terminfo to stdout, fix some keys using sed and save the result into a text file:

» Read full story ...

ESTABLISH SOCKS PROXY OVER SSH

Aug 31, 2016 learning SSH

If a remote sshd server has the following setup:

» Read full story ...
About

Blogs on physics research and educational activities of Jing LIU, an assistant professor in physics at the University of South Dakota. He is an experimental physicist developing novel particle detectors for astroparticle physics and civil use.