find

  1. L

    What is the best method in bash to copy large amount of files

    My question: I have a large amount of files on a disk and I have three different methods to move/copy them: 1. using find: ``` find /disk -xdev -type f -iname "*.pdf" -exec cp -ga "{}" /dest \: ``` 2. using find print0 and grep -z: ``` find /disk -xdev type f -iname "*" -print0 > ./alllist.txt...
  2. D

    Find and move filles with specific extensions

    From a specific file I want find all images(JPG,jpg,png,...) and move (not copy) all this images to a new folder Please give me the command in terminal If I want copy from this images in a usb how above command change? Please give me a help
Top