openis the exact equivalent of double-clicking on things in Finder. Therefore, if you use it in a UNIX executable, then the executable will be launched, but the current working directory will not be where the executable is located, and will not necessarily be useful. However, you can also use it to open a .doc file or any other type of file, to open a directory in Finder, open a URL in finder, etc.
. /name - UNIX UNIX. , , . , , ( , , .. /name ).
, , , , , ? , , , -, POSIX, .
C -, C (, ++, Objective-C ..), NSGetExecutablePath ( Google , ., , ) , . Objective-C, NSString .