LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-04-2006, 05:58 AM   #1
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 381

Rep: Reputation: 31
Question A command equivalent to c:\>dir /a/s/d


hello,
when i use windows DOS is my only way of searching for files I use the command dir /a/s/d it can search a whole 23 GB drive in a matter of seconds.

i would like to know if there is a command in linux that would do such task (speed is important because as you know the search tool with konqueror is as slow as the search in windows).

Thanks in advance,
Ahmad.
 
Old 09-04-2006, 06:08 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You can use "locate" or "find". Locate is much faster than find but relies on some sort of database which needs updating in order for locate to find any new files. Some distros update the database automatically through a cron job or everytime you reboot. With others, you have to manually update the database by doing "updatedb" as root.
 
Old 09-06-2006, 04:14 PM   #3
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 381

Original Poster
Rep: Reputation: 31
sorry for the late feedback
i have tried to try find but i found that this command have a very long man page and i was not able to use it

i have tried locate and it worked nicely and i think i will continue using it

thank you for your help reddazz
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
equivalent command in fedora pa_ash Linux - Software 0 06-28-2004 01:27 AM
no dir command shanenin Slackware 8 10-09-2003 02:33 PM
unix equivalent of dir /p bradut Linux - General 3 07-19-2002 07:57 AM
equivalent command in linux kunto Linux - Networking 2 11-26-2001 02:02 AM


All times are GMT -5. The time now is 01:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration