LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-05-2003, 05:09 AM   #1
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Rep: Reputation: 15
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?
 
Old 05-05-2003, 05:17 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the program will be "fortune"
 
Old 05-05-2003, 01:09 PM   #3
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Original Poster
Rep: Reputation: 15
# 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?
 
Old 05-05-2003, 01:26 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
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.
 
Old 05-05-2003, 01:28 PM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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.
 
Old 05-05-2003, 02:57 PM   #6
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736

Rep: Reputation: 146Reputation: 146
how do i switch it off??
 
Old 05-05-2003, 03:08 PM   #7
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
To switch it off, take the execute bit of off /etc/profile.d/bsd-games.sh
HTH
-NSKL
 
Old 05-05-2003, 03:24 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 05-05-2003, 04:37 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
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 ;)

Cheers,
Tink
 
Old 05-06-2003, 01:09 AM   #10
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736

Rep: Reputation: 146Reputation: 146
ahhhhhhh

all gone
many thanks
 
Old 05-07-2003, 03:28 AM   #11
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
try this
fortune --help

it got a option that shows you which files it uses for fortuning
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Please check my philosophy and intention jimster Linux - Newbie 4 09-30-2005 06:48 PM
philosophy juyce Slackware 5 09-19-2005 11:38 PM
programming philosophy? Thinking Programming 9 09-14-2005 05:42 AM
Programming Philosophy kryptonite0110 Programming 11 05-16-2005 02:09 AM
Linux Philosophy perry Linux - Newbie 4 11-03-2003 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration