Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

READ-ONLY-MODE: PLEASE DO NOT POST NEW STUFF!
  New Forum: http://forum.puppylinux.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 12 Aug 2020, 11:32
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Normal Linux commands to Locate your system files, INSTANTLY
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 7 of 13 [184 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 Next
Author Message
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Fri 20 Feb 2015, 11:00    Post subject:  

Thanks, Smokey01, for the compliments and for the valuable recommendations.

About your #1, providing an empty db file in the pet is no trouble at all. However,
I'm puzzled by the fact that you don't have a db file there even after a first run of
slocate.

About your #2, an slocate group is already in my "/etc/group" file. (See pic.)
Do you mean that "owners" should be appended to the line?


I'm unfamiliar with "groups".

As to your #3, I suppose a question could be asked to the user at the beginning
about where to store, or even simply copy the drive db's. Actually, it doesn't matter
where the db's are, as long as they are available. For us humans, that is... Smile

Through various tests, I discovered that slocate apparently needs to create & store
a particular drive's db on the particular drive. If you want to create a db for say,
/mnt/sda1, in /varlib/slocate, it won''t do it. (But maybe I have to test "harder"!)

We have to check if slocate has the same "reaction" when searching db's.

Again thanks for this. BFN.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Fri 20 Feb 2015, 12:15    Post subject:  

@smokey01

My baby got a lot of attention recently, but I believe Drive_Index_Creator-4 by
Slavvo67
already does what you want:
http://murga-linux.com/puppy/viewtopic.php?p=828928&sort=lastpost#828928
It creates a huge 80Mb + index in /root of all files on all mounted drives, and does
the sub-searches on it.

There's also searchmonkey's variant by mikeb, but it's not clear to me
if it can index all mounted drives in a single file:
http://www.murga-linux.com/puppy/viewtopic.php?p=737444&sort=lastpost#737444
Maybe ask mikeb? Smile

Lazy side of me speaking: I feel like I've done enough coding for the week! Wink BFN.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Fri 20 Feb 2015, 12:23    Post subject:  

@ Slavvo67

About your Drive_Index_Creator-4 at:
http://murga-linux.com/puppy/viewtopic.php?p=828928&sort=lastpost#828928

I am not sure it'is advisable to create a 80Mb + index in /root if you're running
Puppy in frugal or CD/DVD mode. That said, your searches are extremely fast,
perhaps because of it.

Another suggestion I would have is: perhaps use the "more" utility during the
listing so we don't have to backtrack the list using the side bar so much?

Perhaps also add the option to abort once we've found the file we want.

I like that the index and the search results are text-editor friendly.

Very good job. Smile TWYL.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1625
Location: The other Mr. 305

PostPosted: Fri 20 Feb 2015, 16:37    Post subject:  

Musher0:

Thanks for the input. I run puppy with a full USB install, so that hasn't been an issue for me but it is important not to alienate others that might be using Puppy that way.

Thanks for the suggestions. I was just toying around with it so I'm not sure how much further I want to go.

When you mention the 80MB file, I'm guessing you mean with the copy function where files are moved over. You don't have an 80MB text file listing the files / directories, I would guess....

I'm playing with the idea of having a pop-up window to choose the destination directory. Maybe I'll take some weekend time and do that.

I haven't used your final or near-final product yet but I look forward to it over the weekend, as well.

Best,

Slavvo67
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11331

PostPosted: Fri 20 Feb 2015, 19:56    Post subject:  

Quote:
There's also searchmonkey's variant by mikeb, but it's not clear to me
if it can index all mounted drives in a single file:


hi , I'd stopped watching Very Happy

No indexing...its like 'find' with a friendly face...just search when you need it where you need it and pretty fast... and then there's content searching and a handy regular expression maker.
I do think it keeps a temporary index as content searches are much faster after the first pass.

Thats it...have fun Smile

mike
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 6730
Location: Earth

PostPosted: Fri 20 Feb 2015, 20:13    Post subject:  

@Slaavvo67,it is a nice utility.

I don't know if 80MB RAM in the root filesystem on today's PC's is any hardship. In 32bit (or even 4bit) PUPs, the trade-off from the old way of doing things is invaluable. Thus, an 80MB penalty for instantaneously finding stuff is pretty small considering the reduction on CPU and disk I/O.

I also, would envision, that as PUPs move further into the future, this need for applications to discover files would have a tremendous reduction on CPU utilization for searches.

I do understand @Musher0 sharing and the concern he shares. It merely a trade-off, though. This is a traditional problem that has plagued programming and will continue until all things in the technology world are RAM resident (I don't ever expect that to happen).

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Sat 21 Feb 2015, 13:32    Post subject:
Subject description: More bugs were corrected!
 

Moved to: http://www.murga-linux.com/puppy/viewtopic.php?p=830105&sort=lastpost#830105
PuppyTerrier-01e_BIL.pet
Description  Blingual FR-EN version. It should be easy enough to localize to other languages.
(Just PM me and I'll explain how to do it.)
pet

 Download 
Filename  PuppyTerrier-01e_BIL.pet 
Filesize  37.39 KB 
Downloaded  216 Time(s) 

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Last edited by musher0 on Sun 22 Feb 2015, 20:21; edited 3 times in total
Back to top
View user's profile Send private message 
slavvo67

Joined: 12 Oct 2012
Posts: 1625
Location: The other Mr. 305

PostPosted: Sat 21 Feb 2015, 16:53    Post subject:  

Hi Musher0:

I really like the interface on your search. Once the databases are created, it's fast. I did notice that if I searched for file type, such as .pdf or .jpg, it doesn't seem to find just by extension.

Can you let me / us know where it is storing everything?

Thanks,

Slavvo67

P.S. - Updated Drive Index Creator with your suggestions. I'll probably upload later this evening after I test a bit more.
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Sat 21 Feb 2015, 17:14    Post subject:  

Hi, Slavvo67.

I'm glad you like the new search interface. It's wider, easier to read, eh?

In answer to your question, there is one main db for the Puppy system files:
/var/lib/slocate/slocate.db (for internal Puppy files)

and each mounted drive has its own db for its own files:
/mnt/sd??/slocate-sd??.db (for the files on drives sd??)

Break a leg on that script of yours! Smile BFN.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Sat 21 Feb 2015, 17:36    Post subject:  

Hello again.

I seem to have no problem finding jpg's.



I asked slocate to find "jpg", though, not ".jpg" ?

BFN.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Sun 22 Feb 2015, 12:39    Post subject:  

EDIT, Febr, 22 2014, evening :

Continued at
http://www.murga-linux.com/puppy/viewtopic.php?p=830104&sort=lastpost#830104

as per gcmartin's request.

Best regards.

musher0

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 6730
Location: Earth

PostPosted: Sun 22 Feb 2015, 23:35    Post subject:  

I have to admit, this thread could not have been a better presentation to PUP users and developers for its value to all who have amassed files over the life of our PCs and use. This is a time saver and a reduction in CPU cycles to get an instantaneous answer(s) we used to have to wait for.

@Musher0 has been the inspiration for driving how this can be useful in a provocative way. Thanks for EVERYTHING you have done in helping us with the knowledge and understanding you brought to the table. You PET will help us all.

@Musher0 hasn't left the thread, he has made his PET's life-cycle, easy for community to find its most current version. The current version is located, here.

Fingers crossed for all of us, here, that this thread is understood.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engines or use DogPile

Last edited by gcmartin on Mon 23 Feb 2015, 11:15; edited 1 time in total
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11331

PostPosted: Mon 23 Feb 2015, 06:20    Post subject:  

Curious...is there not a file index already used by the filesystem?

mike
Back to top
View user's profile Send private message 
musher0

Joined: 04 Jan 2009
Posts: 15041
Location: Gatineau (Qc), Canada

PostPosted: Mon 23 Feb 2015, 12:05    Post subject:  

mikeb wrote:
Curious...is there not a file index already used by the filesystem?

mike


Spooky... Wink

_________________
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Back to top
View user's profile Send private message 
Uten


Joined: 29 Jan 2008
Posts: 129

PostPosted: Mon 23 Feb 2015, 20:52    Post subject:  

mikeb wrote:
Curious...is there not a file index already used by the filesystem?

mike

I think your thinking of the hash table of executable files created by the system. Don't know how you get direct access to the table thought. But as I understand it the command command use it to fetch it's results.
But try:
Code:
which bash
command -v bash
command -v command
If you don't get a path it is a shell command.

The reason I came back to this thread is cindex and csearch included in codesearch. anyone following this thread should check them out. How they work is explained here. Worth the read in my opinion.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 7 of 13 [184 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 Next
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0726s ][ Queries: 13 (0.0201s) ][ GZIP on ]