Joe Klemmer@lemmy.myserv.one to Linux@lemmy.ml · 1 year agofind, grep, sed, and awkwilsonericn.wordpress.comexternal-linkmessage-square25fedilinkarrow-up155arrow-down13file-text
arrow-up152arrow-down1external-linkfind, grep, sed, and awkwilsonericn.wordpress.comJoe Klemmer@lemmy.myserv.one to Linux@lemmy.ml · 1 year agomessage-square25fedilinkfile-text
minus-squarepalordrolap@kbin.sociallinkfedilinkarrow-up2·1 year agoIf 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 year agoI 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.