Laboratory Exercise 1 - Basic Internal and External DOS Commands
Laboratory Exercise 1 - Basic Internal and External DOS Commands
IT0035L
(APPLIED OPERATING SYSTEMS LABORATORY)
EXERCISE
1
DOS INTERNAL & EXTERNAL COMMANDS
Student Name / Group
Name:
Name Role
Members (if Group):
Section:
Professor:
When you are using a Microsoft MS-DOS command prompt shell window, you can type the following
commands into the window.
cd : Change directory or display current directory path.
cls : Clear the window.
dir : Display list of contents of current directory.
help : Display list of commands or help about a command.
notepad : Run the Windows Notepad text editor.
type : Displays the content of a text file.
TASKS:
Now you're ready to begin. Each numbered item has an answer (answer to the question, commands used
and/or analysis and observation of the step or process).
Note:
Capture your executed commands and their respective outputs using snipping tool.
Save you file as SURNAME_Expt1.docx
Upload your accomplished lab activity report to our Canvas.
1. Using copy command, copy FILE1.TXT to make the following filenames: file2.txt, file3.dat, file4.doc,
file5.txt. Pay attention to the names and extensions of the files.
Paste your captured executed commands and output below:
2. List out the directory and see ALL the newly created files.
Paste your captured executed commands and output below:
3. Now you just want to see a list of the files that have TXT as their extension.
5. Create a subdirectory under the directory you're currently in. Call this new directory TESTDIR.
Paste your captured executed commands and output below:
6. Using a wildcard, copy all the files with an extension of DAT to the new subdirectory.
Paste your captured executed commands and output below:
7. Change directories to the newly created directory and list all the files in there.
Paste your captured executed commands and output below:
8. Delete file3.dat.
Paste your captured executed commands and output below:
10. List all the files with an extension of DAT in the current directory and the one you just created. Use only
one command to do so.
Paste your captured executed commands and output below:
12. Create another directory TESTDIR2 and copy the directory/folder TESTDIR to the newly created
directory.
Paste your captured executed commands and output below:
13. Remove the directory you created (TESTDIR). Are you able to do this? Why or Why not?
Paste your captured executed commands and output below:
Answer:
14. Use wildcard to list all the files that start with FI and have an extension of TXT.
Paste your captured executed commands and output below:
16. Check the file attributes of file5.txt. What are the given attributes?
Paste your captured executed commands and output below:
Answer:
19. Using a redirector, combine file5.txt and file6.txt content to another filename combine.txt
Paste your captured executed commands and output below:
Conclusion:
VII. REFERENCES:
https://www.techopedia.com/definition/8445/microsoft-disk-operating-system-ms-dos
https://www.c3scripts.com/tutorials/msdos/commands.html