How Do I Move 1000 Files in Linux?
Contents

How do I move bulk files in Linux?

How to move multiple files into a directory. To move multiple files using the mv command pass the names of the files or a pattern followed by the destination. The following example is the same as above but uses pattern matching to move all files with a . txt extension.

How do I move 100 files from one directory to another in Linux?

  1. ls -rt source/* – command lists all the files with the relative path.
  2. head -n100 – takes first 100 files.
  3. xargs cp -t destination – moves these files into the destination folder.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest