Tuesday

MS-DOS (Most Wanted) Commands


Ping
Ping tests a network connection.If successful, ping returns the ip address. Its a very useful and popular command which we need to check whether our internet connection is working properly or not.
Syntax
PING [options] destination_host
Example:
ping 192.168.0.1 -t
Ping Options
-w timeout (Timeout in milliseconds to wait for each reply)
-i TTL (Time To Live)
-v TOS (Type Of Service)
-a (Resolve addresses to hostnames)
-n count (Number of echo requests to send)
-t (Ping the destination host until interrupted)
-l size (Send buffer size)
-f (Set Don’t Fragment flag in packet)
-r count (Record route for count hops)
-s count (Timestamp for count hops)
-j host_list (Loose source route along host_list)
-k host_list (Strict source route along host_list)
destination_host (The name of the remote host)
DIR
Display a list of files and subfolders.
Syntax
DIR [pathname(s)] [display_format] [file_attributes] [sorted] [time] [options]
[display_format]
/P Pause after each screen of data.
/W Wide List format, sorted horizontally.
/D Wide List format, sorted by vertical column.
[options]
/S include all subfolders.
/R Display alternate data streams. (Vista only)
/B Bare format (no heading, file sizes or summary).
/L use Lowercase.
/Q Display the owner of the file.
CLS
Simply typing cls and pressing enter will clear the dos screen.
EDIT
Syntax
EDIT [d:][path]filename [/B][/G][/H][/NOHI]
Starts the MS-DOS editor, a text editor used to create and edit ASCII text files.
dos editor
HELP
Syntax
HELP [command] [/B][/G][/H][/NOHI]
Displays information about a DOS command.
MEM
Syntax
MEM [/program|/debug|/classify|/free|/module(name)] [/page]
Displays amount of installed and available memory, including extended, expanded, and upper memory.
dos memory
chkdsk
Syntax
CHKDSK [drive:][[path]filename] [/F] [/V] [/R] [/L[:size]]
Example:
CHKDSK C: /F
[drive:] The drive to check.
filename File(s) to check for fragmentation (FAT only).
/F Automatically Fix file system errors on the disk.
/X Fix file system errors on the disk
/R Scan for and attempt Recovery of bad sectors.
/V Display the full path and name of every file on the disk.
/C Skip directory corruption checks.



No comments:

Post a Comment