With recent bash addition on windows, I simply love the hybrid environment. In this post, we will create Linux executuable (islxss) which is compiled on Windows bash. The function of this exectuable (islxss) is to verify, whether I am running inside LXSS or not.
Step-1) Write a c program, which detects whether I am running inside LXSS or not
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Step-2) Compile the code with static flag
Finally, I move islxss executable to /usr/local/bin on my windows and other cloud servers.