Here are some important
Dos commands. If u really want to explore your computer, network.. You must be
familiar with Dos. Some of these commands are hidden hacking tools. We will
discuss them later.
While MS-DOS is
not commonly used by itself today, it still can be accessed from every version
of Microsoft Windows by clicking Start / Run and typing "command"
or by typing "CMD" in Windows NT, Windows 2000 or
Windows XP.
Command Symbol
> (greater than)
Redirects output.
< (less than)
Redirects input.
>> (two
greater than signs)
Appends redirected
output to existing data.
| (pipe or vertical
bar)
Pipes output
|| (two pipes)
Runs the command
after the symbol if the command before the symbol fails.
& (ampersand)
Separates multiple
commands on the command line.
&& (two
ampersands)
Runs the command
after the symbol if the command before the symbol is successful.
( ) (parens)
Groups commands
^ (caret)
Enables command
symbols as text.
; or , (semicolon or
comma)
Separates
parameters.
Help Commands
· help
Lists the native
system commands with a brief description of each, one screen at a time.
· help command
Lists help for the
command you enter, including syntax, switches, parameters, and so on.
· net help
Lists names of
network commands.
· net help command
Lists help for the
network command you enter, including syntax, parameters, switches, and so on.
· command /?
Lists syntax for
specified command.
Native Commands
· attrib
Displays or changes
a file's or directory's attributes, such as read-only, hidden, archive, and so
on.
· cd
Changes directory,
or displays the name of the current directory.
· chkdsk
Checks a disk for
errors, bad clusters, and so on, and then displays a report of the results.
· cls
Clears the screen of
previous commands and results, leaving only the current prompt.
· comp
Compares the
contents of two files and displays a report when finished.
· copy
Copies file(s) from
one disk or directory to another.
· date
Displays the date or
lets you set the date.
· del
Deletes file(s) .
· dir
Lists files and
subdirectories in the current directory.
· find
Searches for a text
string in a file or files.
· format
Formats a disk; if
size is unspecified, it format to the drive size.
· help
Displays a list of
the commands and a brief description of each .
· md
Makes, or creates, a
directory
· more
Displays information
on-screen, one screen at a time .
· net computer
Adds computers to
the Windows NT Server domains .
· net file
Displays the names
of all open shared files on a server .
· net group
Adds, displays, or
modifies global groups on Windows NT Server .
· net helpmsg
Displays help about
a network error message .
· net share
Creates, deletes, or
displays shared resources .
· net statistics
Displays the
statistics log .
· net view
Displays a list of
servers or shared server resources.
· path
Displays or sets a
search path for executable files.
· pause
Pauses a batch file
in the middle of the processing .
· print
Prints a text file.
· recover
Recovers any
salvageable information from a bad disk.
· ren
Renames a file or
files .
· rd
Removes a directory
.
· sort
Sorts input .
· start
Starts a separate
command prompt window.
· time
Displays or sets the
system time.
· type
Displays the
contents of a text file.
· xcopy
Copies files and
directory trees quickly by reading data into memory and then copying to the
destination.
Subsystem Commands
· edit
Starts the MS-DOS
Editor in which you can create and modify text files.
· edlin
Starts Edlin, a
line-oriented text editor.
· expand
Expands compressed
file(s).
· loadhigh
Loads a program into
upper memory.
· mem
Displays a screen
showing used and free memory in the MS-DOS subsystem.
· share
Starts the share program.
Common TCP/IP
Commands (TCP/IP network
protocol must be installed)
· finger
Shows information
about remote system users.
· ftp
Transfers files to
and from an FTP service node.
· hostname
Displays the current
host's name.
· netstat
Displays current
TCP/IP connections and protocol statistics.
· ping
Verifies remote host
connection.
· rcp
Copies files between
computers.
· rsh
Runs commands on
remote hosts.
· tftp
Transfers files to
and from an FTP service node.
=============================================================