> ps ax | grep [b]ash | grep -o 'pts...' … will not tell us what terminal is running *only* bash. -- Nicolas George