zoukankan      html  css  js  c++  java
  • 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
    
      ___  _____  __ ____   ____     __ ____   _
     / _ |___  |/ /|___  | ___|   / /|___  / |
    | | | |  / // /   __) ||___   / /   __) || |
    | |_| | / // /   / __/  ___) |/ /   / __/ | |
     \___/ /_//_/   |_____||____//_/   |_____||_|
    
      ___    ___	  _  ____      ___   ____
     / _   / _   _ / || ___| _  / _  | ___|
    | | | || | | |(_)| ||___ (_)| | | ||___ 
    | |_| || |_| | _ | | ___) |_ | |_| | ___) |
     \___/  \___/ (_)|_||____/(_) \___/ |____/
    
  • 相关阅读:
    检测mysq组复制的脚本
    centos7安装NFS
    mysql组复制安装
    springboot+VUE(一)
    redis集群配置
    codevs 3139 栈练习3
    codevs 3138 栈练习2
    codevs 2622 数字序列
    codevs 1054 电梯
    codevs 1507 酒厂选址
  • 原文地址:https://www.cnblogs.com/smlile-you-me/p/15057502.html
Copyright © 2011-2022 走看看