Joe Klemmer@lemmy.myserv.one to Linux@lemmy.ml · 1 年前find, grep, sed, and awkwilsonericn.wordpress.comexternal-linkmessage-square25fedilinkarrow-up153arrow-down13file-text
arrow-up150arrow-down1external-linkfind, grep, sed, and awkwilsonericn.wordpress.comJoe Klemmer@lemmy.myserv.one to Linux@lemmy.ml · 1 年前message-square25fedilinkfile-text
minus-squarepalordrolap@kbin.sociallinkfedilinkarrow-up2·1 年前If you’re using find all the time, check to see if you have or can have some variant of locate installed. It indexes everything* on the system (* this is configurable) and can be queried with partial pathnames, even with regex, and it’s fast.
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up2arrow-down1·1 年前I use locate when I don’t know where the files are. Find has finer controls and can differentiate between regular files, links, directories, etc.
If you’re using
find
all the time, check to see if you have or can have some variant oflocate
installed. It indexes everything* on the system (* this is configurable) and can be queried with partial pathnames, even with regex, and it’s fast.I use locate when I don’t know where the files are. Find has finer controls and can differentiate between regular files, links, directories, etc.