0% found this document useful (0 votes)
24 views5 pages

Commands

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)
24 views5 pages

Commands

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/ 5

BUTAWAN, PRINCESS JOY R.

BSIT 1D
Mr. Elmer Estandarte ITPC 101

Assignment:
What are basic DOS (Disk Operating System) and networking command? Give the
description of each command.

Command Syntax Description


CD CD [drive:][path]Change ges the current directory to
the specified folder.
DIR DIR [drive:][path] Displays a list of files and
subdirectories in a directory.
COPY COPY [destination] Copies files from one location
to another.
DEL DEL [drive:][path] Deletes one or more files.
REN REN [drive:][path][filename1] Renames a file or directory.
[filename2]
MKDIR MKDIR [drive:][path] Creates a new directory.
RMDIR RMDIR [drive:][path] Removes an existing
directory.
TYPE TYPE [drive:][path] filename Displays the
contents of a text file.
EDIT EDIT [drive:][path]filename Opens the MS-DOS text editor
for editing a specified file.
CHKDSK CHKDSK [volume:][[path]filename] Scans and fixes errors on a
[/F] [/V] [/R] [/X] [/I] [/C] disk.
[/L[:size]] [/B]
FORMAT FORMAT volume [/FS:file-system] Prepares a storage medium
[/V:label] [/Q] [/L[:size]] [/A:size] for data storage.
[/C] [/X]
XCOPY XCOPY [destination] [/E] [/C] [/H] Copies files and directories,
[/R] [/Y] including subdirectories.
TREE TREE [drive:][path] Graphically displays the
folder structure of a drive or
path.
DATE DATE [MM-DD-YYYY] Displays or sets the system
date.
TIME TIME [HH: MM: SS] Displays or sets the system
time.
HELP HELP [command] Provides help information for
MS-DOS commands.
EXIT EXIT Exits the MS-DOS command
prompt or a batch file.
ATTRIB ATTRIB [+ R|-R] [+A|-A] [+ H|-H] [+ Sets or clears file attributes
S|-S] [d:][path]filename [/S] (Read-Only, Archive, System,
Hidden), managing file
visibility and access in MS-
DOS.
MODE MODE [device] [BAUD=b] Configures system devices.
[PARITY=p] [DATA=d] [STOP=s]
DISKCOPY DISKCOPY [drive1:][path1] Copies the contents of one
[filename1] [drive2:][path2] disk to another.
[filename2]
MEM MEM[/program|/debug|/classify|/ Displays the amount of used
free|/module(name)] [/page] and free memory in the
system.
SCANDISK SCANDISK [/SURFACE] [/AUTOFIX] Scans and fixes disk errors.
[/CHECKONLY]
UNDELETE UNDELETE [drive:][path][filename] Restores a deleted file.
ASSIGN ASSIGN [drive1:=[drive2:]] Redirects requests for drive
letters to a different drive.
FDISK FDISK Manages disk partitions.
BACKUP BACKUP [destination] [/S] Backs up files and directories.
RESTORE RESTORE [destination] [/S] Restores files and directories
from a backup.
MSCDEX MSCDEX [/D: driver /L:drive] Provides CD-ROM access.
[/M:bufsize] [/E /S /V]
SYS SYS [drive1:][path] Transfers system files to a
disk.
SHARE SHARE [/F:(space)] [/L:(locks)] Installs file-sharing and
locking capabilities.
SMARTDRV SMARTDRV [size] [/E /V] [/C] Disk caching utility.
[/L:size]
SETVER SETVER [drive:][path]filename Sets the MS-DOS version
[/B:bytes] number for a program.
ASSIGN ASSIGN [/D] Disables automatic drive-
letter assignments.
FASTHELP FASTHELP [command] Provides a quick overview of
[command] /? MS-DOS commands.
FC FC [/A] [/C] [/L] [/LBn] [/N] Compares two files or sets of
[/OFF[LINE]] [/T] files and displays the
differences between them.
FIND FIND [/V] [/C] [/N] [/I] Searches for a text string in
[/OFF[LINE]] “string” [[drive:] files.
[path]filename[ …]]
MORE MORE [filename] Display the content of a text
file one screen at a time
ECHO ECHO [on/off] This command can either
show or hide the text of the
commands you type.
Command echoing is on by
default
ECHO ECHO [<message>] Specifies the text to display
on the screen.
PATH PATH [[drive:][path] [;…]] Displays or sets a search path
for executable files.
SET SET [variable=[string]] Sets or displays environment
variables.
VOL VOL [drive:] Displays a disk label and
serial number.
SUBST SUBST [drive1: [drive2:]path] Associates a path with a drive
letter.
EDLIN EDLIN [drive:][path][filename] Edits text files.
DEBUG DEBUG [drive:][path][filename] Starts the Debug program for
testing and debugging
assembly-language programs.
HIMEM.SYS HIMEM.SYS [/TESTMEM:off] Provides upper memory
[/HMAMIN=amount] block (UMB) and high
memory area (HMA) support.
UNFORMAT UNFORMAT [drive:][path] Restores a formatted disk.
GRAPHICS GRAPHICS [type] [[drive:] Enables output of graphical
[path]filename] [/R] [/B] screen content to print
[/LCD][/PRINTBOX:STD|/PRINTBO
X:LCD]
QBASIC QBASIC [drive:][path] Starts the MS-DOS-based
application for creating and
running BASIC programs.
KEYB KEYB Configures a keyboard for a
[/CODEPAGE=page[,country]] [/E] specific language.
CHOICE CHOICE [/C:choices] [/N] [/S] Provides a prompt with a list
[/T:c,nn] of choices.
DISKCOMP DISKCOMP [drive1:][drive2:] Compares the contents of two
floppy disks.
PRINT PRINT [/D:device] [filename] Sends a text file to a printer.
SORT SORT [drive:][path][filename] Sorts the contents of a text
file.
APPEND APPEND [[drive:]path[;…]] Sets or displays the search
path for data files.
ASSOC ASSOC [.ext[=[fileType]]] Associates file extension with
a file type.
LABEL LABEL [drive:][label] Creates, changes, or deletes
the volume label of a disk.
RECOVER RECOVER [drive:][path][filename] Recovers readable
information from a bad or
defective disk.
FASTOPEN FASTOPEN [/X] [drive:] [path] [/R] Speeds up the opening of
files.
GOTO GOTO <label> Directs the command
interpreter to a labeled line in
a batch program.
SHIFT SHIFT [/n <N>] Shifts the position of batch
parameters in a batch file.
JOIN JOIN path [drive:] Joins a drive letter and
directory path.
SMARTDRV SMARTDRV [size] [buffers] Manages and optimizes disk
[doublebuffer] [/E] [/C] [/L] [/V] caching.
[/B]
BATCH BATCH [filename] Executes the commands
specified in a batch file.
CALL CALL [drive:][path]filename [batch- Calls one batch program from
parameters] another.

Networking Commands
Commands Description
C:\>arp is short for address resolution protocol, It will show the IP
address of your computer along with the IP address and MAC
address of your router.

C:\>hostname This is the simplest of all TCP/IP commands. It simply displays


the name of your computer.

C:\>ipconfig The ipconfig command displays information about the host


(the computer your sitting at) computer TCP/IP configuration.
C:\>ipconfig /all This command displays detailed configuration information
about your TCP/IP connection including Router, Gateway, DNS,
DHCP, and type of Ethernet adapter in your system.

C:\>Ipconfig Using this command will renew all your IP addresses that you
/renew are currently (leasing) borrowing from the DHCP server. This
command is a quick problem solver if you are having
connection issues, but does not work if you have been
configured with a static IP address.

C:\>Ipconifg This command allows you to drop the IP lease from the DHCP
/release server.

C:\>ipconfig This command is only needed if you’re having trouble with


/flushdns your networks DNS configuration. The best time to use this
command is after network configuration frustration sets in,
and you really need the computer to reply with flushed.

C:\>nbtstat –a This command helps solve problems with NetBIOS name


resolution. (Not stands for NetBIOS over TCP/IP)

C:\netdiag Netdiag is a network testing utility that performs a variety of


network diagnostic tests, allowing you to pinpoint problems in
your network. Netdiag isn’t installed by default, but can be
installed from the Windows XP CD after saying no to the
install. Navigate to the CD ROM drive letter and open the
support\tools folder on the XP CD and click the setup.exe icon
in the support\tools folder.

C:\>netstat Netstat displays a variety of statistics about a computers


active TCP/IP
connections. This tool is most useful when you’re having
trouble with TCP/IP applications such as HTTP, and FTP.
C:\>nslookup Nslookup is used for diagnosing DNS problems. If you can
access a resource by specifying an IP address but not it’s DNS
you have a DNS problem.

C:\>pathping Pathping is unique to Window’s, and is basically a


combination of the Ping and Tracert commands. Pathping
traces the route to the destination address then
launches a 25 second test of each router along the way,
gathering statistics on the rate of data loss along each hop.

C:\>ping Ping is the most basic TCP/IP command, and it’s the same as
placing a phone call to your best friend. You pick up your
telephone and dial a number, expecting your best friend to
reply with “Hello” on the other end. Computers make phone
calls to each other over a network by using a Ping command.
The Ping commands main purpose is to place a phone call to
another computer on the network, and request an answer.
Ping has 2 options it can use to place a phone call to another
computer on the network. It can use the computers name or IP
address.

C:\>route The route command displays the computers routing table. A


typical computer, with a single network interface, connected
to a LAN, with a router is fairly simple and generally doesn’t
pose any network problems. But if you’re having trouble
accessing other computers on your network, you can use the
route command to make sure the entries in the routing table
are correct.

C:\>tracert The tracert command displays a list of all the routers that a
packet has to go through to get from the computer where
tracert is run to any other computer on the
internet.

You might also like