What Is An Operating System?: Laboratory Guide 1: Practice of Operating Systems With Dos

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

Prepared by: Eng.

Javier Daza
September 25, 2020 Email: [email protected]

LABORATORY GUIDE 1: PRACTICE OF OPERATING SYSTEMS WITH DOS

OBJECTIVE

Practice with the most important and most used commands with DOS with
the Windows operating system

THEORETICAL FOUNDATION1

What is an Operating System?

An Operating system (OS) is a software which acts as an interface between the end
user and computer hardware.

Every computer must have at least one OS to run other programs. An application like
Chrome, MS Word, Games, etc needs some environment in which it will run and perform its
task. The OS helps you to communicate with the computer without knowing how to speak th e
computer's language. It is not possible for the user to use any computer or mobile device
without having an operating system.

History Of OS

• Operating systems were first developed in the late 1950s to manage tape storage
• The General Motors Research Lab implemented the first OS in the early 1950s for their
IBM 701
• In the mid-1960s, operating systems started to use disks
• In the late 1960s, the first version of the Unix OS was developed
• The first OS built by Microsoft was DOS. It was built in 1981 by purchasing the 86-DOS
software from a Seattle company
• The present-day popular OS Windows first came to existence in 1985 when a GUI was
created and paired with MS-DOS.

Features of Operating System

Here is a list commonly found important features of an Operating System:

• Protected and supervisor mode


• Allows disk access and file systems Device drivers Networking Security
• Program Execution
• Memory management Virtual Memory Multitasking
• Handling I/O operations

1 https://www.guru99.com/operating-system-tutorial.html
Prepared by: Eng. Javier Daza
September 25, 2020 Email: [email protected]

• Manipulation of the file system


• Error Detection and handling
• Resource allocation
• Information and Resource Protection

MS-DOS

Short for Microsoft Disk Operating System, MS-DOS is a non-graphical command


line operating system derived from 86-DOS that was created for IBM compatible computers.
MS-DOS originally written by Tim Paterson and introduced by Microsoft in August 1981 and
was last updated in 1994 when MS-DOS 6.22 was released. MS-DOS allows the user to
navigate, open, and otherwise manipulate files on their computer from a command line
instead of a GUI like Windows.

Windows DOS command prompt window

Today, MS-DOS is no longer used; however, the command sh ell, more commonly
known as the Windows command line is still used by many users. The bottom image is an
example of a Windows command line window running in Microsoft Windows 10.

Most computer users are only familiar with how to navigate Microsoft Windows using
the mouse. Unlike Windows, MS-DOS is navigated by using MS-DOS commands. For
example, if you wanted to see all the files in a folder in Windows you would double-click the
folder to open the folder in Windows Explorer. In MS-DOS, you would navigate to the folder
using the cd command and then list the files in that folder using the dir command.

LEARNING ACTIVITY
MS-DOS PRACTICE

Desarrollar paso a paso, la siguiente actividad de aprendizaje, utilizando el


DOS de Microsoft Windows, es como sigue:

1. Ingresar al CMD de Windows utilizando la tecla Windows y únicamente el


teclado.
2. Crear la siguiente estructura jerárquica de directorios:

• MD PRINCI
• CD PRINCI
• MD DOCS
• CD ..
• MD PROGRAM
• CD ..
• MD APUNTES
Prepared by: Eng. Javier Daza
September 25, 2020 Email: [email protected]

• CD..
• CD DOCS
• MD EXCEL
• CD..
• MD WORD

3. Generar copiándolos desde la pantalla los siguientes archivos: fichero.txt y


fichero2.txt (en princip), doc1.txt y doc2.txt (en docs), tema1.doc y
tema2.doc (en sistemas):

• COPY CON FICHERO.TXT


• COPY CON FICHERO2.TXT
• CD DOCS
• COPY CON DOC1.TXT
• COPY CON DOC2.TXT
• CD..
• CD SISTEMAS
• COPY CON TEMA1.DOC
• COPY CON TEMA2.DOC

4. Estando en sistemas, situarse en program. Hacerlo de todas las formas


conocidas.

• CD ..\..\PROGRAM
• CD C:\PRINCI\PROGRAM
• CD..
• CD..
• CD PROGRAN

5. Introducir como fecha del sistema la fecha de su nacimiento. ¿de cuántas


formas puede hacerlo?

• DATE 03-02-1978
• DATE
• Posteriormente se pulsa intro y la nueva fecha queda ingresada

6. Retrasar la hora del sistema 3:45:15


Prepared by: Eng. Javier Daza
September 25, 2020 Email: [email protected]

• TIME 3:45:15

7. Limpiar la pantalla.

• CLS+INTRO

8. Actualizar fecha y hora del sistema. ¿de cuántas formas se puede hacer?

• DATE
• DATE 14-11-2011
• TIME
• TIME 08:48:01

9. Visualizar la ayuda de la orden Prompt

• PROMPT /?

10. Modificar el símbolo del sistema que aparezca la hora y su nombre.

• PROMPT &T JAVIER G· DAZA &G

11. Visualizar la ayuda de la orden Dir.

• DIR /?

12. ¿Cómo averiguas el directorio activo en que te encuentras?

• CD muestra el directorio activo en el que se encuentra

13. Modifica el prompt del sistema para dejarlo como antes (indica el
directorio activo).

• PROMPT $P$G

14. Listar el contenido del directorio Princip con los directorios antes de los
archivos ordenados alfabéticamente por la extensión.

• CD..
• DIR/Oge
Prepared by: Eng. Javier Daza
September 25, 2020 Email: [email protected]

15. Lista el contenido del directorio Princip ordenado por tamaño. Mostrar
también los archivos del nivel inferior.

• DIR /Ogs /S

16. Realizar el ejercicio anterior, pero desde el directorio \. Introducir el


parámetro necesario para ver la información de forma paginada.

• CD \
• DIR /Ogs /S /P

17. Situarse en program. Utilizando una trayectoria relativa, crea el directorio


“nuevo” dentro de Word.

• CD C: \PRINCIP\PROGRAM
• MD ..\DOCS\WORD\NUEVO

18. Situarse en Word y cambiar el nombre del directorio “nuevo” por “textos”.
¿de cuántas formas puedes se puede hacer?

• CD..
• CD DOCS
• CD WORD
• REN NUEVO TEXTOS
• MOVE NUEVO TEXTOS

19. Copiar los archivos del directorio “princip” en el directorio “docs”, pero
con extensión .bak.

• CD ..\..
• COPY *.* DOCS\*.BAK

20. Copiar los archivos que contengan un 2 del directorio “docs” al directorio
“textos”.

• CD DOCS
• COPY *2.* WORD\TEXTOS

21. Visualiza el contenido de los archivos del directorio “textos”.


Prepared by: Eng. Javier Daza
September 25, 2020 Email: [email protected]

• CD WORD
• CD TEXTOS
• TYPE DOC2.TXT
• TYPE FICHERO2.BAK

22. Copia los archivos en uno solo llamado “fusión.txt”.

• COPY DOC2.TXT+FICHERO2.BAK FUSION.TXT

23. Visualizar el contenido de este nuevo archivo.

• TYPE FUSION.TXT

24. Mover el archivo “fusión” al directorio “excel”.

• MOVE FUSION.TXT ..\..\EXCEL

25. Crear un archivo copiándolo desde la pantalla en el directorio anterior. Se


llamará “prueba1.txt”.

• COPY CON PRUEBA1.TXT

26. Mover el archivo “prueba1.txt” al directorio “nuevo” dentro de “princip”.


El directorio “nuevo” no existe.

• CD..
• CD..
• MD NUEVO
• CD DOCS
• CD EXCEL
• MOVE PRUEB1.TXT ..\..\NUEVO

27. Visualiza el archivo “prueba1.txt”.

• CD..
• CD..
• CD NUEVO
• TYPE PRUEBA1.TXT
Prepared by: Eng. Javier Daza
September 25, 2020 Email: [email protected]

28. Eliminar el directorio “nuevo” y su contenido. Indicar todos los comandos


que puedes usar.

• CD..
• DELTREE NUEVO
• DEL *.*
• CD..
• RE NUEVO

29. Mover el archivo “fusión.txt” al directorio “textos” pero con el nombre


“union.doc”.

• MOVE FUSION.TXT ..\WORD\TEXTOS\UNION.DOC

30. Visualizar atributos de archivos del directorio “princip” y de sus


subdirectorios.

• ATTRIB /S

31. Situarse en “program” y visualizar atributos de los archivos del directorio


“textos”.

• CD PROGRM
• ATTRIB C: \PRINCIP\DOC\WORD\TEXTOS

32. Situarse en “textos”. Visualiza los atributos de los archivos con extensión
“.txt”.

• CD..
• CD DOCS
• CD TEXTOS
• ATTRIB *.TXT

33. Copiar los archivos del directorio “sistemas” en el directorio “textos”.

• COPY *.* ..\..\..\DOCS\WORD\TEXTOS

34. Asignar el atributo de solo lectura a los archivos del directorio “textos”.

• ATTRIB +R *.*
Prepared by: Eng. Javier Daza
September 25, 2020 Email: [email protected]

35. Intentar borrar los archivos de este directorio. No utilizar “DELTREE”

• DEL *.*

You might also like