Terminal

From Bitpost wiki

The linux terminal is your lifeblood. There are so many - TOO MANY - options. I'll gather a few of my favorite things here.

Host-specific color and banner

This is mucho importante to quickly tell which machine you are on:

  • use figlet and jp2a to create ascii art
  • update ~/.bashrc to echo the ascii art in a host-specific color, and to persist that color in the prompt
  • make sure to include an interactive check to avoid the banner if not interactive

See the many examples of .bashrc in the config repo.

Monitor running processes

  • top, htop are meh
  • This must be perfected, it is the answer, it shows a TREE of terminal processes:
watch -n 1 ps fT

Drop a dead ssh session

Remember this one to drop a dead ssh session!

[enter]~.