Linux的cowsay命令怎么用
发表于:2025-11-17 作者:千家信息网编辑
千家信息网最后更新 2025年11月17日,这篇文章主要介绍了Linux的cowsay命令怎么用的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇Linux的cowsay命令怎么用文章都会有所收获,下面我们一起来看看吧
千家信息网最后更新 2025年11月17日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安全错误
数据库的锁怎样保障安全
模板系统软件开发
数据库中实体属性联系的概念
鲁东大学数据库系统原理期末考试
网络安全隐患故障登记表
计算机网络技术和软件技术的不同
软件开发运营需要学什么
北京安卓软件开发定制
网络安全运维市场规模
udp 服务器 客户
web应用软件开发国企
小米服务器在哪个国家
6.2.1网络安全威胁
小学生网络安全宣传讲课稿
电子cad软件开发
军工互联网 网络安全
软件开发看什么书对以后有用
数据库建立好了但是连接不上
什么是软件开发视频
古交租房软件开发
学网络技术买macair
北京软件开发解决方案公司
软件开发项目的行业分析
58软件开发
软件开发商难生存
服务器的证书不受信任
java软件开发和java架构
保密网络安全案例及分析
网络安全保卫局 英文
mac休眠服务器连接中断
暴雪软件开发有限公司上海