how to use operating system commands
TRANSCRIPT
-
7/30/2019 How to Use Operating System Commands
1/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 Windows UNIX VMS CMS
List the files in a
directory
dir ls directory filelist, listfile
Copy a file copy, xcopy cp copy copyfile
Delete a file del (erase) rm delete erase
Rename or move a
file
rename, move mv rename rename
Display a file on
the screen
type cat type type
Display a filetype
with pausesbetween screen
fills
fnmore more,less type/page fn CMS always
pauses
Print a file print lp print print
Edit or create a
text file
edit, edlin pico edit xedit
Backup your files backup tar, cpio backup vmarch
Compare two files comp, fc diff differences compare
Find text in a file find grep search search
Sort a file sort sort sort sort
Retrieve a deleted
file
undelete vmarchive
Allow others to
see/use a file(s)
Disk: Share
as...(1)
chmod set protection dirm mdisk
Directory
Handling
Commands
DOS, NT UNIX VMS CMS
http://dii.utk.edu/scchttp://web.utk.edu/~traininghttp://web.utk.edu/~traininghttp://dii.utk.edu/scc -
7/30/2019 How to Use Operating System Commands
2/3
Change
directories
chdir (cd) cd set default CMS doesn't have
directories
Display current
directories
chdir (cd) pwd show default CMS doesn't have
directories
Make a newdirectory
mkdir (md) mkdir create/directory
Remove a
directory
rmdir (rd) rmdir delete
Utilities DOS, NT UNIX VMS CMS
Change password Change Password
(2)
chpw set password dirm pw,
cmspassw
Check remaining
disk space
chkdisk quota -v show quota query disk a
Clear screen cls clear type/page nl: Press the [clear]
key
Close a Window exit exit
Check system date date,time date show time query time
Log off of the
computer
File: Logoff(2) exit logout logoff
Format a new
disk(ette)
format initialize format format
File Transfer
Protocol
ftp ftp ftp ftp
Display online
manual
help man, man utcc help, help
software
help
Send or receivemail
mail(1) pine mail mail, note
Check amount of
memory available
mem vmstat show memory query storage
Set terminal type mode TERM=type set terminal terminal
Recall previous
commands
press the [up
arrow]
history press the [up
arrow]
use the retrieve
function
Define an alias alias define synonym
Capture a session
of commands
/responses
script set host/log spool, console
Send a file send/file sendfile
Set terminal
features
stty set terminal enter terminal
type:
Running
applications and
commands
DOS,NT UNIX VMS CMS
-
7/30/2019 How to Use Operating System Commands
3/3
Automate a series
of commands
fn .bat .profile, .kshrc @fn .com ft exec
Run a system
command
interactively
cmd cmd cmd cmd
Run a system
command as a
subprocess
start, cmd low(2) cmd & spawn/nowait cmd
Run a system
command in batch
start, cmd low(2) batch submit vmbatch
Set search path to
locate commands
path PATH=
Show which
programs are
executing
[Ctrl][Esc](3) ps show process
Stop an executing
program
End Task(3) kill stop hx
Creating and
running programs
DOS,NT UNIX VMS CMS
Compile a C
program
Depends on
version
cc cc cc
Compile a
FORTRAN
program
Depends on
version
f77 fortran fortvs2
Link or load
object modules
ld link load
Run a compiled
program in the
background
a.out & spawn/nowait vmbatch submit
Run a compiled
program
interactively
a.out run load
Submit a
command at a
specific time
at, cron scheduler