Linux

Fix unknown terminal type

You may get this error when running certain commands (for me it was clear) when ssh'ing into a fresh Linux install.

  1. Get the exact terminal name specification -- echo $TERM.

  2. Copy over the right file from /usr/share/terminfo to the same directory on

    the fresh VPS box.

Simple Bash loop over files that match some RegEx

for f in *.jpg; do convert ./"$f" -resize 30% ./resized/"$f"; done

Last updated