I have a directory dir1 and it contains a lot of files and directories and also I have another directory dir2 and it is empty. And I need a linux command to move the dir1 with all the files and folders into dir2. The result should be like that dir2/dir1/...
I found the mv command, but it moves a file from a directory to another directory and I don't want that. Thank you!
mv
command can move directories also.