One thing that bothers me about BTRFS is when I’m going to search for a file… So many hits I get because the file exists in so many snapshots…
I’m trying to make a shell program to search files and not include hits when files also exist inside snapshots folders, such as, /home/.snapshots and /.snapshots.
find . -type d -name '.snapshots' -prune -o -name ${argument}
Although, to be honest, since the snapshots are generally only readable by root unless you are using sudo with your find command they should not be found anyway.
Thanks Dalto, but if I don’t use sudo, I get a lot of permissions denied, so sudo is just to get a clean output for the search.
This is working, changed the . to / and it is working the way I need. Thanks!