Instructions:
To pass a report of this activity, give the DOS Command to satisfy each item and print screen the command prompt environment then pastes the result in ms word. Named the file with Activity1.doc then send it backs to my e-mail.
On the secondary drive present in your computer create the following files using notepad. These files are all empty files; no words or marks, as you will open any of these.
Sample.doc Memo.doc Act.txt
Loveletter.doc Please.txt Kill.doc
Message.txt Dear.doc Bill.doc
Kiss.txt Kick.txt Bleed.doc
Eye.txt Home.html Armpit.doc
Nose.java Ans.cpp Freak.txt
1. List the contents of the root directory on the f: drive or any other drive except c: drive
2. List all doc files in drive f:
3. List all txt files in the drive f:
4. Invoke the MS-DOS full screen text editor utility EDIT to create a text file called Activity.txt The file should contain text welcome to IT316 Operating system
Use File|Save and File|Exit to save your work and to quit EDIT
5. Display contents of Activity.txt
You should see
Welcome IT316 Operating system
6. Create (make) a new directory called ActWork
7. Use the cdcommand to change the default directory to ActWork
Display the contents of ActWork. It should contain no files except for "pointers" to itself and it's parent.
8. Copy the file all .txt in the root directory to ActWork. The target name defaults to ActivityCopy.txt
9. Display the contents of ActWork. You should see ActivityCopy.txt listed.
10. Create (make) a subdirectory for ActWork called WorkChild.
11. Change the default directory to WorkChild
12. Copy Activity.txt and all .doc to WorkChild. Use the ActWork directory copy of Activity.txt
13. Alternately use .. (two dots) to refer to WorkChild parent directory
14. Make a second copy of Activity.txt but call it ActWork1.txt
15. Rename Activity.txt as ActWork2.txt
16. Check your work - display the contents of WorkChild. You should see two files : ActWork1.txt and ActWork2.txt and all .doc files
17. Check that the contents of ActWork2.txt, has not changed by displaying it.
18. Using a wildcard delete all files in WorkChild. Be careful. Using wildcards in dangerous so hit N to cancel the command!
19. Instead use a wild card to delete all files with a .txt and .doc extension
20. Check that both files are gone
21. Return to the ActWork directory
22. View the contents of the ActWork directory.
23. Remove the WorkChild directory.
24. Check that the WorkChild subdirectory is gone
25. Return to the root directory
26. Delete the ActWork copy of Activity.txt
27. Then check that it's gone
28. But the root copy of Activity.txt is still there
29. Remove the ActWork from the root directory
30. And delete Activity.txt from the root directory
. And here is the rest of it.
0 Comments