You are on page 1of 3

How to Use Operating System Commands

The Statistical Consulting Center

The table below compares the operating system commands of Windows, UNIX, VMS and CMS. If you know one operating system and need to learn another, this type of guide can be very helpful. If you need help with operating system commands, contact the HelpDesk at 974-9900. If you need assistance with statistical, graphical, mapping or related research computing, contact the Statistical Consulting Center via the Helpdesk at 974-9900. We will do our best to get back to you within 24 hours All UT students, faculty and staff can receive up to 10 free hours of statistical, graphical, mapping and computing assistance each semester. See oit.utk.edu/scc for details. We also offer training each semester on a variety of statistical, graphical, mapping and computing subjects. See web.utk.edu/~training for details. Task List the files in a directory Copy a file Delete a file Rename or move a file Display a file on the screen Display a filetype with pauses between screen fills Print a file Edit or create a text file Backup your files Compare two files Find text in a file Sort a file Retrieve a deleted file Allow others to see/use a file(s) Directory Handling Commands Windows dir copy, xcopy del (erase) rename, move type fnmore UNIX ls cp rm mv cat more,less VMS directory copy delete rename type type/page fn CMS filelist, listfile copyfile erase rename type CMS always pauses print xedit vmarch compare search sort vmarchive dirm mdisk CMS

print edit, edlin backup comp, fc find sort undelete Disk: Share as...(1) DOS, NT

lp pico tar, cpio diff grep sort

print edit backup differences search sort

chmod UNIX

set protection VMS

Change directories Display current directories Make a new directory Remove a directory Utilities Change password Check remaining disk space Clear screen Close a Window Check system date Log off of the computer Format a new disk(ette) File Transfer Protocol Display online manual Send or receive mail Check amount of memory available Set terminal type Recall previous commands Define an alias Capture a session of commands /responses Send a file Set terminal features Running applications and commands

chdir (cd) chdir (cd) mkdir (md) rmdir (rd) DOS, NT Change Password (2) chkdisk cls exit date,time File: Logoff(2) format ftp help mail(1) mem mode press the [up arrow]

cd pwd mkdir rmdir UNIX chpw quota -v clear exit date exit initialize ftp man, man utcc pine vmstat TERM=type history alias script

set default show default create/directory delete VMS set password show quota type/page nl:

CMS doesn't have directories CMS doesn't have directories

CMS dirm pw, cmspassw query disk a Press the [clear] key query time logoff format ftp help mail, note query storage terminal use the retrieve function synonym spool, console sendfile enter terminal type: CMS

show time logout format ftp help, help software mail show memory set terminal press the [up arrow] define set host/log send/file set terminal VMS

stty DOS,NT UNIX

Automate a series of commands Run a system command interactively Run a system command as a subprocess Run a system command in batch Set search path to locate commands Show which programs are executing Stop an executing program Creating and running programs Compile a C program Compile a FORTRAN program Link or load object modules Run a compiled program in the background Run a compiled program interactively Submit a command at a specific time

fn .bat cmd start, cmd low(2) start, cmd low(2) path [Ctrl][Esc](3) End Task(3) DOS,NT Depends on version Depends on version

.profile, .kshrc cmd

@fn .com cmd

ft exec cmd

cmd & spawn/nowait cmd batch PATH= ps kill UNIX cc f77 ld a.out & a.out at, cron show process stop VMS cc fortran link spawn/nowait run scheduler hx CMS cc fortvs2 load vmbatch submit load submit vmbatch

You might also like