To copy all the files in the current directory, use copy *.* DESTINATION.Ĩ) X-COPY D:\http\test>xcopy *.* d:\http\temp /e To copy a file, simply specify the source file and destination – copy SOURCE DESTINATION. Hit exit when done, and this will close the current session.įILE ACTIONS 7) COPYING FILES D:\http>copy README.txt d:\http\temp When the screen gets too messy, use cls to clear the screen.įrom the command prompt, we can also launch various apps.Ĭaptain Obvious to the rescue again. to go up one level, or cd/ to go all the way back to the root of the current drive.
For the above example, we can just type out cd h and press tab to cycle through the list of folders starting with “h”.Īnother way to use the cd command is to enter a full file path. There is one trick here – We don’t actually need to type out the full folder name. Next, we have the cd command... Should be Captain Obvious, changes the current directory. To list the contents of the current folder, use the dir command. If you want to change the current directory to another drive, simply enter the drive letter – For example d: or e.Ģ) LIST CONTENTS OF CURRENT DIRECTORY D:\>dir That is, the current location is at the C:\ drive, inside the default Users\NAME folder.
This should pretty self-explanatory, it is your “current directory”. When the command prompt is launched, all that is staring back is a C:\Users\NAME.
Did you find this article useful? Share it as much as possible.Now that you have launched the command line, here are some of the basic commands to know.īASIC NAVIGATION 1) CHANGING THE CURRENT DRIVE Microsoft Windows These are the 10 best commands used in hacking. Related: 5 Useful Command Prompt (CMD) Tricks You Should Know This command also needs technical knowledge. This command is widely used to remove, connect and configure the connection on shared resources like printers, mapped drives, network printers and more. Net User command for administrators in Windows
So, for that, you can visit this link to know about how to use net user commands. However, the net user command is the little bit technical.
You can also add new users or modify existing users using net user command. If you ever forgot your Windows login password, then you can utilize this command to reset Windows user password. This command will list out the entire list of resources, domains, and computers that are shared by the specified computer. To use this command enter net view xxxx (IP address) or your computer name. To use this command, type netstat -a into the command prompt. You will get to know about the active connections and listening ports. The netstat command will help you to find out who is establishing a connection with your computer. Related: How To Hide Any Drive In Windows Using CMD 7) netstat You can try the code: ipconfig or ipconfig /all This command will list out the IP address, Gateway, DNS and much more. This is a common command and can be used by everyone who keeps less knowledge regarding computer’s core components. To use this command type: route print 6) ipconfig It will show you the gateway, interface, routing table and metric. Unlike tracert, the route command will show you everything in between what comes in the packet and its destination. This command is mostly used to find out if anyone has done arp poisoning into the LAN. If you want to modify the ARP cache then ARP command will help you. (x is the IP address here) or else you can type in the name like tracert Related: How To Fix USB Device Not Recognized Error In Windows 4) arp You can enter commands like tracert x.x.x.x. The tracert command will help you to trace the route that a packet will travel to reach its destination. This is actually a network administration command line tool which will help you to get the domain name or IP address mapping for any specific DNS records.įor example, type in nslookup on the command prompt and it will tell you the IP address. Nslookup command had the wide variety of functionalities. Related: How To Remove Virus From Computer Using CMD 2) nslookup You can type in command prompt ping 8.8.8.8 which right now belongs to Google. With this command, you can know the amount of time it took to reach the specific address. Ping command allows users to know if the host they are pinging is alive or not.