find files and copy to a folder, locate command error in Linux

if locate command does not work in Linux, cuz it is backed up by database

locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory

you should update database first

updatedb

 

;

linux find files and copy to a directory

find . -iname "*foobar*" -exec cp "{}" ~/foo/bar \;

Leave a Reply

Your email address will not be published.

Notice: Undefined index: cookies in /var/www/html/wp-content/plugins/live-composer-page-builder/modules/tp-comments-form/module.php on line 1638