Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Teach your shell new tricks' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Teach your shell new tricks
Authored by: kfaulhaber on Oct 01, '03 10:47:40PM

type 'rehash' or open a new terminal window.



[ Reply to This | # ]
Teach your shell new tricks
Authored by: nachobel on Oct 01, '03 11:56:10PM

yeah guy.

So I'm not that ignorant.

Here's some text:

Last login: Wed Oct 1 23:54:05 on ttyp1
Welcome to Darwin!
[nacho:~] nachobel% cd /usr/local/bin/
[nacho:/usr/local/bin] nachobel% ls
links mplayer pcpmac pgetfinfo pmvmac psetfinfo psync sdl-config
[nacho:/usr/local/bin] nachobel% mplayer
mplayer: Command not found.
[nacho:/usr/local/bin] nachobel% rehash
[nacho:/usr/local/bin] nachobel% mplayer
mplayer: Command not found.



[ Reply to This | # ]
Teach your shell new tricks
Authored by: kfaulhaber on Oct 02, '03 10:23:11PM

is it executable (does /usr/local/bin/mplayer work?) and is /usr/local/bin in your path?



[ Reply to This | # ]
Teach your shell new tricks
Authored by: nachobel on Oct 06, '03 04:49:31PM

hey guy

thanks, that helped. I typed /usr/local/bin/mplayer and it worked, and then i just typed mplayer, and that worked too. I don't know why, but hey, that's cool.

Okay, so I have links installed, and /usr/local/bin/links works, but just typing links doesn't. How do I "get it in my path" or whatever?



[ Reply to This | # ]