On Wednesday 27 October 2004 09:27, Allen wrote:
On Tue, Oct 26, 2004 at 11:49:32PM +0200, Carlos E. R. wrote:
The Tuesday 2004-10-26 at 16:56 -0400, Allen wrote:
Next time you have a shell open, type into your bash prompt "wtf is wtf" without the quotes.
Whaaat? X'-)
Didn't have the foggiest idea it existed. I'm writing this down. X'-)
-- Cheers, Carlos Robinson
Yea man, the funny thing is though, it won't work as root. Log in as a regular user, and type wtf is wtf or wtf is lol or whatever else. SUSE 9.1 Professional is what I have here and it works, and the box next too me is Slackware 10 and it works there too.
Well, Allen, *that* even I learned already ;-) Actually it was on of the very first things I learned when starting to play with Linux. I think I even saw it in a manual somewhere. Probably there was no foul language in there, which could have made me shy away LOL ;-) Now cool down again, and open a konsole. As root, in konsole, do a "whereis wtf". Then, still as root, in konsole, do a " echo $PATH". Compare the output! Here is an example from a SuSE 9.1 Pro installation: ~# whereis wtf wtf: /usr/games/wtf /usr/share/man/man6/wtf.6.gz ~# echo $PATH /usr/sbin:/bin:/usr/bin:/sbin:/usr/X11R6/bin As far as I know, a program / script can only run if it is in the path or if you call it with the complete path. Otherwise you get: "bash: wtf: command not found". HTH, Matt