ls is good for finding stuff when you basically know where the target "stuff" is. If you want real power, look at the find command.
find <DIR> -mtime -3
find <DIR> -mtime +<DAYS>
find <DIR> -type f -name "*.iso"
find <DIR> -type l
find <DIR> -perm /0002 -type f
The possibilities are near endless, especially once you add find's -exec built-in function or pipeline your find to other tools via xargs (e.g., find <DIR> -type f | xargs grep -l <STRING> will provide you a list of files that contain a given string).
find <DIR> -type f | xargs grep -l <STRING>
This is incredibly helpful! Thanks so much, I'm going to try these out ASAP!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.