Linux的cowsay命令怎么用
发表于:2026-11-04 作者:千家信息网编辑
千家信息网最后更新 2026年11月04日,这篇文章主要介绍了Linux的cowsay命令怎么用的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇Linux的cowsay命令怎么用文章都会有所收获,下面我们一起来看看吧
千家信息网最后更新 2026年11月04日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安全错误
数据库的锁怎样保障安全
互联网科技公司简介
互联网的科技
互联网金融 金融科技
互联网科技媒体
丰台科技园 互联网
唐信互联网科技 大连
互联网前沿科技
甘肃拓世互联网科技有限公司
互联网科技生活的内容
互联网科技中介
互联网金融科技公司干啥的
宝灵互联网科技有限公司
西安小鹰速贷互联网科技有限公司
科技大学互联网
黑科技 体验场景 互联网大会
上海钢联属于互联网科技股吗
本届互联网大会上的黑科技
广西科技产业互联网是什么
青岛易易互联网科技
网互联网络科技
互联网科技园
上海喔噻互联网科技有限公司
上海睿民互联网科技有限公司
中国互联网科技发展
中盈科技互联网信息有限公司
深圳国际航运科技和互联网
玉溪互联网科技怎么选
链环科技传统企业怎么转型互联网
上海互联网科技公司ppt
陕西九四连强互联网科技有限公司