Copying large number of files from one directory to another in linux
- by Ritesh Sharma
Hi all,
I've a directory containing around 2.8 lacs of files. I want to move them to another directory.
If I use 'cp' or 'mv' then I get an error 'argument list too long'.
If I write a script like
for file in ls *; do
cp {source} to {destination}
done
then because of 'ls' command , its performance degrades.
How can I do this?