moving large number of files

From: Richard Yu (ryu_at_comxpert.com)
Date: 01/25/05


Date: Wed, 26 Jan 2005 00:20:51 +0800

Hi,

I try to move large number of files in one folder to another folder, but it
does a copy only instead of move. Can anyone help me the move command,
thanks.
(just to use mv will get me error, argument too long)

cd /home/folder1
tar c . | (cd /home/folder2/; tar xv)

36,000 files in /home/folder1
36,000 files in /home/folder2

after execute the commands,

36,000 files in /home/folder1
72,000 files in /home/folder2

Best regards,
Richard.



Relevant Pages

  • RE: Locating corrupt driver
    ... This article describes the functionality and limitations of the Windows ... Create and format partitions on drives. ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.applications)
  • Re: Batch Job
    ... You cannot use the 'del' command at a DOS prompt. ... files (since 'del' might not work into the special folder). ... while the above will delete the deleted files from the Recycle Bin but it also deletes configuration files used by the Recycle Bin. ...
    (microsoft.public.windowsxp.general)
  • Re: Running Package From EM and Scheduler Problem
    ... Spadak ... >> Everything runs fine from designer, after each execute new file is ... >> If there is no file in destination folder new is created but after ... >> Kind regards, ...
    (microsoft.public.sqlserver.dts)
  • Re: Help with cacls in WinXP Home
    ... Take Ownership of a File or Folder in Windows XP ... all the information I have of CACLS: ... Just because you can set permissions with Cacls doesn't mean you should. ... Try the Cacls command on a test folder first and make sure that your ...
    (microsoft.public.windowsxp.security_admin)
  • Re: home network problem
    ... I opened the command prompt and typed ... browstat status>c:\browstat.txt and it said "browstat is not recognized as ... You're half way there, Phil. ... that you want to put the software into the folder added to the path. ...
    (microsoft.public.windowsxp.network_web)