philosophy in slack shell
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?
|
the program will be "fortune"
|
# 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? |
Quote:
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. |
Try the command locate fortune
Mine is /usr/share/games/fortune I think there are some dirty ones, some BOFH, and lots others you can use. |
how do i switch it off??
|
To switch it off, take the execute bit of off /etc/profile.d/bsd-games.sh
HTH -NSKL |
or just uninstall it, most systems run these things IF they are there, and don't complain if they aren't ans they check before hand.
|
Quote:
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 ;) Cheers, Tink |
ahhhhhhh
all gone many thanks |
try this
fortune --help it got a option that shows you which files it uses for fortuning :) |
All times are GMT -5. The time now is 03:39 AM. |