Linux commands: Difference between revisions

Jump to navigation Jump to search
270 bytes added ,  10 December 2015
(→‎help for command: +find the path of an executable)
Line 231: Line 231:
=== 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}}) & {{Mac}} ex: {{kbd | key= which wc}} will return the path '/usr/bin/wc'
* {{kbd | key= where ''command''}} ({{Win}}) ex: {{kbd | key= where ping}} will return the path 'C:\Windows\System32\PING.EXE' {{exclaim}} not all DOS command will return the information ex: where cd, where dir
* {{kbd | key= where ''command''}} ({{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


=== emergency exit ===
=== emergency exit ===

Navigation menu