how can we serch file or folder in linux on command prompt
how can we serch file or folder in linux on command prompt.
Fedora 10. |
Hi,
Quote:
Using find: Example uses of the Linux Command find Locate is simpler and faster, but it does need an up-to-date database (the updatedb command refreshes the database). Example: locate hosts Hope this helps. |
druuna is right, find is great for finding files or directories. For example:
Code:
find . -name "*xyz*" -print You should however go away from Fedora 10, it is out of support since about 18 month, so does not have recent security fixes, and then is vulnerable for attacks ... Fedora 15 is the latest one. |
simply use 'locate' command
syntax :- locate <filename> eg :- # locate httpd.conf /etc/httpd/conf/httpd.conf |
Quote:
|
best command is
locate <filename> and whereis <filename> it is simple and best |
Quote:
|
try this tutorial about finding things in linux
finding your way in linux |
@hhh123......first you try whereis then say...ok.
this is also used for locating....you cant say there is no use.every command give their individual output.so its on user which one they are adopting. |
@hhh123
where is output of "whereis" command #whereis samba samba: /etc/samba /usr/lib/samba /usr/share/samba /usr/share/man/man7/samba.7.gz if u dont know the use of command then don't oppose on rply..ok.remember it. |
All times are GMT -5. The time now is 09:43 AM. |