install #fedora26 #cowsay #fortune

Install fortune:

sudo dnf install fortune-mod

Type in in your terminal and read a fortune.

install cowsay
sudo dnf install cowsay
close terminal and reopen and type
cowsay [words]
and look at your cow saying [words]

Now make cowsay come back in terminal when it opens:

Now edit ~/.bashrc (with vi or nano or other editor) for one user.

nano ~/.bashrc

type at end of file

if [ -x /usr/bin/cowsay -a -x /usr/bin/fortune ]; then
fortune | cowsay -f $(ls /usr/share/cowsay/default.cow)

Close and reopen terminal. (type exit)

To find the files of cowsay and fortune:
Find files by filename by the locate command. The locate command reads one or more databases prepared by updatedb
So first
after that
locate [filename]


One thought on “install #fedora26 #cowsay #fortune

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s