Posted: . At: 3:25 PM. This was 7 years ago. Post ID: 9912
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

Install the fortune program on your Linux machine and have a nice fortune in your terminal.

To get useful Ubuntu server command line tips in your terminal, firstly install the fortune package and some more fortunes.

┌─[jason@darkstar][~]
└──╼ $sudo apt install fortune fortunes-bofh-excuses fortunes-ubuntu-server

Now run the command to print a random Ubuntu server tip.

┌─[jason@darkstar][~]
└──╼ $fortune ubuntu-server-tips
If you want to download a file from a URL via the console, you can use the
command 'wget http://address/to/file.tar'

Now add this command anywhere in your .bashrc file. I added it near the top.

fortune ubuntu-server-tips

Now you will get a random tip whenever the terminal is opened.

Random fortune in MATE Terminal.
Random fortune in MATE Terminal.

That is how easy it is to print a random tip that will help you learn Linux. This will be very useful for all Linux users.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.