Operating System User's Guide
Appendix C, DOS command equivalents

Appendix C

Appendix C<P> DOS command equivalents DOS command equivalents

This appendix contains a table showing some common MS-DOS commands and their SCO OpenServer system equivalents.

For more information about any of the SCO OpenServer system commands, consult the Operating System User's Reference.

The commands listed below are for working with SCO OpenServer system files. If you have DOS installed on the same machine as your SCO OpenServer system, you can access your DOS files from within the SCO OpenServer system. For more information about accessing DOS files, see Chapter 6, ``Working with DOS'' and doscmd(C) in the Operating System User's Reference. 

 -----------------------------------------------------------------------
 DOS                           UNIX system
 command    What it does       equivalent    Notes
 -----------------------------------------------------------------------
 cd         change             cd(C) 
            directories
 -----------------------------------------------------------------------
 cls        clear the screen   clear(C) 
 -----------------------------------------------------------------------
 copy       copy files         cp(C)         Use cp to copy files, copy 
                               copy(C)       to copy directories, and
                               tar(C)        tar to copy files or
                                             directories onto floppy
                                             disks or tapes.
 -----------------------------------------------------------------------
 date       display the        date(C)       On the UNIX system, date 
            system date and    cal(C)        displays the date and the
            time                             time. cal displays the
                                             date, the time, and a 3-
                                             month calendar.
 -----------------------------------------------------------------------
 del        delete a file      rm(C)         Be careful when using rm 
                                             with wildcard characters,
                                             like rm .
 -----------------------------------------------------------------------
 dir        list the           ls(C)         There are a variety of
            contents of a                    options to ls including ls
            directory                        -l to see a long listing,
                                             ls -c to see a listing in
                                             columns, and ls -f to see a
                                             listing that indicates file
                                             types.
 -----------------------------------------------------------------------
 diskcomp   make a track-      diskcmp(C) 
            by-track
            comparison of
            two floppy disks
 -----------------------------------------------------------------------
 diskcopy   copy a source      diskcp(C) 
            disk to a target
            disk
 -----------------------------------------------------------------------
 edlin      line editor        ed(C)         vi is a full-screen text
                               ex(C)         editor with powerful search
                               vi(C)         and replace functions.  ed 
                                             and ex are predecessors of
                                             vi.

 ---------------------------------------------------------------------
 fc        compare two        diff(C)      diff compares two text
           files              diff3(C)     files. diff3 compares three
                              cmp(C)       text files.  Use cmp to
                                           compare binary files.
 ---------------------------------------------------------------------
 find      find text within   grep(C)      grep (global regular
           a file                          expression parser) finds
                                           text within a file.  The
                                           UNIX system's find(C) 
                                           command finds files.
 format    format a disk      format(C)    See /etc/default/format for
                                           the default drive to
                                           format.  The format command
                                           formats a disk for use with
                                           UNIX system files.  Use
                                           dosformat (see doscmd(C) to
                                           format a DOS disk.
 ---------------------------------------------------------------------
 mkdir     make a directory   mkdir(C) 
 ---------------------------------------------------------------------
 more      display output     more(C) 
           one screen at a
           time
 ---------------------------------------------------------------------
 print     print files in     lp(C)        Use lp filename & to print
           the background                  in the background.  You can
                                           run any UNIX system command
                                           in the background by adding
                                           & (ampersand) to the end of
                                           the command line.
 ---------------------------------------------------------------------
 ren       rename a file      mv(C) 
 ---------------------------------------------------------------------
 rmdir     remove an empty    rmdir(C)     Use rm -r to remove a
           directory                       directory that is not
                                           empty.
 ---------------------------------------------------------------------
 sort      sort data          sort(C) 
 ---------------------------------------------------------------------
 type      display a text     cat(C) 
           file               more(C) 
 ---------------------------------------------------------------------
 xcopy     copy directories   copy(C)      Use tar if you want to copy
                              tar(C)       directories onto disk or
                                           tape.