How do I select 3,000 out of 10,000 files in file manager?
There is no easy method to do that from a stock file manager. You can do it with Shift + Arrow Up (or Arrow Down) but you will need to select the amount of files yourself.
Command line:
This will copy (cp
) 3000 files (-n 3000
) to /opt/ (-t "$directory"
):
cd /dir/with/files/
find . -maxdepth 1 -type f -print0 | head -z -n 3000 | xargs -0 -r -- cp -t "/opt/" --
- Change 3000 to another number if needed
- Change /opt/ to your desctination.
- Use
mv -tf
to move instead ofcp -t
when you knowcp
does what you want (themv
is needed to clear the 3000 files)