I have two directories DirA and DirB, when I am running sudo updatedb -U DirA then only files under DirA are visible to locate command but I want files under "DirB" be visible.

So in my case is DirA keeps updating, so I want to run updatedb for DirA whereas DirB does not change frequently so I do not want to run updatedb for DirB but in the mean time I want file under DirA and DirB should be visible to locate command.

Browse other questions tagged or ask your own question.