0% found this document useful (0 votes)
32 views

Practical No.3

The document provides instructions on using various Windows commands like echo, diskpart, ver, systeminfo, doskey, color, rename, type, find, comp, tracert, and netstat. It includes the syntax, working, and sample outputs of each command. The diskpart command is used to manage disk partitions and volumes, and its subcommands like list disk, select, list partition, and list volume are demonstrated. The systeminfo and netstat commands provide system and network information respectively. The comp command compares files and has options like /a to display differences as characters.

Uploaded by

Kajal Goud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Practical No.3

The document provides instructions on using various Windows commands like echo, diskpart, ver, systeminfo, doskey, color, rename, type, find, comp, tracert, and netstat. It includes the syntax, working, and sample outputs of each command. The diskpart command is used to manage disk partitions and volumes, and its subcommands like list disk, select, list partition, and list volume are demonstrated. The systeminfo and netstat commands provide system and network information respectively. The comp command compares files and has options like /a to display differences as characters.

Uploaded by

Kajal Goud
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

PRACTICAL NO.

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,

comp, tracert, netstat.

Commands:

1. echo

Syntax: echo text

Working: ‘echo’ command is used to print a message/text on the screen.

Command and Output:

2. diskpart

Working: Under diskpart – we have various commands to deal with partitions on the computer.

A. diskpart

Working: It invokes the ‘DISKPART’ Prompt.

Command and Output:


PRACTICAL NO. 3

B. LIST DISK

Working: It will list all the disks on your computer.

Command and Output:

C. SELECT Disk_name

Working: This command is used to select a particular disk. In e.g. below we have selected ‘Disk 0’

Command and Output:


PRACTICAL NO. 3

D. LIST PARTITION

Working: It will list the partitions on disk in your computer.

Command and Output:

E. LIST VOLUME

Working: This command will list the volumes on the disk, like C drive or D drive.

Command and Output:


PRACTICAL NO. 3

F. EXIT

Working: This command is used to exit from the DISKPART prompt, back to your normal prompt.

Command and Output:

3. VER

Syntax: VER

Working: this command displays the current version of the operating system.

Command and Output:


PRACTICAL NO. 3

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

information, like the IP addresses of your network cards.

Command and Output:


PRACTICAL NO. 3

5. doskey /history

Syntax: doskey /history

Working: ‘doskey /history’ lists the history of previously typed commands.

Command and Output:


PRACTICAL NO. 3

6. color

Syntax: color twohexdigits

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

1 = Blue 9 = Light Blue

2 = Green A = Light Green

3 = Aqua B = Light Aqua

4 = Red C = Light Red

5 = Purple D = Light Purple

6 = Yellow E = Light Yellow

7 = White F = Bright White

Command and Output:


PRACTICAL NO. 3

7. rename

Syntax: rename old_name new_name

Working: This command changes the name of the file.

Command and Output:

8. type

Syntax: type file_name

Working: List the contents of the file. Not all files are supported.

Command and Output:


PRACTICAL NO. 3

9. find

Syntax: find “text” file_name

Working: This command finds the occurrences of ‘text’ in the given ‘file_name’. Use /i if you don’t
want

to match case.

Command and Output:

10. COMP

Syntax: COMP file1 file2


PRACTICAL NO. 3

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

different sizes. /C- Performs a comparison that is not case-sensitive.

/M- Does not ask if want to compare more files.

Command and Output:

A. Normal COMP

B. COMP with /M
PRACTICAL NO. 3

C. COMP with /A /M

D. COMP with /A, /M, /N.


PRACTICAL NO. 3

E. COMP with /A, /M, /C.

11. TRACERT

Syntax: TRACERT IPAddress/ Domain name

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.

Command and Output:

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

information. netstat displays various types of network data.

Command and Output:


PRACTICAL NO. 3

You might also like