Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
TRSDOS
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Commands ==== Although MS-DOS owes its heritage most closely to CP/M and thence to [[TOPS-10]], many of the file manipulation commands are similar to those of TRSDOS. Some of the following TRSDOS commands exist on disk as distinct program files (DIR/CMD, FORMAT/CMD, BACKUP/CMD) while all others exist as modules condensed into the library files (technically Partitioned Data Sets or PDSs) SYS6/SYS, SYS7/SYS and SYS8/SYS; these include the TRSDOS commands CAT, COPY, LIST, REMOVE, RENAME etc. Some typical TRSDOS utilities: {| class="wikitable" |+ TRSDOS commands and counterparts in other operating systems |----- ! Command ! [[DOS]], [[OS/2]], [[Microsoft Windows|Windows]] ! [[Unix]], [[Unix-like]] ! Description |----- ! style="font-family:monospace;" | APPEND | style="font-family:monospace;" | [[TYPE (DOS command)|type]] ''file1'' '''>>''' ''file2'' || style="font-family:monospace;" | [[cat (Unix)|cat]] ''file'' '''>>''' ''file2'' | Under TRSDOS 6.x, the source of the appended data may be a system input device such as *KI. Thus whatever is typed at the keyboard will be appended to the target file. Use RESET *KI to end this function. |----- ! style="font-family:monospace;" | ATTRIB | style="font-family:monospace;" | [[attrib]] || style="font-family:monospace;" | [[chmod]] | ATTRIB, PROT, and the ''chmod'' UNIX command are all somewhat different in their semantics. UNIX/Linux is multi-user and each user can control read, write, and execute [[File-system permissions|permissions]] on his or her own files and directories. MS-DOS is single user and the file attributes for "read-only," "hidden," and "system" are advisory in nature. TRSDOS was single user. TRSDOS 6.x ATTRIB can modify protection status of all files on a disk volume if the disk's master password is given. All user and owner passwords on visible files can be removed with a single ATTRIB command. |----- ! style="font-family:monospace;" | AUTO | style="font-family:monospace;" | [[AUTOEXEC.BAT]] || style="font-family:monospace;" | ~/.profile or ~/.login or /etc/rc* | The AUTO command sets an automatic command to be executed on TRSDOS boot; under MS-DOS the special, reserved file named '''AUTOEXEC.BAT''' contained a list of such commands. TRSDOS/LS-DOS 6.x support Job Control Language in which any text file with the suffix /JCL could batch process (using the '''DO''' command) any number of executable program files. Such a file could be the object of an AUTO command. On UNIX a set of one or more '''''rc''''' files under ''/etc/'' are a set of boot time "'''r'''un '''c'''ommands" and special "dot files" in a user's home directory are run for each time that a given user logs into the system. UNIX supports many other "dotfiles" for many of its commands which are akin to the [[Macintosh]] "preferences" folder contents. |----- ! style="font-family:monospace;" | BACKUP | style="font-family:monospace;" | [[diskcopy]], [[tar (computing)|tar]] || style="font-family:monospace;" | tar, [[cpio]], [[pax (command)|pax]], (many others) | TRSDOS/LS-DOS 6.x include the BACKUP/CMD utility which can mass copy files specified by partial filename matches, file suffixes (e.g. such as /CMD or /BAS), or by file date. BACKUP can be made to first query for permission to copy each file with the ''(Q=Y))'' parameter. On single drive computers the X parameter will permit copying between two disks by prompting the user when to switch disks in the drive. |----- ! style="font-family:monospace;" | CAT | | | The TRSDOS CATalog command displays one line giving information on the selected drive (disk name, capacity, date) and a listing of the filenames with their extensions present on the disk. This is an abbreviated version of the DIRectory command, which permits more file information to be presented on a single video screen with less need for scrolling to view the contents of the entire disk. CAT uses the same parameters as DIR for viewing INVisible and SYStem files. |----- ! style="font-family:monospace;" | CLOCK | style="font-family:monospace;" | [[prompt (computing)|prompt]] $t * || style="font-family:monospace;" | in some shells: PS1="...\t..." * | CLOCK installs an interrupt task that shows the system time in the upper corner of the display; no exactly corresponding feature exists in MS-DOS or UNIX, though many programs provided similar features for DOS and the common UNIX shells could embed the time into their user-defined "prompt string". |----- ! style="font-family:monospace;" | CLS | style="font-family:monospace;" | [[cls (command)|cls]] || style="font-family:monospace;" | [[clear (Unix)|clear]] | Clear video display and home cursor |----- ! style="font-family:monospace;" | COMM | | | Under TRSDOS 6.x, COMM/CMD is a [[terminal program]] that establishes communications between the Model 4's [[RS-232C]] serial port and that of another computer, a modem or serial printer/plotter. Must first install the driver for the serial port, COM/DVR using the SET command, which establishes the system *CL (Comm Line) device. Use SETCOM/CMD to set parameters for communication. |----- ! style="font-family:monospace;" | COPY | style="font-family:monospace;" | [[copy (command)|copy]] || style="font-family:monospace;" | [[cp (Unix)|cp]] | Under TRSDOS 6.x, the COPY command can be used to transfer information between system devices as well as disk files. For example, COPY *KI *PR will turn the computer (if connected to an active line printer) into a typewriter, as each character typed at the keyboard is sent to the *PR device as well as the *DO device. This is effectively the same as the TRSDOS command LINK *KI *PR. Use RESET *KI to turn off this function. |----- ! style="font-family:monospace;" | DEBUG | style="font-family:monospace;" | [[debug (command)|debug]] || style="font-family:monospace;" | | Optional ''filespec'' also performs LOAD function on a target /CMD machine code program; ''(ext)'' loads additional debugger commands from system file SYS9/SYS |----- ! style="font-family:monospace;" | DEVICE | | | Displays the status of the system drives and system logical devices, as well as the existing ROUTEs and LINKs between them. |----- ! style="font-family:monospace;" | DIR | style="font-family:monospace;" | [[dir (command)|dir]] || style="font-family:monospace;" | [[ls]] | DIR displays the same files that would be selected by the BACKUP command, and so is useful as a preview tool. Parameter ''(p)'' sends the directory listing to the line printer, which in turn can be ROUTEd or LINKed to a disk file. |----- ! style="font-family:monospace;" | DISKCOPY | style="font-family:monospace;" | [[diskcopy]] || style="font-family:monospace;" | | LS-DOS 6.3 includes the DISKCOPY/CMD utility which makes an exact copy of a source disk by formatting and copying to a blank destination disk. |----- ! style="font-family:monospace;" | FILTER | | | FILTER is used to attach a /FLT filter program to a system device. Three included with TRSDOS 6.x are FORMS/FLT which is used for formatted printing, KSM/FLT which is a keyboard macro facility, and CLICK/FLT which causes the Model 4 speaker to beep every time a key is pressed. |----- ! style="font-family:monospace;" | FORMAT | style="font-family:monospace;" | [[format (command)|format]] || style="font-family:monospace;" | [[mkfs]] | Defaults to 40 track, single-sided on Models III and 4, double-sided on Model 4D. Number of tracks per side can be specified using parameter (CYL=''nn''). All Model 4Ds and most Model 4s can format 42 tracks although drives supplied by Radio Shack are nominally 40 track. |----- ! style="font-family:monospace;" | FORMS | | |Under TRSDOS 6.x, sets parameters for data sent to the system *PR device after the FORMS filter has been attached to the *PR device. These include number of characters per printed line, lines per page, margins, added linefeed characters, etc. |----- ! style="font-family:monospace;" | FREE | style="font-family:monospace;" | [[chkdsk]] || style="font-family:monospace;" | [[df (Unix)|df]] | TRSDOS 6.x displays [[ASCII]] map showing disk granules occupied by active files with xxxxxx; the directory cylinder is shown as DDDDDD. |----- ! style="font-family:monospace;" | GETDISK/GETTAPE | {{dunno}} || style="font-family:monospace;" | [[dd (Unix)|dd]] | |----- ! style="font-family:monospace;" | KILL | style="font-family:monospace;" | [[del (command)|del]] || style="font-family:monospace;" | [[rm (Unix)|rm]] | Starting with TRSDOS 6.0 KILL was replaced by REMOVE (per LSI Journal article "Thou Shalt Not Kill") |----- ! style="font-family:monospace;" | LIST | style="font-family:monospace;" | [[TYPE (DOS command)|type]] || style="font-family:monospace;" | [[cat (Unix)|cat]] | Under TRSDOS/LS-DOS 6.x, the LIST command can display or print the contents of non-ASCII files with the HEX parameter. The listing can be paused using {{key press|SHIFT|@}}. | |----- ! style="font-family:monospace;" | LOAD ''filespec'' | {{no2|(no equivalent)}} || {{no2|(no equivalent)}} | Program invocation under TRSDOS, DOS and UNIX is done by filename; no explicit '''LOAD''' command is required for normal binary executables nor for text command files ([[batch file]]s in DOS and [[shell script]]s in UNIX/Linux). The '''LOAD''' command under TRSDOS would load a binary program into memory, but would not execute it; neither DOS nor UNIX has an equivalent. '''LOAD''' under TRSDOS is almost always used to make a machine code Z80 program (/CMD file) available to the system debugger for examination or modification. |----- ! style="font-family:monospace;" | MEMORY | | | The MEMORY command shows the names and sizes of memory resident modules. It is also used to modify system flag bytes. For example, flag A is the DOS Allocation byte, which the BACKUP command uses to specify the beginning cylinder of a disk to start copying files. This gives the user control over the physical placement of files on disks, which is important to minimize movement of the drive's read/write head during file access. |----- ! style="font-family:monospace;" | PATCH | {{dunno}} || style="font-family:monospace;" | [[patch (Unix)|patch]] | All versions of TRSDOS include the PATCH/CMD utility. This permits modification of machine code /CMD files using patch data supplied by a /FIX file in [[hexadecimal]] ASCII format. |----- ! style="font-family:monospace;" | PRINT | style="font-family:monospace;" | [[TYPE (DOS command)|type]] ''file'' >> [[PRN:|prn]] || style="font-family:monospace;" | [[Line Printer Daemon protocol|lpr]] | Under TRSDOS 6.x an interrupt task is provided to dump the current video display to a line printer at any time. This is activated using {{key press|CTRL|:}}. If the system *PR device is ROUTED or LINKED to a disk file it will be sent there. |----- ! style="font-family:monospace;" | PURGE | | | TRSDOS/LS-DOS 6.x support the PURGE command which will mass delete files specified by partial filename, file suffixes, or file dates. PURGE will query the user for permission to delete each file unless the ''(Q=N)'' parameter is given. |----- ! style="font-family:monospace;" | RENAME | style="font-family:monospace;" | [[ren (command)|ren]] or [[ren (command)|rename]] || style="font-family:monospace;" | [[mv (Unix)|mv]] | Under TRSDOS 6.x the user may rename individual files or the entire diskette. |----- ! style="font-family:monospace;" | TAPE100 | | | TAPE100/CMD reads and writes cassette tapes recorded by the [[TRS-80 Model 100]] laptop as TRSDOS 6.x disk files. This requires use of the Model 4 cassette interface, which the Model 4P transportable lacks. |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)