mv ,,, to *?
I tried something on my vm ubuntu and managed to mess it up... luckily I made a snapshot not too long a go.
I renamed a file to ,,,
and tried to mv ,,, *
. The entire content of the dir disappeared.
Can someone please explain to me what happened?
Thank you.
Solution 1:
The shell expands *
into the entire contents of the current directory (modified by shell options). If the last entry in the current directory is itself a directory, then everything will be moved into that directory.