How Computer backend works when we play with GUI or CLI

I’ve a question how do computer works in backend when we do anything on CLI or GUI ( i.e. making folders, running exe files, copy/paste etc), I mean how processor and ram works and how do they play with low-level language to show our desired result?