How to use the cowsay command in Linux
This article mainly introduces the relevant knowledge of "how to use the cowsay command in Linux". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to use the cowsay command in Linux" can help you solve the problem.
The cowsay command is a very interesting command in Linux. After execution, there will be a lovely calf with a paragraph of text.
The command is as follows: sudoapt-get update;sudo apt-get install cowsay
Then enter a command for it, and by default, the animal is a cow.
You can set other animals and use the-l parameter to view other animal parameters.
Eg:cowsay-l
Then use-f followed by the set animal parameters:
Eg:cowsay-f duck hello
At the same time, you can download fortune software to make it work with cowsay.
Download commands are as follows: sudo apt-get install fortune
The fortune command can be used alone, and the terminal will randomly output a paragraph of speech.
Eg:fortune
The commands used in combination are:
Eg:fortune | cowsay-f duck
This is the end of the content about "how to use the cowsay command in Linux". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.