linux 简单特效

该文档是在CentOS7.x上进行,Ubuntu上也可以安装

yum -y install epel-release
yum clean all && yum makecache
yum -y install figlet
示例1
figlet Welcome to Guangzhou 或者 figlet "Welcome to Guangzhou"

效果如下
__        __   _                            _        
\ \      / /__| | ___ ___  _ __ ___   ___  | |_ ___  
 \ \ /\ / / _ \ |/ __/ _ \| '_ ` _ \ / _ \ | __/ _ \ 
  \ V  V /  __/ | (_| (_) | | | | | |  __/ | || (_) |
   \_/\_/ \___|_|\___\___/|_| |_| |_|\___|  \__\___/ 
                                                     
  ____                             _                 
 / ___|_   _  __ _ _ __   __ _ ___| |__   ___  _   _ 
| |  _| | | |/ _` | '_ \ / _` |_  / '_ \ / _ \| | | |
| |_| | |_| | (_| | | | | (_| |/ /| | | | (_) | |_| |
 \____|\__,_|\__,_|_| |_|\__, /___|_| |_|\___/ \__,_|
                         |___/                       


示例2
watch -n1 "date '+%D%n%T' | figlet -k"
注:会有一个动态的时钟

效果如下
Every 1.0s: date '+%D%n%T' | figlet -k            Sun Jul 25 00:15:05 2021

  ___  _____  __ ____   ____     __ ____   _
 / _ \|___  |/ /|___ \ | ___|   / /|___ \ / |
| | | |  / // /   __) ||___ \  / /   __) || |
| |_| | / // /   / __/  ___) |/ /   / __/ | |
 \___/ /_//_/   |_____||____//_/   |_____||_|

  ___    ___	  _  ____      ___   ____
 / _ \  / _ \  _ / || ___| _  / _ \ | ___|
| | | || | | |(_)| ||___ \(_)| | | ||___ \
| |_| || |_| | _ | | ___) |_ | |_| | ___) |
 \___/  \___/ (_)|_||____/(_) \___/ |____/

欢迎加入QQ群一起讨论Linux、开源等技术

posted @ 2021-07-25 12:18  Linux大魔王  阅读(112)  评论(0编辑  收藏  举报