3

I tried to move all files inside a directory to another directory like this:

$ mv /directory_one/* /directory

However, the hidden files (such as .htaccess) in /directory_one won't be moved.

What is the right command to do so?

Wesley
  • 32,320
  • 9
  • 80
  • 116
gilzero
  • 439
  • 4
  • 8
  • 20
  • See http://superuser.com/questions/62141/linux-how-to-move-all-files-from-current-directory-to-upper-directory – Pere May 13 '12 at 18:03

1 Answers1

6

This should do it:

mv /directory_one/* /directory_one/.* /directory

It will move regular files and dotfiles.

Quinn Murphy
  • 443
  • 2
  • 7