Let’s say I put all my C codes and the executables in
Removing all the C codes via Terminal is easy:
My question is how to remove all Mach-O executables (from compiling the C codes). On Windows this is very easy, because executables usually have
exe extension, so you simply do:
I think this is trickier on MacOS because the executables typically don’t have specific extension.
file may be useful, e.g:
$ file sortdemo sortdemo: Mach-O 64-bit executable x86_64
No idea about the rest.