Linux commands: Difference between revisions

Jump to navigation Jump to search
136 bytes added ,  22 May 2018
Line 358: Line 358:


=== find the path of an executable ===
=== find the path of an executable ===
* {{kbd | key= which ''command''}} for {{Linux}} & {{Mac}} ex: {{kbd | key= which wc}} will return the path '/usr/bin/wc'
* {{kbd | key= which ''command''}} for {{Linux}} ex: {{kbd | key= which wc}} will return the path '/usr/bin/wc'
* {{kbd | key= which ''command''}} or {{kbd | key= where ''command''}} for {{Mac}} ex: {{kbd | key= which wc}} will return the path '/usr/bin/wc'
* {{kbd | key= where ''command''}} for {{Win}} version 2003 or 8. ex: {{kbd | key= where nslookup}} will return the path 'C:\Windows\System32\nslookup.EXE'<ref>[http://superuser.com/questions/207707/what-is-windows-equivalent-of-the-which-command-in-unix-is-there-an-equivale What is Windows' equivalent of the "which" command in Unix? Is there an equivalent PowerShell command? - Super User]</ref> {{exclaim}} not all DOS command will return the information ex: where cd, where dir. Related page: [[How to setup my system path]]
* {{kbd | key= where ''command''}} for {{Win}} version 2003 or 8. ex: {{kbd | key= where nslookup}} will return the path 'C:\Windows\System32\nslookup.EXE'<ref>[http://superuser.com/questions/207707/what-is-windows-equivalent-of-the-which-command-in-unix-is-there-an-equivale What is Windows' equivalent of the "which" command in Unix? Is there an equivalent PowerShell command? - Super User]</ref> {{exclaim}} not all DOS command will return the information ex: where cd, where dir. Related page: [[How to setup my system path]]


Navigation menu