Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 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 Tue 17 Sep 2019, 09:23
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
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 13 [184 Posts]   Goto page: Previous 1, 2, 3, 4, ..., 11, 12, 13 Next
Author Message
slavvo67

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

PostPosted: Sat 07 Feb 2015, 14:55    Post subject:  

I think Find works just fine and even if my scripts take 10+ minutes to find all the files that I'm trying to extract, the customizations (as mentioned earlier in this thread) make it suitable for most needs.

It works fairly well for finding items by mime type (I do get false positives here), files changed or modified between certain dates and specific or all file extensions.

Always nice to try new things, though. Speed is always nice to have.

Best,

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


Joined: 13 Nov 2011
Posts: 3045
Location: Cradle of Humankind

PostPosted: Sun 08 Feb 2015, 01:33    Post subject:  

mikeb wrote:
If you don't want databases lying around and you like guis then searchmonkey I found to be as fast as anything I tried unless you go to gtk1 land .... content search and regular expressions too... invaluable for compiling I find to look for those 'lost' functions.

No bias...I did not write it...just tidied up the interface because I liked it Smile

Indeed I turn off those indexing daemons in windows as they are a drag...and after all I am looking for stuff in unknown places like kernel sources, devx and app sources...NON of which would be in a recent database..... seems odd to search for stuff you already know about...but thats just me.

Mike

Indexing is turned off on my computer. "Everything" is lightning quick. When you start it the first time the database will obviously be built first (which doesn't take long). On my 80GB drive which is full (mostly mp3's), the data base is 300kb big. You don't notice the updates to the data base (too quick). I only start the programme when I need it so it does not run in the background. Makes no difference to the speed though.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11269

PostPosted: Sun 08 Feb 2015, 08:14    Post subject:  

I suppose I only search for things now and then.... and filename searches seem fast anyway...a few seconds on a 1TB external drive. ...only content takes a while.

What is everyone losing? Very Happy

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


Joined: 13 Nov 2011
Posts: 3045
Location: Cradle of Humankind

PostPosted: Sun 08 Feb 2015, 09:31    Post subject:  

I have quite a large music collection. The songs of a particular artists may be all over the show in seperate directories/sub-directories. Very easy to find and play directly with Everything. Get results whilst typing so most of the time you already have what you are looking for after typing only a few characters. The search string is also very "wide" so if searching for a song like "under the moon of love" eg. entering moo lov will give instantaneous results (in fact the search results change as you are typing).
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 11269

PostPosted: Sun 08 Feb 2015, 10:25    Post subject:  

Quote:
How do we get a petition going? Smile


thanks for the chuckle Smile

Je ne suis pas intelligent, je suis agile.
Il m'aide à éviter les dagues.

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

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

PostPosted: Sun 08 Feb 2015, 15:09    Post subject:  

mikeb wrote:
Quote:
How do we get a petition going? Smile


thanks for the chuckle Smile

Je ne suis pas intelligent, je suis agile.
Il m'aide à éviter les dagues.

mike


Cool Very Happy

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Mon 09 Feb 2015, 15:34    Post subject:  

Greetings to all members of the Puppy Brotherhood! Smile

Here's a tid-bit to update the slocate database without breaking a sweat:
Code:
#!/bin/sh
# $MBINS/SLocate/Slocate-updt.sh
# Purpose : update slocate's' files database.
# musher0, 2015-02-09
####
slocate -e /dev,/initrd,/lost+found,/proc./tmp -f vfat,ntfs,iso9660 -u

It excludes folders and files in /dev, /initrd, /lost+found, /proc. and /tmp, as well as
file systems vfat, ntfs, and iso9660, which makes the slocate database smaller, and
faster to search.

BFN.

musher0

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2937
Location: USA

PostPosted: Tue 10 Feb 2015, 00:26    Post subject: Re: Linux Commands missing from PUPPY Linux distros  

gcmartin wrote:
Commands which should be added back into the system's terminal commands: "updatedb" and "locatedb".

Linux commands whose benefits is explained here.

Over the years many of us have found our "find" command to be taking longer and longer. This is due to the very fact that more and more data is on our HDD/USB/SSD/etc storage media than ever before.

Many of us home users have music, family pictures, videos, documents, etc where our PUPs have been useful in our housing this content.

Its no wonder that locating data whose name and location we've forgot, is taking longer and longer.

Linux, for many years has addressed this, but, in PUPs beginnings, this was not considered.

Today, with so much data in the home we need every element of assistance to quickly find data, as is possible.

This is a formal request asking developers of WOOFCE/WOOFQ/WOOF/etc the PUP builder system to please add updatedblocatedb so that these can benefit users in finding files quickly in the system.

PUPPY developer consideration requested.


I do the "retro" style solution of periodically just using find to create an index file... Then just grep for the lost file (recent files I probably remember where I put them).

Code:
find > listing.txt
grep -i lost.file listing.txt

_________________
Add swapfile
WellMinded Search
PuppyLinux.US Search
Back to top
View user's profile Send private message 
slavvo67

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

PostPosted: Wed 11 Feb 2015, 21:45    Post subject:  

Retrotechguy:

This is a nice little trick. I tried it on a mounted USB and it worked quite quickly. I'm wondering how it will do on a much larger drive so that'll be my next run.

Sometimes, simple and effective is good.

Thanks,

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

Joined: 14 Oct 2005
Posts: 6730
Location: Earth

PostPosted: Wed 11 Feb 2015, 22:52    Post subject:  

Thanks @Retrotechguy:

Yes, over the years on 32bit PUPs except for1,I have on occasion resorted to this. It does work. When I have resorted is after, I have run "ls" or "find" back to back looking for something and having to wait what seems like eons for an answer to the terminal (every one of us has done this, we know how we hate waiting on results). The beauty is that this feature would be in every WOOFCE/WOOFQ buit PUP, OOTB, and no one would have to install or craft something on any PUP.

I only hope the Linux system commands are included in future PUPs to make instantaneous, file search results, as is found in other Linux distros and Lighthouse64 where these commands are present in the base system. Instantaneous as a part of system's normal behavior has advantages as its included in Linux's help system (both "man" command and "info" command)

The system doing the work has no noticeable impact on either system speed and there is almost no RAM impact that would impact applications ability.

Here's hoping the distro developers can weigh the advantage of putting this back into the Linux arsenal for our 2015 forward progress with all this data many of us are using.

AGain, thanks for that alternative, while we wait for development to also understand and consider the benefit of the Linux commands.

_________________
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 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2937
Location: USA

PostPosted: Wed 11 Feb 2015, 23:27    Post subject:  

slavvo67 wrote:
Retrotechguy:

This is a nice little trick. I tried it on a mounted USB and it worked quite quickly. I'm wondering how it will do on a much larger drive so that'll be my next run.

Sometimes, simple and effective is good.

Thanks,

Slavvo67


I "cd" to the drive, so the index resides on the drive and travels with it.

On big drives, it does take some time, but the search will be faster than using a live search every time you want to find a different file... Drives have just gotten so darn big that it's hard to keep track...

And if you want, you can copy all of the listings to a single folder, and search all of the files at once (give them a filename that makes sense, so when it reports a file you know which file it was in, and thus which drive it is on).

_________________
Add swapfile
WellMinded Search
PuppyLinux.US Search
Back to top
View user's profile Send private message 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2937
Location: USA

PostPosted: Wed 11 Feb 2015, 23:35    Post subject:  

gcmartin wrote:
Thanks @Retrotechguy:

Yes, over the years on 32bit PUPs except for1,I have on occasion resorted to this. It does work. When I have resorted is after, I have run "ls" or "find" back to back looking for something and having to wait what seems like eons for an answer to the terminal


I'm not sure that "find" is as fast as ls (which requires "ls -r"), but it stores the entire pathname in the output, whereas "ls -r" doesn't (unless there is some parameter to make ls do so).

This gives a listing much as a MS Dos prompt "dir /r /b" which gives a "bare" listing, including full path.

With our big modern drives, unless the system has some chron job or widget running in the background to store all file changes in each system, the scan time is going to be a killer...

Hmmm... I wonder how much horsepower a memory resident task would consume, to watch for new files (and deletion of files)?... Such a tool would probably be your solution.

It could create a folder ".index" or some such, to "hide" the file(s) so they don't clutter the appearance of the drive.

_________________
Add swapfile
WellMinded Search
PuppyLinux.US Search
Back to top
View user's profile Send private message 
musher0

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

PostPosted: Thu 12 Feb 2015, 01:06    Post subject:  

RetroTechGuy wrote:
(...)
With our big modern drives, unless the system has some chron job or widget running in the background to store all file changes in each system, the scan time is going to be a killer...

Hmmm... I wonder how much horsepower a memory resident task would consume, to watch for new files (and deletion of files)?... Such a tool would probably be your solution.

It could create a folder ".index" or some such, to "hide" the file(s) so they don't clutter the appearance of the drive.


Hi, RetroTechGuy.

Actually, as I said to mikeb on page 1, updating this slocate database takes a
looong second, two seconds at the most. So you may feel a "hic-cup"
on your system for a second ot two while the slocate db is being updated, but
that's it.

Now speaking of "automatic", I've borrowed a CLI sub-routine from French member
Médor for another little project (thanks are due to him). You can set it so this
"snapshot" is taken at the interval you want: ½ an hour, 1 hour, 2 hours... and it
is launched from the /root/Startup folder and runs in the background.

Takes very little resources, because it's not watching all the time, rather it takes
snapshots at intervals of x time only.

If you're interested, tell me. I should be able to adapt it to the slocate update
function in an hour or so.

BFN.

musher0

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 6730
Location: Earth

PostPosted: Thu 12 Feb 2015, 01:13    Post subject:  

It appears some may not have known of this feature of Linux; namely "updatedb" command.

It is not necessary for anyone to do any alternate scripts or methods. Linux writers has done all the heavy lifting long before now. @Musher0, in an earlier post, expresses a linux command which uses the benefit via a terminal command; "slocate ..."

This is the reason for this to be added back into Puppy's version of Linux's commands. We are not taxing the system or writing any specialized scripts. Its merely a Linux command that is ONLY included by couple of PUPPY developers, today.

_________________
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: 14305
Location: Gatineau (Qc), Canada

PostPosted: Thu 12 Feb 2015, 01:22    Post subject:  

gcmartin wrote:
It appears some may not have known of this feature of Linux; namely "updatedb" command.

It is not necessary for anyone to do any alternate scripts or methods. Linux writers has done all the heavy lifting long before now. @Musher0, in an earlier post, expresses a linux command which uses the benefit via a terminal command; "slocate ..."


Yoo-hoo, gc!?

As I said before the updatedb program is incorporated in slocate.

Fading echos : Very Happy
... the updatedb program is incorporated in slocate
....... the updatedb program is incorporated in slocate.
.......... the updatedb program is incorporated in slocate.
..............the updatedb program is incorporated in slocate.

That's why I chose it over the other two available choices.
You don't need a separate updatedb program with slocate, it's
incorporated / included / absorbed / digested Smile into slocate as a symlink.

Capiche? Smile

But to follow through on RetroTechGuy's suggestion, we'll still need a tiny script to
activate the slocate db fundtion at every x interval.

BFN

musher0

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 13 [184 Posts]   Goto page: Previous 1, 2, 3, 4, ..., 11, 12, 13 Next
Post new topic   Reply to topic 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.1302s ][ Queries: 12 (0.0121s) ][ GZIP on ]