it would be a big undertaking to make your own OS from scratch so modifying one that's already been created like a Linux distro would be more wise. All the works been done that way and you're free to customize it to however you want but for me personally thats never been an interest. I did write my own simple shell program though.