![]() |
2011-07-01
, 07:47
|
|
Posts: 549 |
Thanked: 299 times |
Joined on Jun 2010
@ Australian in the Philippines
|
#2
|
![]() |
2011-07-05
, 21:21
|
Posts: 14 |
Thanked: 0 times |
Joined on Jan 2011
|
#3
|
Are you sure you are using the standard locate package?
it's not 'locate' - it's 'glocate' and 'gupdatedb' - though you could alias these back to their more regular names if desired.
Installing the locate package doesn't work out of the box, you need to edit /usr/bin/gupdatedb and change (probably line 208)
Change:
: ${find:=${BINDIR}/find}
To:
: ${find:=${BINDIR}/gfind}
Make sure you've installed findutils-gnu
Then it'll work. Busybox is a bit of an abomination.
I always use locate. But now its seems bugged or corrupted. I have tried to reinstall but no success.
When I try updatedb, the following message is displayed:
Nokia-N900:~# updatedb
find: unrecognized: -fstype
BusyBox v1.18.5 (Debian 1.18.5power1) multi-call binary.
Usage: find [PATH]... [EXPRESSION]
Search for files. The default PATH is the current directory,
default EXPRESSION is '-print'
EXPRESSION may consist of:
-follow Follow symlinks
-xdev Don't descend directories on other filesystems
-maxdepth N Descend at most N levels. -maxdepth 0 applies
tests/actions to command line arguments only
-mindepth N Don't act on first N levels
-name PATTERN File name (w/o directory name) matches PATTERN
-iname PATTERN Case insensitive -name
-path PATTERN Path matches PATTERN
-regex PATTERN Path matches regex PATTERN
-type X File type is X (X is one of: f,d,l,b,c,...)
-perm NNN Permissions match any of (+NNN), all of (-NNN),
or exactly NNN
-mtime DAYS Modified time is greater than (+N), less than (-N),
or exactly N days
-mmin MINS Modified time is greater than (+N), less than (-N),
or exactly N minutes
-newer FILE Modified time is more recent than FILE's
-inum N File has inode number N
-user NAME File is owned by user NAME (numeric user ID allowed)
-group NAME File belongs to group NAME (numeric group ID allowed)
-depth Process directory name after traversing it
-size N[bck] File size is N (c:bytes,k:kbytes,b:512 bytes(def.))
+/-N: file size is bigger/smaller than N
-links N Number of links is greater than (+N), less than (-N),
or exactly N
-print Print (default and assumed)
-print0 Delimit output with null characters rather than
newlines
-exec CMD ARG ; Run CMD with all instances of {} replaced by the
matching files
-prune Stop traversing current subtree
-delete Delete files, turns on -depth option
(EXPR) Group an expression
Nokia-N900:~#