My teenager is learning to use command line interfaces on the Minecraft server they operate. And they have used the command line to accidentally delete a huge amount of personal work.

I think the sandbox nature of the environment and the low but non-trivial stakes for errors is a great mechanism for safe learning of the tool—especially learning to make sure they know what a command does before using it, and to never rush the process of executing untested commands.