how to search hard disk file format

seachen

Verified User
Joined
Feb 3, 2007
Messages
497
for eg. i want to search my hard disk whether have store file format like mp3, avi, bt. may i know how to search from ssh?

what is the command ?

thank you
 
I'm not sure what this has to do with DirectAdmin; I've moved it to Off-Topic Discussion.
Code:
# locate .mp3
# locate .avi
# locate .bt
Jeff
 
I'm not sure what this has to do with DirectAdmin; I've moved it to Off-Topic Discussion.
Code:
# locate .mp3
# locate .avi
# locate .bt
Jeff

when i try to using command as you teach, it show msg as below

[root@server ~]# locate .mp3
warning: locate: could not open database: /var/lib/slocate/slocate.db: No such f ile or directory
warning: You need to run the 'updatedb' command (as root) to create the database .
Please have a look at /etc/updatedb.conf to enable the daily cron job.
 
Note my error (fixed above); ..avi is incorrect. Correct should be:
Code:
# locate .avi
Jeff
 
It should eventually return another prompt. No other information returned means it ran properly without error.

Jeff
 
Back
Top