SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Where does the wonderful words of wisdom come from at every shell in slack? any terminal, or upon login these philosophical words are thrown at me, but i have no idea where they are generated from. Anyone know the directory and filename?
# cd /usr/games/fortune
bash: cd: /usr/games/fortune: Not a directory
# cd /usr/games/
# less fortune
"fortune" may be a binary file. See it anyway? n
# more fortune
******** fortune: Not a text file ********
/usr/games# fortune
bash: fortune: command not found
How do i go about seeing the contents of this? Nothing i did lets me see the "fortune" you told me about. I wanted to be able to read the entries and/or modify them. is this possible?
Originally posted by VioLaToR How do i go about seeing the contents of this? Nothing i did lets me see the "fortune" you told me about. I wanted to be able to read the entries and/or modify them. is this possible?
Its a binary file, you can't view it.
Here is a project listing of some of the various fortune programs that you can download. If they supply the source code to them, then you can manipulate and then recompile, adding your changes to it that way. But you can't edit a binary file.
How do i go about seeing the contents of this? Nothing i did lets me see the "fortune" you told me about. I wanted to be able to read the entries and/or modify them. is this possible?
/usr/share/games/fortunes/*
Look at the ones that DON'T have a
.dat extension :) ... most of them are
human-readable, some of the potentially
offensive ones are ROT13-encoded :)
The offensive ones don't get displayed
by default ;) ...
man fortune for more infor :)
I don't know about the modify part, if you
want to try it, make a backup copy of the
files first ;)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.