DOS lab

docx

School

Liberty University *

*We aren’t endorsed by this school

Course

110

Subject

Computer Science

Date

Dec 6, 2023

Type

docx

Pages

14

Uploaded by ProfJayPerson956

Report
L IBERTY U NIVERSITY B ASIS N ETWORK /DOS C OMMAND L INE L AB CSIS 110 A NSWER S HEET 1. D ATE /T IME S TAMPING (4 POINTS ) For your first exercise, you will learn how to put a Date/Time Stamp on your page. This is only first because every screenshot you complete during this lab will require a data/time stamp. At the command line prompt type, the following: Time /t Date /t
Question 1 (1.5 point): What was the function of the /t switch in the command extension? The /t switch in the command extension was used to list the time when a command should be executed. Question 2 (1.5 point): How were you able to determine the function of the /t switch in the command extension? I was able to determine the function of the /t switch in the command extension through analysis as well as trial and error such as trying Date and Time instead Date /t and Time /t. 2. C OMMAND L INE H ELP -1 (4 POINTS ) In the answer to question 2 above there is no wrong way to get the right answer (other than to say that you just guessed). But DOS does provide a very easy method. It is the embedded help command. At the command line prompt type, the following: Help Time /t Date /t
Question 3 (1.5 point): What does the Color command do? The Color command sets the default console foreground and background colors. Question 4 (1.5 point): What does the DIR command do? The DIR command displays a list of files and subdirectories in a directory. 3. C OMMAND L INE H ELP -2 (4 POINTS )
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
To find out the syntax of a command you can type Help followed by the command you want. To demonstrate, let’s use the DIR command from Question 4. At the command line prompt type, the following: Help DIR Time /t Date /t
Question 5 (1.5 point): What does the /w function do? The /w function uses a wide list format. Question 6 (1.5 point): Try the DIR then the DIR /Q? What is the difference between the two outputs? The DIR command and DIR /Q command vary in the product they produce, with DIR /Q providing extra information about the ownership of files and directories. 4. I PCONFIG (4 POINTS ) It is, at times, very helpful to know your basic IP information. You can see this on your computer by looking up the configuration. At the command line prompt type, the following: ipconfig Time /t Date /t
Question 7 (1.5 point): What is your IP address (IPv4 or IPv6)? IPv4 = 10.104.125.104 IPv6 = fe80:: eb4: 5aed :aa4 : f8%7 Question 8 (1.5 point): What is the Address of your Default gateway? 10.104.0.1
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
5. P ING (4 POINTS ) Ping is a command that tells you if a host is reachable. It sends a packet and waits for the reply, then tells you how long it takes. This allows you to diagnose latency or packet lost issues. At the command line prompt type, the following: Ping (insert your default gateway IP here) Ping google.com Time /t Date /t
Question 9 (1 point): What were the time statistics (fill in the table)? Destination Maximum Minimum Average Default 2 9 4 Google 17 19 18 Question 10 (1 point): Why did google take longer that your default gateway? Google's servers are further away from my computer than my default gateway, resulting in longer transport times for data. Also, Google is the most trafficked site on the internet, and their servers may have been more loaded than my default gateway. 6. T RACE R OUTE (4 POINTS ) While Ping gives you the traffic statistics, Trace Route will take you through the entire path to the destination. At the command line prompt type, the following: Tracert google.com Tracer google.com ( yes you need to complete 2 trace routes) Time /t Date /t
Question 11 (1 point): Did the trace route follow the exact same path in both traces? The trace routes followed similar paths but had some differences. Question 12 (1 point): If you saw variances in the two traces, explain why. The internet sends data strongly based on how busy different parts of the network are. It may take slightly different paths even if you do the trace route twice in a row.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
6. D IRECTORY T ASK -1 (4 POINTS ) All the director commands are now completed in the GUIs. But they all have their foundations in the DOS. For this task we will look at moving between directories. In the GUIs it is point and click first you look at the GUI version of the directory tree and click on the folder. Let’s fist look at the directory tree in DOS. At the command line prompt type, the following: Tree (wait for it to end—it will be longer than you are used to seeing) Time /t Date /t \
Question 13 (1.5 point): What did you notice about the tree structure in DOS? 1. In DOS the files and folders are organized into a structure that looks like a tree. The main folder is at the top, other folders branch out like branches on a tree and every folder can have additional folders and files. Question 14 (1.5 point): What can you appreciate about the GUI after seeing this? I appreciate that GUI provides a more visual and sensitive way to navigate and manage files. The graphic image of files and folders in a GUI makes it easier for users to locate and access their files quickly. 7. D IRECTORY T ASK -2 (4 POINTS ) Making a director in GUI is a task of selecting the folder and clicking on Add Folder. In DOS you need to move to the correct directory, then use the make directory command. At the command line prompt type, the following: DIR /w MD ABC-test DIR /w Time /t Date /t
Question 15 (1.5 point): Did you see your new directory on the second DIR? No, I did not see the new directory on the second DIR because it was not successfully created and already existed with the same name. Question 16 (1.5 point): Why or why not? This is because the directory already existed, and I tried to create it again using the MD command, which showed an error message saying that the ‘subdirectory or file already exists’. Then, the second DIR didn’t display a new directory. 8. D IRECTORY T ASK -3 (4 POINTS )
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Switching between directories is a simple task GUI it is not too much different in DOS if you know the commands except for not being able to point and click of course. At the command line prompt type, the following: CD ABC-Test DIR /w Time /t Date /t Question 17 (1.5 point): How many files do you see in the new drive? In the new directory ABC-test, there are no files listed, only two directories with the names [.] and [..]
Question 18 (1.5 point): How is the prompt different after the change? After changing to the ABC-Test directory and using the "CD" command, the finding in the command changes to show the new current directory. In this case, the prompt changed from "C:\Users\gabri>" to "C:\Users\gabri\ABC-test>". The prompt now shows the full path of the current directory, which makes it easy to find the current location. 9. D IRECTORY T ASK -4 (4 POINTS ) Often, we need to remove directories as well. To do this, we use the remove directory command. Always be very careful as removing or deleting is permanent in DOS. Also, keep in mind that you cannot delete the directory if you are in it so you must change your directory before deleting. Try using a CD. that will back up out one level in the directory tree. For this lab we are not going to have you remove the test folder. If you would like to do this on your own, you can go to Windows Explorer and remove the folder. Question 19 (4 point): In brief words, what have you learned from this lab? The lab covered many commands like Time, Date, Color, DIR, ipconfig, Ping and Trace Route. I learned the importance of understanding the syntax of a command and the resources such as the ‘help’ command.