1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
.\" @(#)$RCSfile: nsfind.man,v $ $Revision: 1.2 $ $Date: 2008/01/29 11:14:55 $ CERN IT-PDP/DM Jean-Philippe Baud
.\" Copyright (C) 2002 by CERN/IT/PDP/DM
.\" All rights reserved
.\"
.TH NSFIND 1 "$Date: 2008/01/29 11:14:55 $" CASTOR "Cns User Commands"
.SH NAME
nsfind \- search for files in CASTOR name server
.SH SYNOPSIS
.B nsfind
.I path-list
[
.BI -atime " nbdays"
] [
.BI -ctime " nbdays"
] [
.BI -inum " fileid"
] [
.B -ls
] [
.BI -mtime " nbdays"
] [
.BI -name " pattern"
]
.SH DESCRIPTION
.B nsfind
searches for files in CASTOR name server.
.TP
.I path-list
specifies the list of CASTOR pathnames.
If
.I path
does not start with
.BR / ,
it is prefixed by the content of the
.B CASTOR_HOME
environment variable.
.SH OPTIONS
.TP
.BI -atime " nbdays"
if
.I nbdays
is is just a number, the file is selected if it was accessed exactly
.I nbdays
ago. If the argument is in the form +n, this means more than n days ago and
if the argument is in the form -n, this means less than n days ago.
.TP
.BI -ctime " nbdays"
the file is selected if its status changed
.I nbdays
ago. See -atime above.
.TP
.BI -inum " fileid"
the file is selected if its fileid matches
.IR fileid .
.TP
.B -ls
list current file in "nsls -dil" format, i.e.
gives the file id, the file mode, the number of entries in the directory,
the owner in alphabetic form or as a valid numeric ID,
the group in alphabetic form or as a valid numeric ID,
the file size, the last modification date and
the file name.
.LP
.RS
The mode is printed as 10 characters, the first one is
.B d
for a directory,
.B D
for a logically deleted file,
.B m
for a migrated file and
.B -
for a regular file.
The next 9 characters are three triplets: the first triplet gives read, write
and execute/search permission for the owner, the second triplet for the group
and the last one for the others.
.RS
.TP
.B r
the file is readable
.TP
.B w
the file is writable
.TP
.B x
the file is executable or the directory is searchable
.TP
.B -
permission is not granted
.TP
.B s
set-user-ID or set-group-ID bit is on
.TP
.B t
sticky bit is on
.RE
.RE
.TP
.BI -mtime " nbdays"
the file is selected if it has been modified
.I nbdays
ago. See -atime above.
.TP
.BI -name " pattern"
select the file if the file name matches regular expression
.IR pattern .
.SH EXIT STATUS
This program returns 0 if the operation was successful or >0 if the operation
failed.
.SH SEE ALSO
.BR Castor_limits(4) ,
.B Cns_chmod(3)
.SH AUTHOR
\fBCASTOR\fP Team <castor.support@cern.ch>
|