Pregunta de entrevista de Hudson River Trading

Q: What does the following command do? mv *

Respuesta de la entrevista

Anónimo

12 mar 2022

if the last item (alphabetically) in the folder is a directory, it moves everything in the directory you're in, into that last one. If the last item is not a directory, it fails