Assume you are working in the directory USER and want to see the contents of the directory LIB under the volume VOL2. You can use the NetWare command NDIR to list its contents, the syntax is:
NDIR [path] [/option..]
The output is very much the same as that of the DOS DIR command: the names of the files/directories contained therein, their size in bytes and the date and time they were last modified. In addition, NDIR displays the date and time the files/directories were last accessed, their owner's name and the attributes assigned to them
Just like the DIR command of DOS, the NDIR command can also be used with wildcards. The command given below restricts the display of information to that pertaining to files that have the extension TXT.
NDIR V0L2:LIB\*.TXT
Very often you find yourself wanting to display details of files whose names cannot be matched by a common wildcard pattern. For instance, if you want to get information on the files SALES.DBF and TWO. DAT, you are not able to do so with a wildcard match. NetWare allows you to specify more than one filename with the NDIR command as shown below.
NDIR ONE.DBF, TWO.DBF
To view subdirectory information only in the directory BIN, for example, you can use the /DO option along with the command as given below.
NDIR V0L2:BIN/D0
Similarly, to view file information only in the same directory, the command
NDIR V0L2:BIN/F0
can be issued.
You can get information on files created by a particular user through the /OWNER option with the command
NDIR /OWNER = USER2
In the above example, NDIR will give you information about all the files owned by USER2 in the current directory. You can also find out details of files that are not owned by a specific user. The command
NDIR V0L2:LIB /OWNER NOT = USER2
will give you information about files not owned by USER2.
The date of creation of files/directories can sometimes be of great help. For example, if you forget the name of a file in which you had stored an important letter, but remember the date, the twenty-third of November 1994, on which you had created the file, the command
NDIR/CREATE EQ 11-23-94
will list the files that were created on that day, from which you can find the name of your file. The command
NDIR/CREATE BEF 11-23-94
will give you the details of files/directories created before the twenty-third of November 1994, while
NDIR/CREATE NOT BEF 11-23-94
will give you the details of files/directories created on the twenty-third of November 1994 and after.
The command
NDIR /CREATE AFT 11-23-94
will give you the details of files/directories created after the twenty-third of November 1994.
| Follow Up Next |