[Info-vax] Search for folders

Dave Froble davef at tsoft-inc.com
Sat Jan 27 00:32:52 EST 2024


On 1/26/2024 3:32 PM, Single Stage to Orbit wrote:
> Unix has some great tools for searching for folders and files. Are
> there similar ones in VMS like `grep` or `find`?
>
> THe folder structure in OpenVMS is wierd... what's the root folder
> equivalent is it [000000] or is it cleverer than that?
>

No, the Unix directory structure is weird, the VMS directory structure is 
reasonable.

Hmmm ...  I detect a lack of sufficient exposure to VMS, perhaps ...

 From my VAX V7.2 system:

$ di [0,0] (system disk)

Directory SYS$SYSDEVICE:[000,000]

000000.DIR;1                     2/2        [1,1]       (RWED,RWED,RE,E)
BACKUP.DIR;1                     1/1        [BACKUP]    (RWE,RWE,RE,E)
BACKUP.SYS;1                     0/0        [1,1]       (RWED,RWED,RE,)
BADBLK.SYS;1                     0/0        [1,1]       (RWED,RWED,RE,)
BADLOG.SYS;1                     0/0        [1,1]       (RWED,RWED,RE,)
BHC.DIR;1                        1/1        [50,110]    (RWE,RWE,RE,E)
BITMAP.SYS;1                   512/512      [1,1]       (RWED,RWED,RE,)
CONTIN.SYS;1                     0/0        [1,1]       (RWED,RWED,RE,)
CORIMG.SYS;1                     0/0        [1,1]       (RWED,RWED,RE,)
DAS.DIR;1                        1/1        [DAS]       (RWE,RWE,RE,)
DASV2.DIR;1                      1/1        [DAS]       (RWE,RWE,RE,RE)
DAVE2.DIR;1                      1/1        [DAVE2]     (RWE,RWE,RE,E)
DFE.DIR;1                       18/19       [DFE]       (RWE,RWE,RE,E)
INDEXF.SYS;1                  9897/9897     [1,1]       (RWED,RWED,RE,)
SECURITY.SYS;1                   1/1        [1,1]       (RWED,RWED,RE,)
SYS0.DIR;1                       1/1        [SYSTEM]    (RWE,RWE,RE,RE)
SYSE.DIR;1                       1/1        [1,1]       (RWE,RWE,RE,E)
SYSEXE.DIR;1                     1/1        [SYSTEM]    (R,R,,)
SYSMAINT.DIR;1                   1/1        [SYSTEM]    (RWE,RWE,RE,RE)
TCPIP$FINGER.DIR;1               1/1        [TCPIP$AUX  (RWE,RWE,RE,E)
TCPIP$FTP.DIR;1                  1/1        [TCPIP$AUX  (RWE,RWE,RE,E)
TCPIP$ROUTED.DIR;1               1/1        [SYSTEM]    (RWE,RWE,RE,E)
TCPIP$TFTP.DIR;1                 1/1        [TCPIP$AUX  (RWE,RWE,RE,E)
TCPIP$TFTP_ROOT.DIR;1            1/1        [TCPIP$AUX  (RWE,RWE,RE,E)
VIO.DIR;1                        1/1        [50,5]      (RWE,RWE,RE,E)
VMS$COMMON.DIR;1                 3/3        [SYSTEM]    (RWE,RWE,RE,RE)
VOLSET.SYS;1                     0/0        [1,1]       (RWED,RWED,RE,)

Total of 27 files, 10448/10449 blocks.

Each disk has what you are calling a root directory.  Within it are top level 
directorys.  The "ROOT" can be addressed as [0,0], [000000], or [000,000]. 
Don't ask me why more than one method.  I don't know.

Do note that one should never, well almost never, place anything in that 
directory.  I've been guilty of doing so, when the disk is temporary, and will 
be re-inited sometime.  Usually some OS distribution files.

What is your specific question(s)?

-- 
David Froble                       Tel: 724-529-0450
Dave Froble Enterprises, Inc.      E-Mail: davef at tsoft-inc.com
DFE Ultralights, Inc.
170 Grimplin Road
Vanderbilt, PA  15486



More information about the Info-vax mailing list