14 hours ago · Tech · 0 comments

As we all go about our day we discover bits of wisdom that WOW! and YES! seem to be directed at you. I like to put these bits together in a file for later review. Using the programs fortune and cowsay and lolcat I made a little shell script that runs at a console login or when a terminal window/tab is opened and outputs a colourful, random fortune from my custom collection. Fortune Customize Cowsay Lolcat Script Auto-run Fortune The fortune command is included in the FreeBSD base system. On other BSDs and Linuxes its usually available to install as the fortune or fortune-mod package. Running fortune all command prints an adage chosen at random from database files stored (on FreeBSD) in /usr/share/games/fortune: -> fortune all To see the last 10 lines of a long file, use "tail filename". To see the first 10 lines, use "head filename". To see new lines as they're appended to a file, use "tail -f filename". -- Dru <genesis@istar.ca> Usually on a Linux system its a simple fortune or…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.