
| 此条目仍有文字未被翻译成中文,条目是根据其他语言维基百科的内容进行翻译的。(2008年8月30日) 欢迎您协助翻译与校对以改善这篇条目。 长期闲置的非中文内容可能会被移除。 |
字词转换是中文维基的一项自动转换,目的是通过计算机程序自动消除繁简、地区词等不同用字模式的差异,以达到阅读方便。
字词转换包括全局转换和手动转换,本说明所使用的标题转换和全文转换技术,都属于手动转换。
DOS,英语全称Disk Operating System,即磁盘操作系统,为个人电脑所使用之一操作系统;并曾为操作系统中,使用最广者。
当中最著名且最广泛使用者,为1981年由微软公司为IBM个人电脑开发之MS-DOS。它是一个单使用者单工的操作系统。后来DOS也包括其它公司所生产与MS-DOS兼容之作业系统,如PC-DOS、DR-DOS,及其它较冷门之MS-DOS兼容产品。1985年至1995年及其后一段时间内,DOS于各类操作系统中占有主导地位。
微软于推出Windows 95后,宣布不再单独发布新MS-DOS版本,但目前FreeDOS等与MS-DOS兼容者仍持续发展。
目录 |
所有DOS类的操作系统,运行于Intel x86及其兼容CPU;主要为IBM PC与IBM兼容机。最初DOS不限定于这些,与机器相依的({{lang|en|machine-dependent)DOS版本与类似的操作系统,曾为了许多不兼容IBM({{lang|en|non-IBM-compatible)以x86基础的({{lang|en|x86-based)机器生产。[1]
DOS是单用户、单任务操作系统,基本的内核函数是非可重入(reentrant)的——一次只能运行一个程序。有一种例外,即Terminate and Stay Resident (TSR)程序,某些TSR允许多任务方式。然而,非可重入内核仍然有一个问题:一旦一个进程调用了操作系统内核内部的某个服务(系统调用),则必须不能被另一个进行系统调用的进程中断,直到前者的调用完成。[2]
DOS内核提供多种程序设计功能,如在屏幕上显示字符、从键盘读入字符、访问磁盘文件等等。
MS-DOS(以及经过授权更换商标的IBM PC-DOS),以及其前身86-DOS,都受到了Digital Research的CP/M(Control Program / (for) Microcomputers)的影响,该系统是当时基于8位Intel 8080和ZilogZ-80的微机上占主导地位的磁盘操作系统。
1980年,IBM正要推出他们的第一台微机,该机使用Intel 8080微处理器,需要一个操作系统。在寻求一个CP/M的8088兼容版本时,IBM首先找到了微软的CEO比尔·盖茨(大概他们认为CP/M属于微软,因为微软的Microsoft Softcard可以让CP/M在苹果II型电脑上运行[3])。IBM被介绍到了Digital Research,举行了相关的会议。然而,最初关于CP/M使用的谈判没有成功——Digital Research希望以 wished to sell CP/M on a royalty basis, while IBM sought a single license, and to change the name to "PC-DOS". DR founder Gary Kildall refused, and IBM withdrew.[3]
IBM再次找到了比尔·盖茨。盖茨又找上了Seattle Computer Products。那儿的程序员Tim Paterson开发了CP/M-80的一个变种,本打算作为一个内部产品,用于测试SCP为S-100新开发的16位8086CPU卡。在被商业化为86-DOS前,该系统最初被称为“QDOS”(Quick and Dirty Operating System)。据称,微软以50000美元的价格购买了86-DOS。它后来成为了微软磁盘操作系统——MS-DOS,于1981年推出。[4]
同时,微软将其操作系统授权给多家电脑公司,这些公司提供支持自家硬件的MS-DOS版本,有些还以自己的名字命名。后来,微软要求他们以MS-DOS为名称进行使用,除了IBM的变种版本。IBM继续为IBM PC开发他们自己的版本——PC-DOS。[4]Digital Research开始意识到IBM正在销售一种与CP/M类似的系统(使用的名称正是当时IBM希望用在CP/M上的名称),继而以使用法律手段为由进行威胁。IBM则以一项协议进行回应:他们让PC用户自由选择使用PC-DOS或Kildall的8086版本CP/M-86。CP/M比PC-DOS贵了大约200美元,而销售两则较少。CP/M逐渐淡出,MS-DOS和PC-DOS占有了PC和PC兼容机的操作系统市场.[3]
Digital Research曾试图用新系统夺回CP/M-86丢掉的市场份额,开始是DOS Plus后来是DR-DOS(两者都兼容MS-DOS和CP/M的软件)。Digital Research后来被Novell收购,DR DOS称为了Novell DOS 7。之后,又成为了Caldera Systems(OpenDOS and DR DOS 7)、Lineo以及DeviceLogics的一部分。
Microsoft and IBM later had a series of disagreements over two successor operating systems to DOS- Microsoft's Windows and IBM's OS/2.[5] They split development of their DOS systems as a result.[6] MS-DOS was partially transformed into Windows; the last version of PC-DOS was PC-DOS 2000, released in 1998.
FreeDOS计划开始于1994年6月26日,当天微软宣布将不再对MS-DOS提供支持。Jim Hall宣布将要开发开源的DOS替代品。几周内包括Pat Villani 和Tim Norman在内的程序员加入该计划。他们通过共享代码,生成了FreeDOS的内核、command.com命令行解释程序和内核实用程序。FreeDOS 1.0于2006年9月3日发行,在此之前几个FreeDOS的官方预发行版就有发行。FreeDOS不需要授权费用及专利使用费[7][8]。包括戴尔、惠普在内的电脑厂商销售预装FreeDOS的电脑[9][10]。
NX-DOS是一款100%符合GPL授权的DOS。目前正在开发中,是一个16位、实时、支持网络的DOS,可从软盘引导,并有一个未完成的USB驱动程序。NX-DOS作为一个私人计划始于1992年,在2005年依GPL释出 [11]。
还有其它DOS类操作系统正在发行中,有Enhanced DR-DOS,俄罗斯的PTS-DOS以及嵌入式ROM-DOS。
早期版本的Microsoft Windows是一个在单独版本的DOS上运行的应用程序。[12] With Windows for Workgroups 3.11, DOS was essentially reduced to the role of a boot loader for the Windows kernel. With Windows 95, 98, and ME, MS-DOS is included as the boot loader rather than being sold separately. 在Windows 95和98中,除了Windows ME,MS-DOS 组件不启动Windows就可以运行。[13]
真正的32位版本的完全独立于DOS运行的Windows从NT开始,包括了2003,XP,和Vista。大多数版本包含一个DOS 子系统,NT DOS虚拟机(NTVDM),它在虚拟机中运行一个修改过的版本的MS-DOS 5.0来运行DOS software and Windows command-line programs of similar appearance which are not compatible with true MS-DOS.
See Comparison of x86 DOS operating systems for a timeline and comparison of versions.
该操作系统提供了硬件抽象层来支持基于字符的应用程序的开发,但未提供访问大多数硬件如显示卡、打印机和鼠标的支持。这就要求程序员直接访问硬件,导致每个应用程序拥有自己的的一套驱动程序来支持每种硬件外设。Hardware manufacturers would release specifications to ensure device drivers for popular applications were available.[14]
There are reserved device names in DOS that cannot be used as filenames regardless of extension; these are used to send application output to hardware peripherals. These restrictions also affect several Windows versions, in some cases causing crashes and security vulnerabilities.[15]
A partial list of these reserved names is: NUL:, COM1: or AUX:, COM2:, COM3:, COM4:, CON:, LPT1: or PRN:, LPT2:, LPT3:, and CLOCK$.[16]
In DOS, drives are referred to by identifying letters. Standard practice is to reserve "A" and "B" for floppy drives. On systems with only one floppy drive DOS permits the use of both letters for one drive, and DOS will ask to swap disks. This permits copying from floppy to floppy or having a program run from one floppy while having its data on another. Hard drives were originally assigned the letters "C" and "D". DOS could only support one active partition per drive. As support for more hard drives became available, this developed into assigning the active primary partition on each drive letters first, then making a second pass over the drives to allocate letters to logical drives in the extended partition, then making a third, which gives the other non-active primary partitions their names. (Always assumed, they exist and contain a DOS-readable file system.) Lastly, DOS allocate letters for optical disc drives, RAM disks, and other hardware. Letter assignments usually occur in the order of the drivers loaded, but the drivers can instruct DOS to assign a different letter. An example is network drives, for which the driver will assign letters nearer the end of the alphabets.[17]
Because DOS applications use these drive letters directly (unlike the /dev directory in Unix-like systems), they can be disrupted by adding new hardware that needs a drive letter. An example is the addition of a new hard drive with a primary partition to an original hard drive that contains logical drives in extended partitions. As primary partitions have higher priority than the logical drives, it will change drive letters in the configuration. Moreover, attempts to add a new hard drive with only logical drives in an extended partition would still disrupt the letters of RAM disks and optical drives. This problem persisted through the 9x versions of Windows until NT, which preserves the letters of existing drives until the user changes it.[17]
The boot sector for PC-compatible computers is located at track zero. In DOS, this code will read the DOS BIOS into memory and execute it. The BIOS is located in IBMBIO.COM on DR DOS and PC DOS, and IO.SYS on MS DOS. The BIOS will then load the DOS kernel, located in IBMDOS.COM (PC DOS or DR DOS) or MSDOS.SYS (MS DOS). In the Windows DOS versions (MS DOS 7 and 8), the BIOS and kernel are combined in IO.SYS, and MSDOS.SYS is a text configuration file. The kernel then executes the CONFIG.SYS file. In CONFIG.SYS, the SHELL command specifies the location of the shell (typically COMMAND.COM). The shell will then launch, and open a startup batch file (typically AUTOEXEC.BAT).[18]
While DOS was the primary PC-compatible platform, several notable programs were written for it. These included:
Several limitations plagued the DOS architecture. The original 8088 microprocessor could only address 1 mebibyte of physical RAM. With additional hardware devices being mapped into this range, the highest amount of available memory was 640 kibibytes, known as conventional memory. Due to DOS' structure, this was assumed to be the maximum, and DOS could not address more than this. An early workaround was expanded memory; later, extended memory was developed with the 80286. While these provided usuable memory to applications, they still had to start in conventional memory, thereby using part of the existing 640 kb. With the 80386 microprocessor's redesigned protected mode, DOS extenders and the DOS Protected Mode Interface were able to provide additional memory to applications, as well as multitasking. [20][21]
DOS also has an upper limit to the size of hard disk partitions. This has two causes. First, many DOS-type systems never had support for any file system newer than FAT16, which, by design, does not allow partitions larger than 2.1 gibibytes.[22] Additionally, DOS accesses the hard disk by calling Interrupt 13, which utilizes the cylinder-head-sector system of mapping the disk. Under this system, only 8 gibibytes are visible to the operating system.[23] Newer operating systems accomplished disk access via software means, e.g. 32-bit disk access.
Under Linux it is possible to run copies of DOS and many of its clones under DOSEMU, a Linux-native virtual machine for running 实模式的程序。There are a number of other emulators for running DOS under various versions of UNIX, even on non-x86 platforms, such as DOSBox.[24][25]
DOS 模拟器在Windows XP和Vista用户之中很受欢迎,因为这些系统与纯DOS不兼容。它们可以用来运行为DOS设计的软件(常被称作'过时软件'(abandonware))。DOSBox是为在新式操作系统上玩游戏而设计的,最知名的模拟器之一。[24][12] Tao ExDOS模拟器用于一些商业应用程序。[26] VDMSound在Windows下由于它的GUI和声效支持也很受欢迎。
It is possible to run DOS applications under Microsoft Virtual PC, allowing better compatibility than DOS emulators. A legitimate version of MS-DOS can be installed which should allow all but the most stubborn applications to run.[27]
(部分)
| 命令 | 备注 |
|---|---|
| MD | 建立子目录 |
| CD | 改变当前目录 |
| RD | 删除子目录命令 |
| DIR | 示磁盘目录命令 |
| PATH | 路径设置命令 |
| TREE | 显示磁盘目录结构命令 |
| DELTREE | 删除整个目录命令 |
| FORMAT | 磁盘格式化命令 |
| CHKDSK | 检查磁盘当前状态命令 |
| UNFORMAT | 恢复格式化命令 |
| DISKCOPY | 整盘复制命令 |
| VOL | 显示磁盘卷标命令 |
| SCANDISK | 检测、修复磁盘命令 |
| DEFRAG | 重整磁盘命令 |
| SYS | 系统复制命令 |
| COPY | 文件复制命令 |
| XCOPY | 目录复制命令 |
| TYPE | 显示文件内容命令 |
| REN | 文件改名命令 |
| FC | 文件比较命令 |
| ATTRIB | 修改文件属性命令 |
| DEL | 删除文件命令 |
| UNDELETE | 恢复删除命令 |
| VER | 查看系统版本号命令 |
| DATE | 查看日期命令 |
Why are we here?
All text is available under the terms of the GNU Free Documentation License
This page is cache of Wikipedia. History