Linux的cowsay命令怎么用
发表于:2025-02-02 作者:千家信息网编辑
千家信息网最后更新 2025年02月02日,这篇文章主要介绍了Linux的cowsay命令怎么用的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇Linux的cowsay命令怎么用文章都会有所收获,下面我们一起来看看吧
千家信息网最后更新 2025年02月02日Linux的cowsay命令怎么用
这篇文章主要介绍了Linux的cowsay命令怎么用的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇Linux的cowsay命令怎么用文章都会有所收获,下面我们一起来看看吧。
使用方法
❝
dnf install cowsay
简单使用:
[root@ansible cowsay]# cowsay hellow world!_______________--------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||[root@ansible cowsay]#
查询所有能用动物
root@ansible ~]# cowsay -lCow files in /usr/share/cowsay:beavis.zen blowfish bud-frogs bunny cheese cower default dragondragon-and-cow elephant elephant-in-snake eyes flaming-sheep ghostbustershead-in hellokitty kiss kitty koala kosh luke-koala mech-and-cow meow milkmoofasa moose mutilated ren sheep skeleton small stegosaurus stimpysupermilker surgery telebears three-eyes turkey turtle tux udder vadervader-koala www[root@ansible ~]# cd /usr/share/cowsay[root@ansible cowsay]# ll总用量 204-rw-r--r--. 1 root root 584 6月 25 2016 beavis.zen.cow-rw-r--r--. 1 root root 639 6月 25 2016 blowfish.cow-rw-r--r--. 1 root root 310 6月 25 2016 bud-frogs.cow-rw-r--r--. 1 root root 123 6月 25 2016 bunny.cow-rw-r--r--. 1 root root 480 6月 25 2016 cheese.cow-rw-r--r--. 1 root root 230 6月 25 2016 cower.cow-rw-r--r--. 1 root root 175 6月 25 2016 default.cow-rw-r--r--. 1 root root 1284 6月 25 2016 dragon-and-cow.cow-rw-r--r--. 1 root root 1527 6月 25 2016 DragonAndCow.pm-rw-r--r--. 1 root root 1000 6月 25 2016 dragon.cow-rw-r--r--. 1 root root 284 6月 25 2016 elephant.cow-rw-r--r--. 1 root root 295 6月 25 2016 elephant-in-snake.cow-rw-r--r--. 1 root root 3038 6月 25 2016 Example.pm-rw-r--r--. 1 root root 585 6月 25 2016 eyes.cow-rw-r--r--. 1 root root 490 6月 25 2016 flaming-sheep.cow-rw-r--r--. 1 root root 712 6月 25 2016 Frogs.pm-rw-r--r--. 1 root root 1018 6月 25 2016 ghostbusters.cow-rw-r--r--. 1 root root 257 6月 25 2016 head-in.cow-rw-r--r--. 1 root root 126 6月 25 2016 hellokitty.cow-rw-r--r--. 1 root root 637 6月 25 2016 kiss.cow-rw-r--r--. 1 root root 296 6月 25 2016 kitty.cow-rw-r--r--. 1 root root 162 6月 25 2016 koala.cow-rw-r--r--. 1 root root 406 6月 25 2016 kosh.cow-rw-r--r--. 1 root root 225 6月 25 2016 luke-koala.cow-rw-r--r--. 1 root root 941 5月 22 21:38 mech-and-cow.cow-rw-r--r--. 1 root root 1183 6月 25 2016 MechAndCow.pm-rw-r--r--. 1 root root 473 6月 25 2016 meow.cow-rw-r--r--. 1 root root 439 6月 25 2016 milk.cow-rw-r--r--. 1 root root 242 6月 25 2016 moofasa.cow-rw-r--r--. 1 root root 203 6月 25 2016 moose.cow-rw-r--r--. 1 root root 201 6月 25 2016 mutilated.cow-rw-r--r--. 1 root root 252 6月 25 2016 ren.cow-rw-r--r--. 1 root root 234 6月 25 2016 sheep.cow-rw-r--r--. 1 root root 433 6月 25 2016 skeleton.cow-rw-r--r--. 1 root root 194 6月 25 2016 small.cow-rw-r--r--. 1 root root 854 6月 25 2016 stegosaurus.cow-rw-r--r--. 1 root root 1193 6月 25 2016 Stegosaurus.pm-rw-r--r--. 1 root root 364 6月 25 2016 stimpy.cow-rw-r--r--. 1 root root 280 6月 25 2016 supermilker.cow-rw-r--r--. 1 root root 892 6月 25 2016 surgery.cow-rw-r--r--. 1 root root 333 6月 25 2016 telebears.cow-rw-r--r--. 1 root root 3624 6月 25 2016 TextBalloon.pm-rw-r--r--. 1 root root 293 6月 25 2016 three-eyes.cow-rw-r--r--. 1 root root 1302 6月 25 2016 turkey.cow-rw-r--r--. 1 root root 1105 6月 25 2016 turtle.cow-rw-r--r--. 1 root root 215 6月 25 2016 tux.cow-rw-r--r--. 1 root root 1134 6月 25 2016 TuxStab.pm-rw-r--r--. 1 root root 392 6月 25 2016 udder.cow-rw-r--r--. 1 root root 279 6月 25 2016 vader.cow-rw-r--r--. 1 root root 213 6月 25 2016 vader-koala.cow-rw-r--r--. 1 root root 248 6月 25 2016 www.cow
指定某个动物:
[root@ansible cowsay]# cowsay -f kitty hellow world!_______________--------------- \ \ ("`-' '-/") .___..--' ' "`-._ ` *_ * ) `-. ( ) .`-.__. `) (_Y_.) ' ._ ) `._` ; `` -. .-' _.. `--'_..-_/ /--' _ .' ,4 ( i l ),-'' ( l i),' ( ( ! .-'[root@ansible cowsay]#
安装fortune,csdn积分下载
[root@ansible ~]# ll总用量 1612-rw-------. 1 root root 1187 7月 5 21:35 anaconda-ks.cfg-rw-r--r--. 1 root root 1116792 7月 10 01:13 fortune-mod-1.99.1-17.sdl7.x86_64.rpm-rwxr--r--. 1 root root 113 7月 5 23:56 key.sh-rw-r--r--. 1 root root 522820 7月 10 01:19 librecode-3.6-alt11.1.1.x86_64.rpm[root@ansible ~]# rpm -ivh librecode-3.6-alt11.1.1.x86_64.rpmVerifying... ################################# [100%]准备中... ################################# [100%]正在升级/安装... 1:librecode-3.6-alt11.1.1 ################################# [100%][root@ansible ~]# rpm -ivh fortune-mod-1.99.1-17.sdl7.x86_64.rpm警告:fortune-mod-1.99.1-17.sdl7.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID 41a40948: NOKEYVerifying... ################################# [100%]准备中... ################################# [100%]正在升级/安装... 1:fortune-mod-1.99.1-17.sdl7 ################################# [100%][root@ansible ~]# fortune | cowsay -f kiss_________________________________________/ Let the worthy citizens of Chicago get \| their liquor the best way they can. I'm || sick of the job. It's a thankless one || and full of grief. || |\ -- Al Capone /----------------------------------------- \ \ ,;;;;;;;, ;;;;;;;;;;;, ;;;;;'_____;' ;;;(/))))|((\ _;;((((((|)))) / |_\\\\\\\\\\\\ .--~( \ ~)))))))))))) / \ `\-(((((((((((\\ | | `\ ) |\ /|) | | `. _/ \_____/ | | , `\~ / | \ \ / | `. `\| / | ~- `\ / \____~._/~ -_, (\ |-----|\ \ ';; | | :;;;' \ | / | | | | |[root@ansible ~]#
写了一个简单shell
[root@ansible ~]# cat cowsay.sh#!bin/bash# call cowsay after loginanimal=$(ls /usr/share/cowsay | shuf -n 1)str=${animal%.*}# pass sentence to cowsay with random animalfortune | cowsay -f $str[root@ansible ~]# sh cowsay.sh_______________________________________/ The most important design issue... is \| the fact that Linux is supposed to be || fun... || || -- Linus Torvalds at the First Dutch |\ International Symposium on Linux /--------------------------------------- \ \ \_\_ _/_/ \ \__/ (oo)\_______ (__)\ )\/\ ||----w | || ||[root@ansible ~]# sh cowsay.sh_______________________________________/ Do your otters do the shimmy? Do they \| like to shake their tails? Do your || wombats sleep in tophats? Is your |\ garden full of snails? /--------------------------------------- \ \ _____ _________ / \_/ | | || | || | ###\ /### | | | 0 \/ 0 | | /| | |/ | #
把sh放到/etc/profile.d
关于"Linux的cowsay命令怎么用"这篇文章的内容就介绍到这里,感谢各位的阅读!相信大家对"Linux的cowsay命令怎么用"知识都有一定的了解,大家如果还想学习更多知识,欢迎关注行业资讯频道。
命令
知识
内容
动物
正在
用量
篇文章
准备
升级
价值
使用方法
密钥
操作简单
文章
方法
易懂
更多
看吧
积分
行业
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
软件开发人天单价2020
网络安全的定义和特点
软件开发环境和生产环境搭建
数据库控制面板命令删除
吐鲁番网络技术操作
java数据库实体类关联
自定义数据库
软件开发项目技术路线案例
win10数据库损坏怎么修复
数据库查询触发器
腾辉软件开发公司(软件企业)
湖北网络安全学院
edg用的什么服务器
嘟嘟视界软件开发
品高软件开发公司 业绩
软件开发费税点
安徽软件开发者一般多少钱
测序的序列在公共数据库比对不上
便宜云服务器
注册一个网络技术工作室
网络安全的基本攻防方法
掌上银行连不上服务器
云服务器 数据安全性
南京精石汇网络技术有限公司
张伯伦数据库技术
构建数据库建议书
数据库查询触发器
属于无线网络技术的是什么
北京云月共创网络技术有限公司
服务器技术与应用