Straight forward:
Note that the default is -a locigal AND and has higher precedence than -o logical OR. So you can say as well
If the left side of a -a is true it must evaluate the right side, and vice versa.
If the left side of a -o is false it must evaluate the right side, and vice versa.
Regarding the -path, its argument must match the whole pathname. If the start directory is a . then it must begin with ./
This User Gave Thanks to MadeInGermany For This Post:
Hello everyone, I'm a newbie.
I've got a problem while using find.
I know there is a way to do it in man find which is something like
find . -wholename './src/emacs' -prune -o -print
it works but i also want to use -daystart, -mtime, -type on it and i dont know whats the sequence of these... (0 Replies)
Hello,
I know find can be prevented from recursing into directories with something like the following...
find . -name .svn -prune -a type d
But how can I completely prevent directories of a certain name (.svn) from being displayed at all, the top level and the children?
I really... (2 Replies)
Hi,
I have to find specific files only in the current directory...not in the sub directories.
But when I use Find command ... it searches all the files in the current directory as well as in the subdirectories. I am using AIX-UNIX machine.Please help..
I am using the below command. And i am... (2 Replies)
Dear All,
I am using find command
find /my_rep/*/RKYPROOF/*/*/WDM/HOME_INT/PWD_DATA -name rk*myguidelines*.pdf -print
The problem i am facing here is find /my_rep/*/
the directory after my_rep could be mice001, mice002 and mice001_PO, mice002_PO
i want to ignore mice***_PO directory... (3 Replies)
i am trying to recursively save a remote FTP server but exclude the files immediately under a directory directory1
wget -r -N ftp://user:pass@hostname/directory1
I want to keep these which may have more files under them
directory1/dir1/file.jpg
directory1/dir2/file.jpg... (16 Replies)
In COBOL, a hyphen can be used in a field name and in a specific program some field names would be identical to others except a suffix was added--sometimes a suffix to a suffix was used. For example, assume I am looking for AAA, AAA-BBB, and AAA-BBB-CCC and don't want to look at AAA-BBB-CCC... (7 Replies)
Hi,
I am using following command to find a specific file.
find . -name "find*.txt" -type f -print
I am issuing that command at root directory since I don't know in which sub folder that file is getting created from some other process.
As I am not having access to all directories, my... (3 Replies)
Hi
i am really new to linux scripting and i need a little bit help.
i have the following script:
find "/usr/share/nextcloud/data/__groupfolders" -type f -mtime +14 -exec rm {} \;
but i don't want to delete everything. I want to ignore .txt files. How can i do this? (3 Replies)
Hello,
I have some code that works more or less. This is called by a make file to adjust some hard-coded definitions in the src code. The script generated some values by looking at some of the src files and then writes those values to specific locations in other files. The awk code is used to... (3 Replies)
I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users.
The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies
LEARN ABOUT OPENSOLARIS
slocate
SLOCATE(1) General Commands Manual SLOCATE(1)NAME
slocate - Security Enhanced version of the GNU Locate
SYNOPSIS
slocate [-qi] [-d <path>] [--database=<path>] <search string>
slocate [-i] [-r <regexp>] [--regexp=<regexp>]
slocate [-qv] [-o <file>] [--output=<file>] slocate [-e <dir1,dir2,...>] [-f <fstype1,...>] <[-l <level>] [-c] <[-U <path>] [-u]>
slocate [-Vh] [--version] [--help]
DESCRIPTION
Secure Locate provides a secure way to index and quickly search for all files on your system regardless of ownership. It uses incremental
encoding just like GNU locate to compress its database to make searching faster, but it will also check file permissions and ownership
before displaying matched entries so that users will not see files they do not have access to. Note that permissions and ownership are not
stored in the database.
This manual page documents slocate. slocate Enables system users to search entire filesystems without displaying unauthorized files.
OPTIONS
-u Create slocate database starting at path /.
-U <dir>
Create slocate database starting at path <dir>.
-e <dir1,dir2,...>
Exclude directories from the slocate database.
-f <fstype1,...>
Exclude files on specific file systems from the slocate database.
-c Parse '/etc/updatedb.conf' when updating the slocate database. (see CONFIGURATION FILE below).
-l <level>
Security level. 0 turns security checks off. This will make searchs faster. 1 turns security checks on. This is the default.
-i Does a case insensitive search.
-q Quiet mode. Error messages are suppressed.
-n <num>
Limit the amount of results shown to <num>.
-r <regexp>
--regexp=<regexp> Search the database using a basic POSIX regular expression.
-o <file>
--output=<file> Specfies the database to create.
-d <path>
--database=<path> Specfies the path of databases to search in.
-h--help Display this help.
-v--verbose Verbose mode. Display files when creating database.
-V--version Display version.
ENVIRONMENT
LOCATE_PATH
Colon-separated list of databases to search.
CONFIGURATION FILE
Secure Locate will parse GNU Locate's /etc/updatedb.conf when the argument is provided. But please be aware that Secure Locate currently
does NOT support all options provided by GNU Locate's configuration file.
Options currently supported by Secure Locate are PRUNEFS and PRUNEPATHS
VERSION
Secure Locate v3.0 beta
AUTHOR
Kevin Lindsay - Copyright (c) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
BUG REPORT
Report bugs to slocate@trakker.ca
URL
http://slocate.trakker.ca/
SEE ALSO updatedb(1)
January 6, 2006 SLOCATE(1)