[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

search video file

I have a lot of files most of them stay in a 1 Tb hardisk i looking the way to search the file quickly some time i known the file is on hardisk but i do not known the name How can i make a system that can put the keyword of each video so i can search it  .  and i want my staff  In my office can search and can download the file that he want too     I noneed to preview file but if it has it will be very good
0
teera
Asked:
teera
  • 2
2 Solutions
 
Deepak KosarajuCommented:
find  -type f -name
for example: I like to know what are available rpm file under /root
then I use the following
same way you can say
find / -type f - name \*.avi
find / -type f -name \*.mpg

Gud luck
[root@pro02 ~]# find /root/ -type f -name \*.rpm
/root/perl-Spreadsheet-ParseExcel-0.32-1.el4.rf.noarch.rpm
/root/nrpe-2.12-1.i386.rpm
/root/nagios-plugins-setuid-1.4.9-1.el5.rf.i386.rpm
/root/perl-Crypt-DES-2.05-3.2.el5.rf.i386.rpm
/root/rrdtool-1.2.23-1.el5.rf.i386.rpm
/root/fping-2.4b2-7.el5.i386.rpm
/root/perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch.rpm
/root/perl-rrdtool-1.2.23-1.el5.rf.i386.rpm
/root/perl-Nagios-Plugin-0.24-1.el5.rf.noarch.rpm
/root/perl-GD-2.32-14.0.el5.i386.rpm
/root/perl-Config-IniFiles-2.39-5.0.el5.noarch.rpm
/root/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
/root/perl-Parse-RecDescent-1.94-1.el5.rf.noarch.rpm
/root/nrpe-debuginfo-2.12-1.i386.rpm
/root/perl-MooseX-Params-Validate-0.04-1.el5.rf.noarch.rpm
/root/bluefish-1.0.4-1.el5.rf.i386.rpm
/root/nagios-plugins-1.4.12-1.i386.rpm
/root/perl-Mail-POP3Client-2.17-1.2.el5.rf.noarch.rpm
/root/perl-Mail-IMAPClient-3.02-1.el5.rf.noarch.rpm
/root/perl-Mail-Sender-0.8.13-1.el5.rf.noarch.rpm
/root/nrpe-plugin-2.12-1.i386.rpm
/root/perlmodules/perl-Spreadsheet-ParseExcel-0.32-1.el4.rf.noarch.rpm
/root/perlmodules/perl-Crypt-DES-2.05-3.2.el5.rf.i386.rpm
/root/perlmodules/perl-Net-SNMP-5.2.0-1.2.el5.rf.noarch.rpm
/root/perlmodules/perl-rrdtool-1.2.23-1.el5.rf.i386.rpm
/root/perlmodules/perl-Nagios-Plugin-0.24-1.el5.rf.noarch.rpm
/root/perlmodules/perl-GD-2.32-14.0.el5.i386.rpm
/root/perlmodules/perl-Config-IniFiles-2.39-5.0.el5.noarch.rpm
/root/perlmodules/perl-Parse-RecDescent-1.94-1.el5.rf.noarch.rpm
/root/perlmodules/perl-MooseX-Params-Validate-0.04-1.el5.rf.noarch.rpm
/root/perlmodules/perl-Mail-POP3Client-2.17-1.2.el5.rf.noarch.rpm
/root/perlmodules/perl-Mail-IMAPClient-3.02-1.el5.rf.noarch.rpm
/root/perlmodules/perl-Mail-Sender-0.8.13-1.el5.rf.noarch.rpm
/root/perlmodules/perl-IO-stringy-2.110-1.2.el4.rf.noarch.rpm
/root/perlmodules/perl-Math-Calc-Units-1.06-1.el5.rf.noarch.rpm
/root/perlmodules/perl-OLE-Storage_Lite-0.16-1.el4.rf.noarch.rpm
/root/nagios-plugins-1.4.9-1.el5.rf.i386.rpm
/root/nagios3rpms/nagios-www-3.0.3-1.fc4.test.i386.rpm
/root/nagios3rpms/nagios-3.0.3-1.fc4.test.i386.rpm
/root/nagios3rpms/nagios-debuginfo-3.0.3-1.fc4.test.i386.rpm
/root/nagios3rpms/nagios-devel-3.0.3-1.fc4.test.i386.rpm
/root/perl-IO-stringy-2.110-1.2.el4.rf.noarch.rpm
/root/perl-Math-Calc-Units-1.06-1.el5.rf.noarch.rpm
/root/perl-OLE-Storage_Lite-0.16-1.el4.rf.noarch.rpm
[root@pro02 ~]# 

Open in new window

0
 
teeraAuthor Commented:
Hi kosarajudeepak

How can i put the key word to the file such as Mr robert  then i can search from the name or the place that i make a video  I need the system that i can put key word to the file
0
 
TintinCommented:
How often do the files get created/deleted?  If it is infrequent, it will be much, much, much faster to generate your own index on a regular frequency, eg: every hour.

0
 
Deepak KosarajuCommented:
I am not sure about adding keyword to a file in linux. As of my knowledge is concern we cannot do it in console base but can be done in GUI.
But to search with particular keyword following commands can be used...
find / -type f -name Mr\*
(or)
find / -type f -name \"Mr\ robert\"

Open in new window

0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now