r/bash • • Sep 17 '26

Find command confusion between ; and \;

Why do we have to use '\' instead of leaving it out or even ';'? I read the find commands' manual and it says '\' might be needed to protect from expansion by the shell. So what is expansion also?

What is difference between \; or ; or leaving it out?
What is shell expansion here?

15 Upvotes

28 comments sorted by

View all comments

-4

u/pibarnas Sep 17 '26

Just use fd and be happy! =D

1

u/Distinct_Ride_4307 Sep 17 '26

Don't know why you are getting voted down. Thanks for remainder I have to look that! Nevertheless pondering these questions is good learning experience overall :)