Text Editor Command Line Cheat Sheet - petewhartnett/learning-journal GitHub Wiki

Important features to consider when choosing a text editor

  • Code Completion - Once you to start typing code completion will give you suggestions that will save time and eliminate spelling errors.
  • Syntax Highlighting - This will highlight text with different colors based on the attribute and element type. This makes text easier to read and errors easier to find.
  • Ability to add extensions - over time you may find you need more functionality that does not come standard in your text editor. Having the ability to add extensions is key to having your editor grow as your skills increase.

Command Line Cheat Sheet (Windows)

  • cd = change directory
  • cd .. = move to the parent directory
  • cd\ = move to the root of current drive
  • cd x = move to the current\x directory
  • date = change the date
  • del = delete/erase * del x = deletes all files/folders fitting x
  • del . = deletes all files within current directory
  • del . = deletes all files within current directory
  • dir = display contents of current directory (Ex: dir [c:][\programs]), [] = optional
  • dir *.txt = list all .txt files in current directory
  • dir *.? = list all files with extensions one character in length in current directory
  • dir /w /p . = display all contents one screen at a time
  • dir | more = display all contents one line at a time
  • dir /? = provides syntax info and complete list of all dir parameters
  • echo = send command line input to display (by default)
  • echo sometext » somefile.txt = append line(s) of text to any file
  • erase = delete/erase
  • exit = exit the command prompt
  • filename.txt = opens filename.txt in current directory in Notepad (or default .txt program)
  • time = change the time
  • type file = display the contents of the file ‘file’ (displays file contents in console)
  • type file |more = display the contents one line at a time
  • ipconfig [/all] = display network adapter information
  • ping google.com = how long it takes for your computer to talk to google.com
  • dir > somefile.txt (Send directory listing to a file)
  • F1 = Sequential, individual repeat of previously entered characters
  • F2 = Copies any number of characters from the previous command line
  • F3 = Repeats the contents of the previous command line
  • F4 = Deletes any number of characters from the previous command line
  • F5 = Return to the previous command line