Hudson River Trading interview question

Q: What does the following command do? mv *

Interview Answer

Anonymous

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