How can I see printf() result

what do you mean by “port one app to anther one”?

Actually, I found someone ran into the same issue as I did here, what he did was to upgrade legato version, but how could I upgrade legato version through linux command?