M Mỹ An New member Jan 12, 2022 #1 How do I move 100 files from one directory to another in Linux? Answer ls -rt source/* – command lists all the files with the relative path. head -n100 – takes first 100 files. xargs cp -t destination – moves these files into the destination folder.
How do I move 100 files from one directory to another in Linux? Answer ls -rt source/* – command lists all the files with the relative path. head -n100 – takes first 100 files. xargs cp -t destination – moves these files into the destination folder.