Today I (re)discovered "locate", which was not installed by default apparently. Nice tool. Looking for some directories that, I am given to believe begin with "@" sign. Not sure I took the correct meaning from their missive, but, if it is so, how to "escape" the @ sign to be seen/located?
On 2/16/2023 6:04 PM, joe a wrote:
Today I (re)discovered "locate", which was not installed by default apparently.
Nice tool. Looking for some directories that, I am given to believe begin with "@" sign. Not sure I took the correct meaning from their missive, but, if it is so, how to "escape" the @ sign to be seen/located?
Gah, it is apparently a perl thing. Time to mount the camel again.
joe a wrote:
Today I (re)discovered "locate", which was not installed by default apparently.
To update its database, your whole installation and other mounted partitions are scanned once a day - while some people may never use it. As I recall from the past, that's the reason why it is not installed by default. You can, however, disable the update process. systemctl disable mlocate.timer Then do an occasional manual 'updatedb' insofar as needed.
Nice tool. Looking for some directories that, I am given to believe begin with "@" sign. Not sure I took the correct meaning from their missive, but, if it is so, how to "escape" the @ sign to be seen/located?
locate whatever | grep --invert-match @
On 17-02-2023 00:04, joe a wrote:
Today I (re)discovered "locate", which was not installed by default apparently.
Nice tool. Looking for some directories that, I am given to believe begin with "@" sign. Not sure I took the correct meaning from their missive, but, if it is so, how to "escape" the @ sign to be seen/located?
locate '@' works fine here.
participants (3)
-
Erwin Lam
-
joe a
-
Siard