Practical No.3
Practical No.3
Windows Command – 2
Aim: Execute following Windows (DOS) Commands –echo, diskpart – [LIST DISK, SELECT, LIST
PARTITION, LIST VOLUME, EXIT], VER, SYSTEMINFO, doskey /history, color, rename, type, find,
Commands:
1. echo
2. diskpart
Working: Under diskpart – we have various commands to deal with partitions on the computer.
A. diskpart
B. LIST DISK
C. SELECT Disk_name
Working: This command is used to select a particular disk. In e.g. below we have selected ‘Disk 0’
D. LIST PARTITION
E. LIST VOLUME
Working: This command will list the volumes on the disk, like C drive or D drive.
F. EXIT
Working: This command is used to exit from the DISKPART prompt, back to your normal prompt.
3. VER
Syntax: VER
Working: this command displays the current version of the operating system.
4. SYSTEMINFO
Syntax: SYSTEMINFO
Working: The ‘SYSTEMINFO’ command displays a list of details about your operating system,
computer
hardware and software components. You see details such as the version of the operating system
installed on
your computer, the status of your RAM or the processor that you have. There's also some network
5. doskey /history
6. color
Working: Color attributes are specified by TWO hex digits -- the first digit corresponds to the
background
color; the second digit corresponds to the foreground color. Each digit can be any of the following
values:
0 = Black 8 = Gray
7. rename
8. type
Working: List the contents of the file. Not all files are supported.
9. find
Working: This command finds the occurrences of ‘text’ in the given ‘file_name’. Use /i if you don’t
want
to match case.
10. COMP
Working: This command compares the content of two files. /A -- Displays differences as characters.
/N=<number> -- Compares only the number of lines that are specified for each file, even if the files
are
A. Normal COMP
B. COMP with /M
PRACTICAL NO. 3
C. COMP with /A /M
11. TRACERT
Working: TRACERT- (Traceroute) is a network diagnostic tool used to track in real-time the path
taken by
a packet on an IP network from source to destination, reporting the IP addresses of all the routers it
pinged in
between. Traceroute also records the time taken for each hop the packet makes during its route to
the
PRACTICAL NO. 3
destination.
12. netstat
Syntax: netstat
Working: The netstat command generates displays that show network status and protocol statistics.
You can
display the status of TCP and UDP endpoints in table format, routing table information, and interface