LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   whois command (https://www.linuxquestions.org/questions/linux-newbie-8/whois-command-5952/)

cmenjivar 08-28-2001 04:16 PM

whois command
 
I am a new linux user. I am reading a book and trying to use the whois command by following exercise examples as follows:

whois "acme.net"@whois.csrnic.net

I am replacing the acme and domain to qualified ones. When I do so, I get the following:

bash: whois: command not found

I've tried to do
whereis whois --- I get the following
whois:

How come I cannot use this command. I've installed the whole linux package. Please help.

trickykid 08-28-2001 04:36 PM

are you trying this from root, or a regular user? it could be the path, did you try a locate instead of whereis? it should be there if you installed everything. if you didn't try from root, see if it works when logged in as root, or su into root.

cmenjivar 08-28-2001 04:44 PM

Quote:

Originally posted by trickykid
are you trying this from root, or a regular user? it could be the path, did you try a locate instead of whereis? it should be there if you installed everything. if you didn't try from root, see if it works when logged in as root, or su into root.
\

I am logged on as root. It did a locate and it found it. When I run the command, it still says that the command is not found.

trickykid 08-28-2001 04:48 PM

did you try running the full path with it then.. instead of just whois to see if it works that way?

cmenjivar 08-29-2001 05:52 AM

Quote:

Originally posted by trickykid
did you try running the full path with it then.. instead of just whois to see if it works that way?
I did it and i get a permission denied. I am logged on as root.

I type the following:

/usr/lib/bx/help/2_Queries/whois "compcamp."@whois.csrnic.net
bash: /usr/lib/bx/help/2_Queries/whois: permission denied


thanks


All times are GMT -5. The time now is 10:46 PM.