From: CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 3-MAY-1991 00:54:47.07 To: ARISIA::EVERHART CC: Subj: Re: VMS is painless, really! [Re: UNIX hacker on VMS] From: RELAY-INFO-VAX@CRVAX.SRI.COM@SMTP@CRDGW2 To: Everhart@Arisia@MRGATE Received: by crdgw1.ge.com (5.57/GE 1.97) id AA27619; Fri, 3 May 91 00:39:53 EDT Received: From UCBVAX.BERKELEY.EDU by CRVAX.SRI.COM with TCP; Thu, 2 MAY 91 18:45:28 PDT Received: by ucbvax.Berkeley.EDU (5.63/1.42) id AA21358; Thu, 2 May 91 18:35:35 -0700 Received: from USENET by ucbvax.Berkeley.EDU with netnews for info-vax@kl.sri.com (info-vax@kl.sri.com) (contact usenet@ucbvax.Berkeley.EDU if you have questions) Date: 2 May 91 11:13:49 GMT From: agate!bionet!uwm.edu!cs.utexas.edu!usc!samsung!merrimack.edu!rand@ucbvax.Berkeley.EDU Organization: Merrimack College, No. Andover, MA Subject: Re: VMS is painless, really! [Re: UNIX hacker on VMS] Message-Id: <1991May2.111349.21774@merrimack.edu> References: <1071@venice.SEDD.TRW.COM>, Sender: info-vax-request@kl.sri.com To: info-vax@kl.sri.com In article , brendan@cs.widener.edu (Brendan Kehoe) writes: > In <1071@venice.SEDD.TRW.COM>, ries@venice.sedd.trw.com writes: >>I am an eight-year experienced Unix person, who for reasons beyond my >>immediate control, need's to develop some C language programs on a VAX >>Station under VMS. > > As far as the commands go, there are direct parallels for all of > them .. take the time to learn VMS. > > cp -> copy > mv -> rename > cd -> set def (or put CD :== SET DEF in your login.com) [and some more good parallels] Here's something I got from the net a while back--a help file: 1 Unix Conversion table for UNIX to VMS Commands The subtopics of this help screen provide the user with a way of translating many Unix commands to VMS commands. The following is a list of equivalent commands that are suggested, hit return till you see the prompt: Topic: and then the suggested VMS command for more information. VMS is a case insensative operating system and abbreviations are commonly accepted for commands. Many of the unix commands that are not available in VMS can be used through Eunice. See FORUM or type UNIX for more information. 2 & SPAWN /NOWAIT . . 2 > /OUTPUT=filename or DEFINE/USER SYS$OUTPUT filename . Some DCL commands allow a command parameter of /OUTPUT=filename For those programs which do not, the output may be put into a file by first typing: DEFINE/USER SYS$OUTPUT filename This will redirect the output of the next program run into the specified file. If the DCL command is an internal command to DCL (meaning that no program actually runs, e.g. RECALL/ALL) you must do the following: DEFINE SYS$OUTPUT filename issue the necessary command then DEASSIGN SYS$OUTPUT . 2 cat TYPE . . 2 cc CC, LINK . . 2 cd SET DEFAULT SYS$LOGIN . cd / SET DEFAULT [000000] . cd .. SET DEFAULT [-] . cd dirname SET DEFAULT pathname . pathname . Pathname examples: . Home user directory: SET DEFAULT [username] . up 1 level: SET DEFAULT [-] . down 1 level: SET DEFAULT [.dirname] . Top directory: SET DEFAULT [000000] . Full path: SET DEFAULT SIO$USERS1:[username.dirname] . . 2 chmod SET FILE /PROTECTION=(...) filename . . 2 cmp DIFFERENCES . . 2 cp COPY oldname newname . . 2 date SHOW TIME . . 2 diff DIFFERENCES . . 2 du SHOW QUOTA . . 2 echo WRITE SYS$OUTPUT . . 2 edit EDIT filename . . 2 ex EDIT filename . . 2 f77 FORTRAN filename . . 2 fg CONTINUE . . 2 find DIR [...]filename.ext;* . . 2 finger FINGER username . . 2 grep SEARCH filename search_string . . 2 help HELP topic/command or FORUM . . 2 kermit KERMIT . . 2 kill STOP PROCESS /ID=pid or DELETE /ENTRY=jobid queuename. . 2 ld LINK filename . . 2 lp PRINT filename or IMPRINT filename on laserprinter . . 2 lpq SHOW QUEUE SYS$PRINT . . 2 lprm DELETE /ENTRY=jobno print_queue_name . Where JOBNO is determined by SHOW QUEUE print_queue_name 2 lpstat SHOW QUEUE SYS$PRINT . . 2 ls DIRECTORY . . 2 mail MAIL . . 2 man HELP topic/command or FORUM . . 2 mkdir CREATE DIRECTORY [.dirname] . . 2 more TYPE /PAGE filename . . 2 mv RENAME oldname newname . . 2 nl SEARCH /NUMBER filename "" . . 2 page TYPE /PAGE . . 2 passwd SET PASSWORD . . You will be prompted for your old password then your . new password 2 times for verification . . 2 ps SHOW SYSTEM . . 2 pwd SHOW DEFAULT . . 2 rm DELETE filename (You must specify a version number) . . 2 rmdir DELETE directory . . To delete a directory, 1 change the protection to delete . 2 delete the directory . . $set file /protection=(o:rwed) dirname.dir . $delete dirname.dir;* . . 2 sdb DEBUG . . 2 set SHOW SYMBOL /GLOBAL /ALL . . 2 set setable_item SET argument . . 2 size DIRECTORY /SIZE . . 2 sleep WAIT time . . 2 sort SORT filename . . 2 source @filename.COM . . 2 spell SPELL or CRITICIZE . . 2 talk PHONE username . . 2 tar BACKUP . . 2 time Control T . . 2 touch SET FILE /PROTECTION=(OWNER:RWED) FILENAME . . 2 tset SET TERM /device_type . . Some vaild Device types: . VT100 . VT52 . VT200 . . To have the computer try to figure out the current terminal type . use the command: . $SET TERM /INQUIRE . . 2 uucp MAIL . . 2 vi EDIT filename . . 2 view EDIT filename . . 2 w FINGER, SHOW SYSTEM . . 2 who SHOW USERS .