There are hundreds of different commands that can be used in the command prompt, but at its most basic, it can be used to manage folders using mkdir and rmdir, delete files using del and display network information using ipconfig. Useful advanced commands include cipher and fc.
The mkdir and rmdir commands are used to make and delete folders, respectively. To make a new folder in the current directory, users need to enter "mkdir name", where "name" is the name of the new folder. The same syntax is also used with rmdir—"rmdir name".
The syntax used when deleting a file using the del command is similar to the mkdir/rmdir syntax, except del is followed by a complete filename, which includes the file's extension. For example, to delete a text file named somefile with a TXT extension, users need to enter "del somefile.txt". Del cannot be used to delete a folder.
Ipconfig is most used when troubleshooting network connectivity issues. When entered on its own, ipconfig outputs a list of network devices and their details, which include their current IP address, MAC address and default gateway. Additionally, users can use ipconfig to "refresh" their network connection using the syntax "ipconfig /release" to release the current connection and "ipconfig /renew" to establish a new one.
Users can use cipher to prevent recovery of files and folders containing sensitive data after they have been deleted. The fc command compares two files and enumerates the differences between them.