stfwn
  • Introduction
  • Calculus
    • Gradient
    • Taylor Series
    • Miscellaneous
  • Computer Science
    • Basic Architecture and Assembly
  • Fixes & Snippets
    • Docker
    • HTML
    • LaTeX
    • Linux
    • Node.js
    • Miscellaneous
  • Linear Algebra
    • Orthogonality
    • The Gram-Schmidt Process
    • QR-Factorization
    • Orthogonal Diagonalization
    • Quadratic Forms
    • Least Squares Theorem
    • Singular Value Decomposition
    • Pseudoinverse
  • Miscellaneous
    • Digital Safety
    • Homelab
    • Links
    • Music
  • Reading
Powered by GitBook
On this page
  • Fix unknown terminal type
  • Simple Bash loop over files that match some RegEx
  1. Fixes & Snippets

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
PreviousLaTeXNextNode.js

Last updated 5 years ago