I am working on the Linux terminal and I want to know how to search for c files in a certain directory. I have it working for the current directory but how do I do it for the directory usr/
for the current directory i did
grep -l "main" *.c
so I'd like to know how to search in the /usr directory without changing the directory first. Thanks.