It is Christmas!! On behalf of OSTechNix, I wish you all a Merry Christmas and a Happy New Year in advance! In this festive occasion, we will show you how to display an animated Christmas tree in Terminal in Linux.
We created this simple BASH script as a Christmas present to our beloved readers and followers. It is freely available in the OSTechNix GitHub Gist page. You can download it, modify the message, size of the tree, color of the tree, leaves, and trunk etc., and run it!
Display Animated Christmas Tree In Terminal
Open your terminal and download this Christmas tree Bash script using the following command:
wget -d -c -O "christmas.sh" https://gist.githubusercontent.com/ostechnix/66cecb6bbb9e35a492bccb9c6ecc5d9d/raw/1c281f20f9594297fd2a59197a3aff92db66f856/bashmastree.sh
If you want to customize Christmas tree as per your liking, open the downloaded script in your favorite editor and change the values as you please.
Make it executable using command:
chmod +x christmas.sh
Finally, run the script to display the animated Christmas tree in your Linux Terminal:
./christmas.sh
And, here's the Christmas tree in Bash!
Cool, yeah? To exit the script, simply press CTRL+C
.
Here is the visual demo of Christmas tree in Bash Terminal:
Once again, Merry Christmas and a Happy New Year to all!