it should work for altcoin too, at least sha256, seeing how they are a mere clone of bitcoin, but i still think that the algo does not matter here
but anyway it's just a matter of few second to try it
It won't work all time. The way Linux handles is (slightly) different from the way Windows handles.