Visit The New, Modern Unix Linux Community


Whence


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Whence
# 1  
Whence

whence command used for.

can you please provide the example of whence command.
# 2  
My system does not even have that command...

Is this homework?
# 3  
Quote:
Originally Posted by Corona688
My system does not even have that command...
Hi Coroa688,
In a pure Bourne shell type utility does about the same thing as the Korn shell whence utility which does about the same thing as the C shell which utility which does about the same thing as the POSIX command -v utility or command -V utility.

Most POSIX-conforming shells will support at least one of type, whence, or which in addition to command; current ksh versions support all four of them.
# 4  
Quote:
Originally Posted by Don Cragun
In a pure Bourne shell type utility does about the same thing as the Korn shell whence utility which does about the same thing as the C shell which utility which does about the same thing as the POSIX command -v utility or command -V utility.
Just for the sake of completeness: ... which does about the same as the GNU/Linux whereis command ...

bakunin
This User Gave Thanks to bakunin For This Post:
# 5  
hi don,

could you please let me know why it is used for?
# 6  
Not until you answer Corona688's question!

Is this homework?
# 7  
its not a homework. in my code in few areas whence command was used. I could not able identifiy why it used for ?
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #385
Difficulty: Easy
The Linux uptime command show how long the hard drive has been powered down.
True or False?

Featured Tech Videos