I would like to create a binary file in ubuntu which means no one can able to see my source code but they can able to execute it. I tried googling and found few articles but didn't get it, can some please let me know the step by step process to create binary(.bin) files
file extensions are a windows thing. .bin is basically meaningless.
about 5% of what you learnt about computers form windows applies to linux. the remainder is partially or completely wrong.
To generate a binary file you need to compile the source.
If you want to create a package, getting and examining the source to the hello package and its documentation is probably a good start.