Suppose you are writing a script for use under cron or other environments where the $PATH may not be properly initialized. So to make sure your script will work regardless you want to include the full path of the command, but you don't know the full path. Here is how to find out. On the machine in question, bring up a terminal window and type:
For example let's say you want to know where curl is:
Returns the path to curl.
This will only work if the command is contained in one of the directories in your $PATH variable but most often this will be the case.
Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Tips on how to do various things in Linux, commands, scripts, applications
1 post • Page 1 of 1
Users browsing this forum: No registered users and 5 guests