Thursday, July 19, 2018

Welcome message in your terminal




Install cowsay and get a welcome message(with date/time) everytime you open the terminal


1.
sudo yum install cowsay -y

2.
cowsay "Welcome $USER! It's now $(date '+%A %B %d %Y %r')"
Add the above line in your ~/.bashrc.



Now, open a fresh terminal. 

/ Welcome <user>! It's now Thursday \
\ July 19 2018 12:54:54 PM IST        /
 -------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||


Its fun :) 

No comments:

Post a Comment