Here is a list of commands that might be useful in a windows environment:

  • color (changes the color of the command shell) e.g. color bf
  • date (displays or set system date) e.g. date /T 
  • time (displays of set the system time) e.g. time /T
  • echo (echoes the variable) e.g. echo %PATH%
  • set (displays / sets an environment variable) e.g. set path, set /P PATH=c:\ 
  • start (starts another shell) e.g. start
  • assoc (displays / associates a file extension to a file type) e.g. assoc .pl
  • ftype (displays / associates a file type to a program for execution) e.g. ftype perl
  • subst (associates a folder to a drive letter) e.g. subst z: myfolfer

The more usual commands such as more, cd, rd, rem, move etc. are not mentioned above so as to keep the list consise.

Network commands
Some common networking commands that can be issued:

  • ipconfig (displays the configuration of your ethernet ports)
  • ping (test connectivity)
  • tracert (trace the hops taken from your host to a destination host)
  • pathping (a combination of ping and tracert)
  • netstat (displays active tcp connections and ports on which the computer is listening)
  • nslookup (lookup an fqdn into an ip)

I hope some of these will come in handy to anyone out there :)
References: command windows

Leave a Reply