Ok, Lets start w/ VMS here's a useful list of VMS / Unix equivalency commands
APPENDcat concatenates files. If contents of file1 need to be placed at the end of file2 issue the following unix command.cat file1 >> file2x=,x:== (Bourne and Korn) , set (C shell)x==,x:== same as = followed by exportASSIGN,DEFINEif file,directory alias definition: ln , ln -s hard and soft linksDEFINE variable definitions (no real equivalent!)DIRECTORYlsATTACHfgBACKUPtar or pax : back up files into a tar file.- /INIT
- tar -c or pax : Restore files.
- /LIST
- tar -t : List contents.
- /LOG
- tar -v : Report progress.
- /NOREWIND
- tar -r : Write at end of existing backup (tar) files.
- /RECORD
- tar -m : Update file's modification date upon restore.
COPYcp : Copy a fileCOPYftp : Copy to/from a nontrusted remote host.COPYrcp : Copy to/from a trusted remote host.COPY/CONFIRMcp -i : Confirm before copying.CREATEtouch : Create or update a file.CREATE/DIRECTORYmkdir : Create a subdirectory.CREATE filenamecat <CREATE filenamecatDEBUGdbx : Debug a program.DELETErm : Delete a file.- /CONFIRM
- rm -i : Confirm deletion.
- /ENTRY
- lprm : Remove queued line printer job.
- /QUEUE
- lprm -P : Remove all jobs from the queue.
- /LOG
- rm -e : Delete files and list them as they are deleted.
- /SYMBOL
- unset : Get rid of an environment variable.
DELETErmdir : Delete an empty subdirectory.DIFFERENCESdiff : Display all differences in files or directories.DIFF/MAXIMUM_DIFF=1cmp : Display first difference in two files (typically used with binary files).DIFF/NUMBER NL:cat -n : Display a file with line numbers.DIFF/SLPdiff - e : Generate editing changes for the ed editor.DIRECTORY [...]ls -R : Do a recursive directory/list of files.DIRECTORY [...]find : Find a fileDIRECTORY *.DIRls -d : List directory name(s) only ls -RdDIRECTORYls : List files.- /BY_OWNER
- ls -l dir | grep owner : List only those files owned by a specifed user.
- /COLUMN
- ls -1 : List one file per line.
- /DATE
- ls -c : List by creation/last modification.
- /FULL
- ls -l : Long listing.
- /TOTAL
- du : Summarize disk usage.
- /MODIFIED/SINCE [...]
- find -mtime +n : Modified more than n days ago.
- /MODIFIED /BEFORE [...]
- find -mtime +n : Modified more than n days ago.
- /OWNER
- ls -g : Include group (used with |).
- /SIZE
- ls -s : Include size.
DISMOUNT/UNLOADmt rewofmt offline : Rewind and unload the tape.DUMPod : Dump a file in various formats.- /HEXADECIMAL
- od -h : Hexadecimal dump.
- /OCTAL
- od -o : Octal dump.
EDIT/EDT,EDIT/EVE,EVEvi : Screen editor session.EDIT/RECOVERvi -r : Recover a screen editing session.EXCHANGEdd : Back up, restore, and convert nonstandard files.EXITexit : Terminate a script.HELPman : Display online reference pages.HELP HINTSman -k topic : Display a list of commands that correspond to the specified topic.INQUIRE/NOPUNCTUATIONread choice? : Prompt for a responce and put the response into an environment variable.INITIALIZE device:fddisk -fmt device : Format a diskette.LIBRARYar : Library maintainer.- /CREATE
- ar -cr : Create library.
- /EXTRACT
- ar -x : Extract modules.
- /INSERT
- ar -q : Insert modules.
- /LIST
- ar -t : List modules.
- /REPLACE
- ar -r : Replace modules.
LINKld : Link compiled source code into an executable image.login procedure.login .cshrc .profile .kshrc
Set of commands automatically executed at login time.
On OpenVMS, LOGIN/CLI specifies an alternate command language interpreter.LOGOUTlogout C shell exit Bourne and Korn shell Terminate a terminal session.MAILmail : Invoke the mail utility.MERGEsort -m : Merge sorted files.MOUNTmount : Mount a tape.ON COUNTROL_C THENtrap 2 : Enable handler for Stop signal.ON CONTROL_Yonintr : On interrupt.PHONEtalk tty name : Communicate interactively with another user.PRINTlpr : Print a file on the default line printer.- /COPIES=n
- lpr -#n : Print n copies.
- /DELETE
- lpr -r : Remove file after printing
- /FORM
- lpr -ln : Make page n lines (default = 66)
- /FORM
- lpr -n : Print n column output.
- /FORM
- lpr -wn : Set line width to n
- /HEADER
- pr -h string | lpr : Print a header on each page.
- /NAME=jobname
- lpr -Jjobname : Include job name on the first page of the job.
- /NOFLAG
- lpr -h : Print with no header page.
- /NOTIFY
- lpr -m : Send mail upon completion.
- /PAGES=(n,?)
- lpr +n : Begin printing on page n.
- /QUEUE
- lpr -Pqueue : Print a file on the specified queue.
READread : Read input (korn shell)RECALL/ALLhistory : Recall command linesREPLY/USERwrite : Send a brief message to a logged-in userRENAMEmv : move/rename a file(s)RENAME/CONFIRMmv -i : confirm the move/rename of a file(s)SEARCHgrep : Search files for strings.- /MATCH=NOR
- grep -v : List only lines that do not match
- /NOEXACT
- grep -i : Ignore case distinctions.
- /NUMBERS
- grep -n : Precede each match with line number.
- /STATISTICS
- grep -c : List only a file name that contains match
- /WINDOW=0
- grep -l : Return only file name(s) that contains match
- file pattern/WINDOW=5
- more -5 +/pattern file : Display search line plus two lines before and after. (Terminate with q).
- file pattern/WIND=(5,0)
- cat file | more -5+pattern : Display search line plus next five lines.
You can find more equivalency lists at :
1 comment:
Genial post and this fill someone in on helped me alot in my college assignement. Say thank you you as your information.
Post a Comment