Windows Command Line Exercise 1

Command Line Exercise

Type the HELP command in the virtual command prompt to begin

Exercise 1

Display this PC's IP Address, DNS Server, and Default Gateway

ipconfig

Exercise 2

Display this PC's IP Address, DNS Server, Default Gateway, and MAC Address

ipconfig /all

Exercise 3

Display this PC's open TCP/IP Connections

netstat

Exercise 4

Display a list of files and directories inside the current directory

dir

Exercise 5

Navigate from the current directory to the "My Files" subdirectory

cd My Files

Exercise 6

Display the attributes of the contents of "C:\My Files\"

attrib

Exercise 7

Add the read only attribute to the "C:\My Files\spreadsheet.xlsx" file.

attrib +r spreadsheet.xlsx
Woo-hoo, you're done! You successfully completed all the command line exercises.
Report Error