Exercise 15 Operating Systems Tutorial 1 - Msdos PDF

Title Exercise 15 Operating Systems Tutorial 1 - Msdos
Course Computer Architecture and Networks
Institution Coventry University
Pages 5
File Size 143 KB
File Type PDF
Total Downloads 26
Total Views 144

Summary

TUTORIAL ON OPERATING SYSTEMS. INTRO REVISION...


Description

w/c 26/01/2015

120CT

COMPUTER ARCHITECTURE AND NETWORKS– 120CT Exercise 15: Operating Systems Tutorial 1

MSDOS In this Laboratory students will familiarise themselves with several useful commands of the MS-DOS operating system emulation on Windows and compare their similarity with the Windows GUI. MS-DOS Commands for using in this lab CD CHDIR

Displays the name of or changes the current directory

CHKDSK

Checks a disk and displays a status report

COPY

Copies one or more files to another location

DEL ERASE

Deletes one or more files

DIR

Displays a list of files and subdirectories in a directory

FIND

Searches for a text string in a file or files

HELP

List all available commands. Provides help information for Windows commands.

MD MKDIR

Creates a directory

MOVE

Moves one or more files from one directory to another directory

PRINT

Prints a text file

RD RMDIR

Removes a directory

REN RENAME

Renames a file or files

TYPE

Displays the contents of a text file

XCOPY

Copies files and directory tree.

HELP [command] will display more information such as the command syntax and further options (switches) for the particular command. DISCLAIMER: Please note that this is a very limited list of commands. Commands issued on the MS-DOS prompt affect the system directly therefore you can make your system unstable if you use them without care. Limit yourself to use only the commands in the exercise on the University computing facilities, and be very careful if using them on your own devices.

1

w/c 26/01/2015

120CT

Exercise Open the MS-DOS prompt by following the path: Start  All Programs  Accessories  Command Prompt Task 1- List all the contents for the current drive. In order to achieve this task type DIR at the MS-DOS command prompt. What actions would you need to perform in order to achieve the same result using the Windows GUI? ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________

Task 2 - Change to one of the subdirectories and list its contents. From the MS-DOS prompt type: CD < name of the subdirectory > Then, once on the subdirectory issue the DIR command What actions would you need to perform in order to achieve the same result using the Windows GUI? ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________

Task 3 - List all the files with a particular name/extension. (Please notice that you might need to move up the directory tree. To achieve this, use the command CD.. from the MS-DOS command prompt.) From the C:\Windows\ directory, issue the command:

DIR *.txt /s

2

w/c 26/01/2015

120CT

What results did you obtain? ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ What actions would you need to perform in order to achieve the same result using the Windows GUI? ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________

Task 4 - Change drive. You will now need to change drive to your own directory (usually drive H). Use the command:

H: What actions would you need to perform in order to achieve the same result using the Windows GUI? ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ Task 5 - Create a new directory. From the MS-DOS command prompt type the commands:

MD 120CTNew CD 120CTNew Note that the name of the new directory is 8 characters long and does not include spaces. Verify that the directory exist using Windows GUI. 3

w/c 26/01/2015

120CT

Task 6 - Copy all files with extension .txt to that directory. You can achieve this task by issuing the following command from the subdirectory:

COPY C:\WINDOWS\*.txt Verify the new contents of the file using the Windows GUI. Task 7 - Create a txt file in Windows. Using the Notepad application, create a text file called Hello on the new subdirectory created. The file should contain the text: “Hello from the 120CT Lab. From ” Task 8 - Find the file created in Task 7 from the MS-DOS prompt. You could use the command:

FIND “120CT” Hello.txt

Task 9 - Check the contents of the Hello file from the MS-DOS prompt. Use the command:

TYPE Hello.txt Compare this with how you would achieve the same task in Windows GUI. ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________

4

w/c 26/01/2015

120CT

Task 10 - Rename the file using MS-DOS prompt. Rename the Hello file to Greeting Use the command:

RENAME Hello.txt Greeting.txt Verify the changes using Windows and compare this with how you would achieve the same task in Windows GUI. ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________

Task 11 - Delete the text file renamed in the previous task. Use the command:

DEL Greeting.txt Compare this with how you would achieve the same task in Windows GUI and also verify that it has been deleted using the Windows GUI. ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ Task 12 - Delete the directory that was created initially. (Note that in original DOS you can only delete a directory after emptying it first). From the MS-DOS prompt on the 120CTNew directory issue the commands:

DEL *.* CD.. RD 120CTNew Task 13 - Reflect on what you have learnt on this lab and compare, in terms of pros and cons, the use of both Operating systems. ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ ___________________________________________________________________ 5...


Similar Free PDFs