Moving hidden files in the command line
21 Feb 2023I was attempting to move all files from a subfolder into the root folder in the command line and ran:
mv subfolder/* .
but to my surprise, files beginning with .
, like .gitignore
, did not move.
It turns out hidden files are exlcuded by default I guess?
If you want to move dotfiles, you can do this instead:
mv subfolder/{,.}* .