<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>terminal on toorun.dev</title><link>https://toorun.dev/tags/terminal/</link><description>Recent content in terminal on toorun.dev</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Sun, 20 Sep 2026 11:00:00 +0000</lastBuildDate><atom:link href="https://toorun.dev/tags/terminal/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Print Colorful Text in a Linux Shell Script</title><link>https://toorun.dev/posts/print-colorful-text-linux-shell-script/</link><pubDate>Sun, 20 Sep 2026 11:00:00 +0000</pubDate><guid>https://toorun.dev/posts/print-colorful-text-linux-shell-script/</guid><description>How to Print Colorful Text in a Linux Shell Script Linux terminals understand ANSI escape codes. A color code changes the text style, and \033[0m resets it:
printf &amp;#39;\033[32mSuccess\033[0m\n&amp;#39; This prints Success in green. Prefer printf over echo -e because printf behaves more consistently across shells.
Common colors Color Code Black 30 Red 31 Green 32 Yellow 33 Blue 34 Magenta 35 Cyan 36 White 37 Use a code like \033[31m before the text and \033[0m after it.</description></item></channel></rss>