How are the commands in Photoshop similar to the commands in GIMP?

They mostly do the same things-

but in Photoshop many actions can be done in a separate layer ...

the end results may be the same, but in Photoshop you can go back and change things to a deeper level than you can in GIMP.