Linux commands, part 7

How to copy/move a large number of files from one folder to another, since Linux kernel has a inbuilt limit for commands such as “mv”, “cp”, “rm”…
Example :
# mv -f * /folder1/folder2/
bash: /bin/mv: Argument list too long
One of possible solutions :
# find /folder-source -type f -name ‘*’ -exec mv {} /folder-destination/. \;

A very good link for this type of problems link.

This entry was posted in Linux and tagged . Bookmark the permalink.

Comments are closed.