{"id":10,"date":"2010-01-03T00:18:46","date_gmt":"2010-01-03T00:18:46","guid":{"rendered":"http:\/\/ve2cuy.wordpress.com\/?page_id=10"},"modified":"2010-01-03T00:18:46","modified_gmt":"2010-01-03T00:18:46","slug":"openvms","status":"publish","type":"page","link":"https:\/\/ve2cuy.com\/blog\/index.php\/openvms\/","title":{"rendered":"OpenVMS"},"content":{"rendered":"<h2>Basic commands references<\/h2>\n<table class=\"vms\" style=\"width:630px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<th class=\"headunix\">UNIX (bash)<\/th>\n<th class=\"headvms\">VMS (DCL)<\/th>\n<th class=\"headrem\">remarks<\/th>\n<\/tr>\n<tr>\n<td class=\"unix\">man <em>cp<\/em><br \/>\nwhatis <em>cp<\/em><br \/>\napropos <em>cp<\/em><br \/>\n<em>cp<\/em> &#8211;help<\/td>\n<td class=\"vms\">HELP <em>COPY<\/em><\/td>\n<td class=\"rem\">tell me how to <em>copy<\/em><\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">Cntrl-C<\/td>\n<td class=\"vms\">Cntrl-Y<\/td>\n<td class=\"rem\">stop current program<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">exit <sub>or<\/sub> Cntrl-D<\/td>\n<td class=\"vms\">LOGOUT <sub>or<\/sub> LO<\/td>\n<td class=\"rem\">terminate interactive shell<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">df -k<\/td>\n<td class=\"vms\">SHOW DEVICE D <sub>or<\/sub> SH DEV D<\/td>\n<td class=\"rem\">show drives\/partitions<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">ps aux<\/td>\n<td class=\"vms\">SHOW SYSTEM <sub>or<\/sub> SH SYS<\/td>\n<td class=\"rem\">show processes<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">ps aux|grep <em>abc<\/em><\/td>\n<td class=\"vms\">PIPE SHOW SYSTEM | <sub>cont&#8230;<\/sub><br \/>\nSEARCH SYS$INPUT <em>ABC<\/em><\/td>\n<td class=\"rem\">show process <em>abc<\/em><\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">kill -15 <em>12345<\/em><br \/>\nkill -9 <em>12345<\/em><\/td>\n<td class=\"vms\">STOP PROC \/ID=<em>12345<\/em><\/td>\n<td class=\"rem\">stop process no. <em>12345<\/em><br \/>\n-15 is better, -9 should only be used<br \/>\nif the process doesn&rsquo;t react on -15<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h6>.<\/h6>\n<h2>Directory commands<\/h2>\n<table class=\"vms\" style=\"width:630px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<th class=\"headunix\">UNIX (bash)<\/th>\n<th class=\"headvms\">VMS (DCL)<\/th>\n<th class=\"headrem\">remarks<\/th>\n<\/tr>\n<tr>\n<td class=\"unix\">ls -la<em>\/abc\/xyz\/<\/em><\/td>\n<td class=\"vms\">DIR <em>[ABC.XYZ]<\/em><\/td>\n<td class=\"rem\">list directory <em>\/abc\/xyz\/<\/em><\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">cd <em>\/abc<\/em><\/td>\n<td class=\"vms\">SET DEFAULT <em>[ABC]<\/em> <sub>or<\/sub><br \/>\nSET DEF <em>[ABC]<\/em><\/td>\n<td class=\"rem\">change to directory <em>\/abc<\/em><\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">cd <em>\/abc<\/em><\/td>\n<td class=\"vms\">SET DEF <em>DKA200:[ABC]<\/em><\/td>\n<td class=\"rem\">VMS: change to directory abc<br \/>\non disk DKA200:<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">cd <em>abc\/xyz<\/em><\/td>\n<td class=\"vms\">SET DEF <em>[.ABC.XYZ]<\/em><\/td>\n<td class=\"rem\">change to directory below current directory<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">cd <em>\/<\/em><\/td>\n<td class=\"vms\">SET DEF <em>[000000]<\/em><\/td>\n<td class=\"rem\">change to root directory<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">cd <em>..<\/em><\/td>\n<td class=\"vms\">SET DEF <em>[-]<\/em><\/td>\n<td class=\"rem\">change to directory above current directory<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">cd<\/td>\n<td class=\"vms\">SET DEF SYS$LOGIN:<\/td>\n<td class=\"rem\">change to home directory<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">pwd<\/td>\n<td class=\"vms\">SHOW DEFAULT <sub>or<\/sub> SH DEF<\/td>\n<td class=\"rem\">show current directory<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">mkdir <em>\/abc\/xyz<\/em><\/td>\n<td class=\"vms\">CREATE \/DIR <em>[ABC.XYZ]<\/em><\/td>\n<td class=\"rem\">create directory <em>\/abc\/xyz<\/em><\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">rmdir <em>\/abc\/xyz<\/em><\/td>\n<td class=\"vms\">DELETE <em>[ABC]XYZ.DIR;<\/em><\/td>\n<td class=\"rem\">delete directory <em>\/abc\/xyz<\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h6>.<\/h6>\n<h2>File commands<\/h2>\n<table class=\"vms\" style=\"width:630px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<th class=\"headunix\">UNIX (bash)<\/th>\n<th class=\"headvms\">VMS (DCL)<\/th>\n<th class=\"headrem\">remarks<\/th>\n<\/tr>\n<tr>\n<td class=\"unix\">cat <em>abc.txt<\/em><\/td>\n<td class=\"vms\">TYPE <em>ABC.TXT<\/em><\/td>\n<td class=\"rem\">list file contents<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">more <em>abc.txt<\/em><\/td>\n<td class=\"vms\">TYPE\/PAGE <em>ABC.TXT<\/em><\/td>\n<td class=\"rem\">list file contents page by page<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">rm <em>abc.txt<\/em><\/td>\n<td class=\"vms\">DELETE <em>ABC.TXT;<\/em><br \/>\nDELETE <em>ABC.TXT;5<\/em><br \/>\nPURGE <em>ABC.TXT<\/em><br \/>\nPURGE \/KEEP=3 <em>ABC.TXT<\/em><\/td>\n<td class=\"rem\">delete highest version<br \/>\ndelete version no. 5<br \/>\ndelete any but higest version<br \/>\nkeep 3 highest versions<br \/>\nUNIX: delete file (there are no versions)<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">cp <em>abc.txt \/xyz\/<\/em><\/td>\n<td class=\"vms\">COPY <em>ABC.TXT DKA200:[XYZ]<\/em><\/td>\n<td class=\"rem\">copy file <em>abc.txt<\/em> into directory <em>\/xyz\/<\/em><\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">mv <em>abc.txt xyz.txt<\/em><\/td>\n<td class=\"vms\">RENAME <em>ABC.TXT XYZ.TXT<\/em><\/td>\n<td class=\"rem\">rename a file<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">ls -la <em>abc.*<\/em><\/td>\n<td class=\"vms\">DIR <em>ABC.*<\/em><\/td>\n<td class=\"rem\">list all files matching <em>abc.*<\/em><\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">find . -name <em>*.txt<\/em><\/td>\n<td class=\"vms\">DIR <em>[*&#8230;]*.TXT<\/em><\/td>\n<td class=\"rem\">list all files matching <em>*.txt<\/em> in any subdirectory<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">find \/ -name <em>*.txt<\/em><\/td>\n<td class=\"vms\">DIR <em>DKA200:[000000&#8230;]*.TXT<\/em><\/td>\n<td class=\"rem\">list all files matching <em>*.txt<\/em> in any directory<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">grep <em>text abc.txt<\/em><\/td>\n<td class=\"vms\">SEARCH <em>ABC.TXT \u00ab\u00a0text\u00a0\u00bb<\/em><\/td>\n<td class=\"rem\">search file for lowercase text<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">grep -i <em>text abc.txt<\/em><\/td>\n<td class=\"vms\">SEARCH <em>ABC.TXT TEXT<\/em><\/td>\n<td class=\"rem\">search again, but ignore case of text<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">diff <em>abc.txt xyz.txt<\/em><\/td>\n<td class=\"vms\">DIFF <em>ABC.TXT XYZ.TXT<\/em><br \/>\nDIFF <em>ABC.TXT\u00a0 ;-1<\/em><\/td>\n<td class=\"rem\">compare 2 files<br \/>\ncompare current and<br \/>\nprevious version<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h6>.<\/h6>\n<h2>Program and script commands<\/h2>\n<table class=\"vms\" style=\"width:630px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<th class=\"headunix\">UNIX (bash)<\/th>\n<th class=\"headvms\">VMS (DCL)<\/th>\n<th class=\"headrem\">remarks<\/th>\n<\/tr>\n<tr>\n<td class=\"unix\">. <em>abc.bash<\/em><\/td>\n<td class=\"vms\">@<em>ABC.COM<\/em><\/td>\n<td class=\"rem\">run script file in current context<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\"><em>abc.bash<\/em><\/td>\n<td class=\"vms\">SPAWN <em>ABC.COM<\/em><\/td>\n<td class=\"rem\">run script file in a subshell<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">bash -x <em>abc.bash<\/em><\/td>\n<td class=\"vms\">SET VERIFY<br \/>\n@<em>ABC.COM<\/em><br \/>\nSET NOVER<\/td>\n<td class=\"rem\">switch on trace<br \/>\nthen run script<br \/>\nthen switch off trace<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\"><em>abc<\/em><\/td>\n<td class=\"vms\">RUN <em>ABC.EXE<\/em><\/td>\n<td class=\"rem\">UNIX: run program <em>abc<\/em>. Search for it in<br \/>\nenvironment vaiable $PATH<br \/>\nVMS: run program <em>abc<\/em> found in current directory<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\"><em>\/xyz\/abc<\/em><\/td>\n<td class=\"vms\">RUN <em>$DKA200:[XYZ]ABC.EXE<\/em><\/td>\n<td class=\"rem\">run program <em>abc<\/em> in directoy <em>\/xyz<\/em><\/td>\n<\/tr>\n<tr>\n<td class=\"unix\"><em>\/xyz\/abc arg1 arg2<\/em><\/td>\n<td class=\"vms\"><em>ABC==\u00a0\u00bb$DKA200:[XYZ]ABC.EXE\u00a0\u00bb<br \/>\nABC arg1 \u00ab\u00a0arg2\u00a0\u00bb<\/em><\/td>\n<td class=\"rem\">run same program with 2 arguments.<br \/>\nVMS: first define symbol (dont forget <strong>$<\/strong>),<br \/>\nthen run program<br \/>\nwith uppercase arg1 and lowercase arg2<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">ls -la &gt;<em>xyz.txt<\/em><\/td>\n<td class=\"vms\">DIR \/OUTPUT=<em>XYZ.TXT<\/em><\/td>\n<td class=\"rem\">redirect output of shell command into a file<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\"><em>abc &gt;xyz.txt<\/em><\/td>\n<td class=\"vms\">DEFINE\/USER <sub>cont&#8230;<\/sub><br \/>\nSYS$OUTPUT <em>XYZ.TXT<\/em><br \/>\nRUN <em>ABC.EXE<\/em><\/td>\n<td class=\"rem\">redirect output of program into a file<br \/>\nVMS: redirect output for one command only,<br \/>\nthen run program<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\"><em>abc<\/em> |grep -i <em>xyz<\/em><\/td>\n<td class=\"vms\">PIPE RUN <em>ABC.EXE<\/em> | <sub>cont&#8230;<\/sub><br \/>\nSEARCH SYS$INPUT <em>XYZ<\/em><\/td>\n<td class=\"rem\">search output of program for <em>xyz<\/em> ignoring the case<br \/>\nVMS 7.x: <strong>PIPE<\/strong> allows UNIX style pipes<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h6>.<\/h6>\n<h2>Alias and environment variable commands<\/h2>\n<table class=\"vms\" style=\"width:630px;\" border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n<tbody>\n<tr>\n<th class=\"headunix\">UNIX (bash)<\/th>\n<th class=\"headvms\">VMS (DCL)<\/th>\n<th class=\"headrem\">remarks<\/th>\n<\/tr>\n<tr>\n<td class=\"unix\">alias <em>abc<\/em><\/td>\n<td class=\"vms\">SHOW SYMBOL <em>ABC<\/em><\/td>\n<td class=\"rem\">show alias or symbol <em>abc<\/em><\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">alias |grep <em>a<\/em><\/td>\n<td class=\"vms\">SHOW SYMBOL <em>*A*<\/em><\/td>\n<td class=\"rem\">show aliases or symbols containing an <em>a<\/em><\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">alias <em>rm=&rsquo;rm -i&rsquo;<\/em><\/td>\n<td class=\"vms\">DEL==<em>\u00ab\u00a0DELETE \/CONFIRM\u00a0\u00bb<\/em><\/td>\n<td class=\"rem\">define an alias or symbol<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">alias <em>rm=&rsquo;rm -i&rsquo;<\/em><\/td>\n<td class=\"vms\">DEL*E==<em>\u00ab\u00a0DELETE \/CONFIRM\u00a0\u00bb<\/em><\/td>\n<td class=\"rem\">same. VMS: Entering DEL or DELE calls the symbol.<br \/>\nEntering DELET or DELETE calls the normal<br \/>\nVMS DELETE command<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">export <em>home=&rsquo;\/abc\/&rsquo;<\/em><\/td>\n<td class=\"vms\">DEFINE <em>HOME DKA200:[ABC]<\/em><\/td>\n<td class=\"rem\">define an environment variable or logical name<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">echo $<em>home<\/em><\/td>\n<td class=\"vms\">SHOW LOG <em>home<\/em><\/td>\n<td class=\"rem\">show environment variable or logical name<\/td>\n<\/tr>\n<tr>\n<td class=\"unix\">ls -la <em>$home<\/em><\/td>\n<td class=\"vms\">DIR <em>HOME:<\/em><\/td>\n<td class=\"rem\">use environment variable or logical name<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>.<\/p>\n<pre style=\"width:880px;\">OpenVMS Commands with unix equivalents\n\nOpenVMS\t\t\t\tunix\t\tExplanation\/examples\n=========================================================================\nAPPEND\t\t\t\tcat\t\tConcatenates files.  If contencs of file1 need to be placed at the end of file2 issue the following unix command.cat file1 &gt;&gt; file2\nASSIGN or DEFINE\t\t= \t\t(Bourne &amp; Korn)set (C shell)\tin Bourne or Korn shell DIR = lsin C shell set DIR ls\nATTACH\t\t\t\tfg\nBACKUP\t\t\t\ttar or pax\tback up files into a tar file.\n  \/INIT\t\t\t\ttar -c or pax\tRestore files.\n  \/LIST\t\t\t\ttar -t\t\tList contents.\n  \/LOG\t\t\t\ttar -v\t\tReport progress.\n  \/NOREWIND\t\t\ttar -r\t\tWrite at end of existing backup (tar) files.\n  \/RECORD\t\t\ttar -m\t\tUpdate file^\u00d2s modification date upon restore.\nCOPY\t\t\t\tcp\t\tCopy a file\nCOPY\t\t\t\tftp\t\tCopy to\/from a nontrusted remote host.\nCOPY\t\t\t\trcp\t\tCopy to\/from a remote host.\nCOPY \/CONFIRM\t\t\tcp -i\t\tConfirm before copying.\nCREATE\t\t\t\ttouch\t\tCreate or update a file.\n  \/DIRECTORY\t\t\tmkdir\t\tCreate a subdirectory.\nCREATE filename\t\t\tcat &lt;&lt; filename\tCreate a file from the keyboard.\nCREATE filename\t\t\tcat\nDEBUG\t\t\t\tdbx\t\tDebug a program.\nDELETE\t\t\t\trm\t\tDelete a file.\nDELETE\t\t\t\trmdir\t\tDelete an empty subdirectory.\n  \/CONFIRM\t\t\trm -i\t\tConfirm deletion.\n  \/ENTRY\t\t\tlprm\t\tRemove queued line printer job.\n  \/QUEUE\t\t\tlprm -P\t\tRemove all jobs from the queue.\n  \/LOG\t\t\t\trm -e\t\tDelete files and list them as they are deleted.\n  \/SYMBOL\t\t\tunset\t\tGet rid of an environment variable.\nDIFFERENCES\t\t\tdiff\t\tDisplay all differences in files or directories.\n  \/MAXIMUM_DIFF= 1\t\tcmp\t\tDisplay first difference in two files (typically used with binary files).\n  \/NUMBER NL:\t\t\tcat -n\t        Display a file with line numbers.\n  \/SLP\t\t\t\tdiff - e\tGenerate editing changes for the ed editor.\nDIRECTORY\t\t\tls\t\tList files.\nDIRECTORY [...]\t\t\tls -R\t\tDo a recursive directory\/list of files.\nDIRECTORY [...]\t\t\tfind\t\tFind a file\nDIRECTORY *.DIR\t\t\tls -d\t\tList directory name(s) only ls -Rd\n  \/BY_OWNER\t\t\tls -l dir | grep owner\tList only those files owned by a specifed user.\n  \/COLUMN\t\t\tls -1\t\tList one file per line.\n  \/DATE\t\t\t\tls -c\t\tList by creation\/last modification.\n  \/FULL\t\t\t\tls -l\t\tLong listing.\n  \/FULL \/TOTAL\t\t\tdu\t\tSummarize disk usage.\n  \/MODIFIED \/SINCE [...]\tfind -mtime +n\tModified more than n days ago.\n  \/MODIFIED \/BEFORE [...]\tfind -mtime +n\tModified more than n days ago.\n  \/OWNER\t\t\tls -g\t\tInclude group (used with |).\n  \/SIZE\t\t\t\tls -s\t\tInclude size.\nDISMOUNT \/UNLOAD\t\tmt rewofmt offline\tRewind and unload the tape.\nDUMP\t\t\t\tod\t\tDump a file in various formats.\n  \/HEXADECIMAL\t\t\tod -h\t\tHexadecimal dump.\n  \/OCTAL\t\t\tod -o\t\tOctal dump.\nEDIT \/EDT,EDIT \/EVE, EVE\tvi\t\tScreen editor session.\nEDIT \/RECOVER\t\t\tvi -r\t\tRecover a screen editing session.\nEXCHANGE\t\t\tdd\t\tBack up, restore, and convert nonstandard files.\nEXIT\t\t\t\texit\t\tTerminate a script.\nHELP\t\t\t\tman\t\tDisplay online reference pages.\nHELP HINTS\t\t\tman -k topic\tDisplay a list of commands that correspond to the specified topic.\nINQUIRE \/NOPUNCTUATION\t\tread choice? \tPrompt for a responce and put the response into an environment variable.\nINITIALIZE device:\t\tfddisk -fmt device\tFormat a diskette.\nLIBRARY\t\t\t\tar\t\tLibrary maintainer.\n  \/CREATE\t\t\tar -cr\t\tCreate library.\n  \/EXTRACT\t\t\tar -x\t\tExtract modules.\n  \/INSERT\t\t\tar -q\t\tInsert modules.\n  \/LIST\t\t\t\tar -t\t\tList modules.\n  \/REPLACE\t\t\tar -r\t\tReplace modules.\nLINK\t\t\t\tld\t\tLink compiled source code into an executable image.\nlogin procedure LOGIN \/CLI\t.login.cshrc.profile.kshrc\tSet of commands automatically executed at login time.\n                                 On OpenVMS, LOGIN\/CLI specifies an alternate command language interpreter.\n\nLOGOUT\t\t\t\tlogout C shellexit Bourne &amp; Korn shell\tTerminate a terminal session.\nMAIL\t\t\t\tmail\t\tInvoke the mail utility.\nMERGE\t\t\t\tsort -m\t\tMerge sorted files.\nMOUNT\t\t\t\tmount\t\tMount a tape.\nON COUNTROL_C THEN\t\ttrap 2\t\tEnable handler for Stop signal.\nON CONTROL_Y\t\t\tonintr\t\tOn interrupt.\nPHONE\t\t\t\ttalk tty\tname\tCommunicate interactively with another user.\nPRINT\t\t\t\tlpr\t\tPrint a file on the default line printer.\n  \/COPIES=N\t\t\tlpr -#n\t\tPrint n copies.\n  \/DELETE\t\t\tlpr -r\t\tRemove file after printing\nPRINT commands cont.\n  \/FORM\t\t\t\tlpr -ln\t\tMake page n lines (default = 66)\n  \/FORM\t\t\t\tlpr -n\t\tPrint n column output.\n  \/FORM\t\t\t\tlpr -wn\t\tSet line width to n\n  \/HEADER\t\t\tpr -h string | lpr\tPrint a header on each page.\n  \/NAME=jobname\t\t\tlpr -Jjobname\tInclude job name on the first page of the job.\n  \/NOFLAG\t\t\tlpr -h\t\tPrint with no header page.\n  \/NOTIFY\t\t\tlpr -m\t\tSend mail upon completion.\n  \/PAGES=(n,^\u00d4^\u00d4)\t\tlpr +n\t\tBegin printing on page n.\n  \/QUEUE\t\t\tlpr -Pqueue\tPrint a file on the specified queue.\nREAD\t\t\t\tread\t\tRead input (korn shell)\nRECALL \/ALL\t\t\thistory\t\tRecall command lines\nREPLY \/USER\t\t\twrite\t\tSend a brief message to a logged-in user\nRENAME\tmv\t\t\tmove\/rename a file(s)\n   \/CONFIRM\t\t\tmv -i\t\tconfirm the move\/rename of a file(s)\nSEARCH\t\t\t\tgrep\t\tSearch files for strings.\n   \/MATCH=NOR\t\t\tgrep -v\t\tList only lines that do not match\n   \/NOEXACT\t\t\tgrep -i\t\tIgnore case distinctions.\n   \/NUMBERS\t\t\tgrep -n\t\tPrecede each match with line number.\n   \/STATISTICS\t\t\tgrep -c\t\tList only a file name that contains match\n  \/WINDOW = 0\t\t\tgrep -l\t\tReturn only file name(s) that contains match\n  file pat^\u00d2rn \/WINDOW=5\tmore -5 \t+\/pat^\u00d2rn file\tDisplay search line plus two lines before and after. (Terminate with q).\n  file pat^\u00d2rn \/WIND=(5,0)\tcat file | more -5+pat^\u00d2rn\tDisplay search line plus next five lines.\nSET DEFAULT\t\t\tcd\t\tChange directory.\nSET FILE\/OWNER\t\t\tchgrp\t\tChange group ownership of a file.\nSET HOST\t\t\trlogin\t\tNetwork login to trusted host.\nSET HOST \/DTE\t\t\ttip\t\tDial remote host.\nSET HOST 0 \/LOG\t\t\tscript\t\tRecord a transcript of a terminal session.\nSET PASSWORD\t\t\tpasswd\t\tChange you local password.\nSET PROCESS \/PRIORITY\t\tnice or renice\tChange the priority of a process.\nSET PROTECTION\t\t\tchmod\t\tChange file protection.\n   \/DEFAULT\t\t\tumask\t\tChange default protection for files not yet created.\nSET TERMINAL\t\t\ttset or stty\tSet terminal characteristics.\nSET VERIFY\t\t\tksh -x orcsh -x\tVerify command or script execution.  Echo after variable substitution.\nSHOW DEFAULT\t\t\tpwd\t\tDisplay current directory.\nSHOW DEVICE \/FULL\t\tdf filesystem\tDisplay information on a file system\nSHOW LOGICAL\t\t\tprintenv\tDisplay environment characteristics.\nSHOW PROCESS \/ALL\t\tps -l\t\tDislay all processes on system.\nSHOW \/QUEUE\t\t\tlpq\t\tDisplay default print queue status.\nSHOW STATUS\t\t\ttime\t\tDisplay resources used by a process.\nSHOw TIME\t\t\tdate\t\tDisplay date and time\nSHOW USERS\t\t\twho\t\tDisplay the list of current system users.\nSORT\t\t\t\tsort\t\tSort and merge.\n   \/KEY\tsort \t\t\t+fskip.cskip \/-fskip.cskip\tStarting\/ending porint of sort key.\n   \/OUTPUT\t\t\tsort -o file\tDirect output to file.\nSPAWN \/NOWAIT\t\t\tbg\t\tMove a process to the background.\nSTOP \/ID\t\t\tkill -9\t\tRemove a process.\nSUBMIT\t\t\t\tat\t\tStart a process at a latter time.\nTYPE\t\t\t\tcat\t\tDisplay a file\n   \/PAGE\t\t\tmore\t\tDisplay a file, pausing after each page.\n   \/PAGE NL:\t\t\tclear\t\tClear the terminal screen.\nWRITE\t\t\t\t\/bin\/echovar &gt; file\tCreate a file and write a string or the contents of a variable to it.\nWRITE\t\t\t\t\/bin\/echovar &gt;&gt; file\tAppend a string or the contents of a variable to an existing file.\nWRITE SYS$OUTPUT\t\techo (c Shell)print (Korn)\tWrite to standard output.\n\nOpenVMS Mathematical Operators Function Equivalents\n====================================================\nOpenVMS\t\tunix\tExplanation\n.EQ., .EQS.\t==\tEqual to\n.NE., .NES.\t!\tNot equal to\n.AND.\t\t&amp;&amp;\tBoolean and\n.OR.\t\t||\tBoolean or\n.GT., .GTS.\t&gt;\tGreater than\n.GE., .GES.\t&gt;=\tGreater than or equal to\n.LT., .LTS.\t&lt;\tLess than\n.LE., .LES.\t&lt;=\tLess than or euqal to\n+\t\t+\tadd\n-\t\t-\tSubtract\n*\t\t*\tMultiply\n\/\t\t\/\tDivide\nvar + 1\t\tvar++\tIncrement by 1\nvar - 1\t\tvar--\tDecrement by 1\n\t\t%\tModulo\n\t\t&gt;&gt;\tRight bit shift\n\t\t&lt;&lt;\tLeft bit shift\n.NOT.\t\t~\t1^\u00d2s complement\n.NOT.\t\t!\tLogical negation\n.OR.\t\t|\tInclusive OR\n\t\t^\tExclusive OR\n.AND.\t\t&amp;\tAnd\n\nOpenVMS Lexical Function and unix Equivalents\n=============================================\nOpenVMS\t\t\t\t\tunix\t\tExplanation\nF$ENVIRONMENT(\"INTERACTIVE\")\t\ttty -s\t\tDetermine if you are an interactive user.\nF$EXTRACT(start, length, string)\tcut -c\t\tLocate fields in a test string and write them out.\nF$ELEMENT(element#, delimiter, string)\tcut -f -d awk\tLocate delimited fields in a test string.\nF$ENVIRONMENT(\"PROCEDURE\")\t\t$0 (Korn)$arg [0] (C)\tGet name of currently executing script.\nF$TRANSLATE(\"SYS$SYSDEVICE\")\t\tsizer -r\tGet name of the device from which the operating system bootstrapped.\nF$GETDVI(\"TT:\", \"DEVNAM\")\t\ttty -s\t\tDetermine the name of the terminal you are using.\nF$GETSYI(\"HW_NAME\")\t\t\tsizer -c\tGet model name of the CPU\nF$GETSYI(\"HW_MODEL\")F$GETSYI(\"CPU\")\tsizer -wt\tReturn workstation device type\nF$GETSYI(\"VERSION\")\t\t\tsizer -bstrings \/vmunix | grep ^\u00d1(Rev^\u00d2uname -a\tDetermine booted kernel^\u00d2s file name and system version.\nF$GETSYI(\"PHYSICALPAGES\")\t\tuerf -r 300 -R | grep physical (+2)wc -c\/dev\/mem\tGet the physical memory on a system.\nF$GETSYI(\"BOOTTIME\")\t\t\twho -b\tGet system boot time.\n\nsee: <a href=\"http:\/\/h71000.www7.hp.com\/doc\/83final\/9996\/9996pro_102.html\">http:\/\/h71000.www7.hp.com\/doc\/83final\/9996\/9996pro_102.html<\/a>\n\nunix Branching statements\n\nDCL command procedures rely on the statements if, gosub, call, and goto for program branching.\nThe shells under unix offer several branching statements.\n\nShell\tBranching Statements Offered\n====================================\ncsh\tif, goto, while, foreach, switch, shift\nksh\tdo, case, elif, for, function, if, select, time, until, while\nsh\tif, for, while, until, case\n\nDebugging Shell Scripts\nDebugging of shell scripts is done by invoking ksh or sh scripts with the -x and -v flags.\nDebuging of C shell scripts by invoking them with the -v, -V, -x or -X flags.\nThe result is like using the OpenVMS command set verify.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Basic commands references UNIX (bash) VMS (DCL) remarks man cp whatis cp apropos cp cp &#8211;help HELP COPY tell me how to copy Cntrl-C Cntrl-Y stop current program exit or Cntrl-D LOGOUT or LO terminate interactive shell df -k SHOW DEVICE D or SH DEV D show drives\/partitions ps aux SHOW SYSTEM or SH SYS [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":6,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-10","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ve2cuy.com\/blog\/index.php\/wp-json\/wp\/v2\/pages\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ve2cuy.com\/blog\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ve2cuy.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ve2cuy.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ve2cuy.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":0,"href":"https:\/\/ve2cuy.com\/blog\/index.php\/wp-json\/wp\/v2\/pages\/10\/revisions"}],"wp:attachment":[{"href":"https:\/\/ve2cuy.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}