DEV Community

Discussion on: How I can check that the system that I build is for linux or not?

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
joelbonetr profile image
JoelBonetR πŸ₯‡

We've the #help tag for this purposes. The post is OK.

To the OP, check this:

73

I am writing a cross platform program. I want this one program to run under both Windows and Linux, so I have two different code segments for the two platforms. If the OS is Windows, I want the first code segment to run; if it's Linux, then I want the…

It may help you.