Suppose that I have only the following in
. .. foo
With file managers if I cut the subfolder
foo and paste it into
~ it automatically replaces the contents of
~/foo with that of
But is there a native command-line tool to do so, although I can achieve the goal with a function, too?