23
BY- Vasundhara Ghose, Damyanti Akanksha & Kripa

Collection of all DOS command

Embed Size (px)

Citation preview

Page 1: Collection of all DOS command

BY- Vasundhara Ghose, Damyanti Akanksha & Kripa

Page 2: Collection of all DOS command

• Getting started with MS-DOS

• Top 7 MS-DOS commands

• top 7 MS-DOS commands for network

• Tips and tricks using cmd

Page 3: Collection of all DOS command

Press win+r type cmdstarting writing

command

Page 4: Collection of all DOS command

1. cd

• CD( Change Directory) is a command used to switch directories in MS-DOS.

cd

cd/d i:

cd..

cd…

cd c:\temp

Page 5: Collection of all DOS command

2.dir

• dir

• dir *.exe

• dir *.txt *.doc

• dir /ad

• dir /ar

• dir/s

• dir/p

• dir/w

• dir /w/s/p

• dir /on

• dir>myfile.txt

• Display a list of files and subdirectories in a directory

Page 6: Collection of all DOS command

3.copy

• 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!!)

• Allows you to copy one or more files to an alternate location

• other variations – xcopy (for hidden file)

Page 7: Collection of all DOS command

4.del

• 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)

• 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

Page 8: Collection of all DOS command

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

Page 9: Collection of all DOS command

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

Page 10: Collection of all DOS command

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”

Page 11: Collection of all DOS command

8. net

• net command is used to update,fix,or view the network settings listed in the syntax are each of net commands

Page 12: Collection of all DOS command

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

Page 13: Collection of all DOS command

10.ipconfig

• ipconfig- used to find out your current tcp/ipsettings.

• 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.

Page 14: Collection of all DOS command

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

Page 15: Collection of all DOS command

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

Page 16: Collection of all DOS command

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

Page 17: Collection of all DOS command

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”

Page 18: Collection of all DOS command

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 .

Page 19: Collection of all DOS 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)

Page 20: Collection of all DOS command

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

Page 21: Collection of all DOS command

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)

Page 22: Collection of all DOS command

• 6. check default programs: assoc

• 7. get PC drivers list: driverquery

• 8. Compare two files : fc sampl1.txt sample2.txt

At last : after exploring cmd lets’shide something ;)

Hide>d: attrib +h +s +r “folder Name”>attrib +h +s "C:\Users\LENOVO\Desktop\ad"

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

Page 23: Collection of all DOS command