If you are in a location that is near the program you wished to execute you can qualify the name with a partial path. So say I had an executable called MyProgram in my home directory on Mac OS X I can fully qualify it like so: To run any other command that is not in the executable search path requires that you qualify the path to the executable. This runs /bin/cat and displays mytextfile.txt to the terminal. So any executable in the listed directories can by run just by typing in their name. On Mac OS X (by default) this will display the following colon separated search path: You can display this path in the terminal with this command: All application execution in a Unix (Linux, Mac OS X, AIX, etc.) environment depends on the executable search path.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |