0% found this document useful (0 votes)
25 views23 pages

Chapter 2

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

Chapter 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

BY- Vasundhara Ghose, Damyanti

Akanksha & Kripa


• Getting started with MS-DOS
• Top 7 MS-DOS commands
• top 7 MS-DOS commands for network
• Tips and tricks using cmd
starting
Press win+r type cmd writing
command
1. cd
cd
• CD( Change
Directory) is a cd/d i:
command used to
switch directories in cd..
MS-DOS.
cd…

cd c:\temp
2.dir
• Display a list of files and subdirectories in a directory

• dir • dir/p
• dir *.exe • dir/w
• dir *.txt *.doc • dir /w/s/p
• dir /ad • dir /on
• dir /ar • dir>myfile.txt
• dir/s
3.copy
• Allows you to copy one or more files to an alternate location
• other variations – xcopy (for hidden file)
• copy *.txt c:\
• copy *.* a:
• copy autoexec.bat c:\windows
• copy win.ini c:\windows /y
• copy “myfile.txt” music
• copy myfile1.txt+myfile2.txt
• copy con text.txt(to create file, press ctrl+z t0 save- simply
just edit!!)
4.del
• Del is a command used to delete files from the computer
• remember deleted files by cmd Don't go to recycle bin.
• use ‘rmdir’ or ‘deltree’ for delete directory

• del test.tmp
• del c:\windows\text.tmp
• del c:\windows\temo\*.* (delete all files)
• del c:\windowstemp\?est.tmp (? character for
delete files such as pest.tmp or nest.tmp)
5. edit

• The edit command is an external command that is


available in the below Microsoft operating
systems as edit.com
• not available for 64-bit system
• edit I:myfile1.txt
6.move

• allows you to move files or directories from one


folder to another,or from one drive to another.’
• move c:\windows\temp\*.* c:\temp( temp
directories all file move to temp,if it exists)
• move stats.doc,morestats.doc c:\report
7.ren & rename

• used to rename files and directories from the


original name to a new name.
• rename c:\computer hope
• rename *.txt *.bak
• rename “text imp.txt” “cool stuff.txt”
8. net

• net command is used to update,fix,or view the


network settings listed in the syntax are each of
net commands
9. ping

• helps in determining TCp/IP networks IP address as well


as determine issues with the network.
• it assists in resolving them.
examples:
 ping localhost
 ping facebook.com
 ping 179.168.141.34
 ping 8.8.8.8. –t
10.ipconfig

• ipconfig- used to find out your current tcp/ip


settings.
• ipconfig/all: to display all your IP information for
all adapters including ds server and mac address.
• ipconfig/release: to obtain new IP address fro m
DHCP
• ipconfig/flushdns: clears your current DNS
resolver cache logs.
11. tracert

• help to trace the path your packets take across the


internet from you to your destination.
• it also tells us time from hop to hop
• helps in identification server problems and latency.
• syntax: tracert site.com
12. nslookup

• it is the way to get the IP address for a domain name.


• you can also do a reverse lookup from domain name to
IP address.
• it tells us that your DNS is working properly or not?
syntax:
 nslookup site.com
 nslookup xxxx.xxxx.xxxx.xxxx
13. netstat

• it can be used to view your active network


connection and TCP/IP conections.
• you can see determine which ports are open and
being used.
• netstat switches;
• netstat –a: all active TCP connections and TCP/UDP
ports.
• netstat –e: displays Ethernet statictics
14.sfc/scannow

• windows includes a system file checker tool that


scans its system files and looks for problem.
• if system files are missing or corrupted, the system
file checker will repair them.
• work only when “run as administrator”
15.shutdown

• Shutdown /r : restarts the computer system


• Shutdown /s: shutdown the computer system
• /t: time –out period before the system shuts down
(rang: 0-600 seconds) default: 30sec
• Shutdown /a: aborts the previous shutdown
command .
16.taskkill

• This tool is used to terminate tasks by process id


(PID) or image name.
• Taskkill /? – all details of taskkill command
• Taskkill /f /im notepad.exe
• Taskkill /pid 3640(for any process id)
17.systeminfo

• It gives you detailed description about your system


components like processor,memory and much
more.
• You can also use it to check wheather your syetm is
32bit or 64 bit
1. Get help on almost every command – just type “/?”
2. Use function keys:

3. Save a command to a file : command> “destination path”


4. Copy data from command prompt: right click anywhere on cmd
>> click mark>> hit enter to copy (not useful for latest version of
windows)
5. Execute multiple commands: ipconfig && dir (by using “&&”
operator)
• 6. check default programs: assoc
• 7. get PCAtdrivers
last : after exploring cmd lets’s
list: driverquery
hide something ;)
• 8. Compare two files : fc sampl1.txt sample2.txt
Hide>d: attrib +h +s +r “folder Name”
>attrib +h +s "C:\Users\LENOVO\Desktop\ad"

unhide>d: attrib -h -s -r “folder Name”

You might also like