NDIR
View/sort information about files, directories, volumes.
Synopsis
NDIR [path] [/option]
[/? | /VER]
Description
Use NDIR at a workstation to:
-
view information about files (date, size, owner, attributes, archive
information)
-
view information about directories (creation date, owner, subdirectories,
Inherited Rights Filter, effective rights)
-
view volume information
-
sort information according to creation date, owner, file or directory
attributes, and so forth
Options
- path
-
Specify the path leading to the information you want to view. Include the
volume, directory, or filename.
- /option
-
Specify one or more options from:
-
NDIR display options:
- DO
-
Sort and view directories only.
- FO
-
Sort and view files only.
- FI
-
View every occurrence of the specified files within your current directory
and your PATH environment.
- SUB
-
Sort and view all subdirectories and their files.
- VOL
-
View volume information for the specified volume.
- SPA
-
View directory space limitation information for the specified directory.
- C
-
Scroll continuously through a display.
-
NDIR format options:
- DA
-
View dates when files were last updated, archived, accessed, created, and
copied.
- DE
-
View file details.
- COMP
-
View file and compression sizes for NetWare 4 files.
- LONG
-
View name space long filenames.
- MAC
-
View Apple® Macintosh® files.
- R
-
View file attributes, compression and migration status, effective rights,
and rights that pass through the Inherited Rights Filter.
-
NDIR sort options:
- REV
-
Reverse the direction of a sort. Put REV before SORT,
for example: /REV SORT.
- SORT CR
-
Sort by creation or copy date, from earliest to latest.
- SORT UN
-
Suspend sorting.
- SORT AC
-
Sort by date last accessed, from earliest to latest.
- SORT AR
-
Sort by date last archived, from earliest to latest.
- SORT UP
-
Sort by last update, from earliest to latest.
- SORT OW
-
Sort alphabetically by file owner names.
- SORT SI
-
Sort by file size, from smallest to largest.
-
NDIR attribute options:
- NOT
-
View files that do not have a specified attribute. For example, to display
all files in the current context that do not have the Di (Delete
Inhibit) attribute, type:
NDIR *.* /NOT /DI
- A (Archive Needed)
-
View files modified since the last backup.
- Ci (Copy Inhibit)
-
Prevent the file from being copied. (Applies to MAC files only.)
- Di (Delete Inhibit)
-
Prevent the file from being deleted.
- Dc (Do not Compress)
-
Prevent the file from being compressed (regardless of what the volume or
directory is set to).
- Dm (Do not Migrate)
-
Prevent the file from being migrated to a secondary backup (regardless of
what the volume or directory is set to).
- X (Execute Only)
-
Prevent a file from being copied or copied over. This attribute can be given
only to .EXE or .COM files, and cannot be removed.
- H (Hidden)
-
Prevent a file from being seen with the DOS DIR command. The
file cannot be copied or deleted.
- IC (Immediate Compress)
-
Compress a file as soon as possible.
- P (Purge)
-
Purge a file immediately if the file is deleted.
- RI (Rename Inhibit)
-
Prevent a file from being renamed.
- RO (Read Only)
-
Allow a file to only be read: it cannot be written to or deleted.
- RW (Read Write)
-
Allow a file to be read and written to.
- SH (Shareable)
-
Allow a file to be used by several users simultaneously.
- SY (System)
-
Prevent a file from being seen with the DOS DIR command. The
file cannot be copied or deleted.
- T (Transactional)
-
Protect a file by using the Transaction Tracking System (TTS).
-
NDIR restriction options:
- [NOT]
-
View all files except those the option specifies. For example:
/CR [NOT] BEF | EQ | AFT mm-dd-yy
- /CR BEF | EQ | AFT mm-dd-yy
-
View files created on, before, or after the date specified.
- /AC BEF | EQ | AFT mm-dd-yy
-
View file last accessed before, on, or after the date specified.
- /AR BEF | EQ | AFT mm-dd-yy
-
View files last archived on, before, or after the date specified.
- /UP BEF | EQ | AFT mm-dd-yy
-
View files last updated on, before, or after the date specified.
- /OW EQ user
-
View files created by a specific user.
- /SI GR | EQ | LE number
-
View files with byte sizes greater than, equal to, or less than a specified
number.
- /?
-
View online help. (Other parameters are ignored.)
- /VER
-
View the version number of the utility and the files it uses to execute.
(Other parameters are ignored.)
Status flags
- Cc (Can not Compress)
-
The file will not be compressed because of limited space savings.
- Co (Compressed)
-
The file is compressed.
- M (Migrated)
-
The file has been migrated.
Usage
A forward slash ``/'' must precede the first option of the option list.
Use backslashes ``\'' in path names.
You can use several options, but you must separate the options with spaces.
To view several files in your default directory, include a comma between
filenames.
You can use wildcard characters.
Examples
-
To view files in the current directory, type:
NDIR
.
-
To view the version of .EXE files on drive Z:, type:
NDIR Z:\
.EXE /VER
-
To view only directories on drive F:, type:
NDIR F:\
.
/DO
-
To view rights for files in the current directory, type:
NDIR
.
/R
-
To view the date of file RECORD.TXT, type:
NDIR RECORD.TXT /DA
-
To view detailed file information on RECORD.TXT, type:
NDIR RECORD.TXT /D
-
To view all read only files in SYS:PUBLIC, type:
NDIR SYS:PUBLIC\
.
/RO
-
To search for batch files on drive C:, type:
NDIR C:\
.BAT /SUB
-
To view files that are not read only, type:
NDIR
.
/NOT RO
-
To view files from smallest to largest, type:
NDIR
.
/SORT SI
-
To view files in drive Z: by the most recent access date first, type:
NDIR Z:
.
/REV SORT AC
-
To view files updated before June 5, 1996, type:
NDIR
.
/UP BEF 6-05-96
-
To view files not owned by user PAT, type:
NDIR
.
/OW NOT EQ PAT
-
To find where COMMAND.COM is, type:
NDIR COMMAND.COM /FI
© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999