How can I move all files and folders from one directory to another via mv command?
yet another way just for the heck of it (because I love convoluted ways to do things I guess)
cd /source for f in $(\ls -QA); do eval mv $f /destination/$f; done
-Q and the
-A are not POSIX, however the
-A is fairly prevalent, and to not use the
-Q you need to change the IFS (which then means you don't need the eval but need to quote the variable)
IFS=" " && for f in $(ls -A); do mv "$f" /destination/"$f"; done