The first question in the File Descriptors and Redirections "How many files exsit on the system that have the .log file extension? I've tried locate /*.log |wc -l....the answer I get doesn't seem to work am I missing something?
locate does not search on the file system. locate search in a database prepared by the tool updatedb.
The tool find could be used to search for files in the file system.
See the documentation displayed by man locate and man find.
Click here to create an account.