find: combining -path and -prune to exclude files and directories
I have a directory /srv/tftp/pxelinux.cfg and a file /etc/mtab. I want to exclude both from find. But whatever I do, either one always is not excluded
I have a directory /srv/tftp/pxelinux.cfg and a file /etc/mtab. I want to exclude both from find. But whatever I do, either one always is not excluded
Why is it that find prints out a leading ./ to results if no paths are given?
Something like the following is what I what I’m after,
but my code doesn’t work, no matter how I escape {} and + ;
I want to copy all the .html files from myDir and its subdirectories to ~/otherDir. Here’s what I tried, but it doesn’t work:
I am trying to find files that have a newline in the filename. But I can’t figure out what pattern to use.
What’s the + in find /path/ -exec command '{}' + do? as opposed to find /path/ -exec command '{}' ;
I have a web server where I have run out of space and it’s causing issues with the WordPress sites I am running on them.