Find the absolute p...
 

Find the absolute path of shell variable  


admin
Posts: 93
Admin
(@mjv119gmail-com)
Member
Joined: 5 years ago

I am aware that every command having a script file which process the command and the file is located somewhere in the /bin folder. Instead of searching in all the folders, is there any easy way to get the absolute path of the shell command?

1 Reply
Gnana
Posts: 25
(@gnana)
Eminent Member
Joined: 3 months ago

In Linux – Use where command to get the path.

$ where cat
  /usr/bin/cat

In Solaris – Use whence command to get the path.

$ whence cat
  /bin/cat
Reply

Leave a reply


 
Preview 0 Revisions Saved
Share: