command-line

Session on the command line, a means of interacting with your computer programmatically through text.

View the Project on GitHub dhsouthbend/command-line

«< Previous
«< Return to introduction

More Information about Text Editors

Editors vs. IDEs

When it comes to editing text and writing code, you can use either a text editor or an IDE (Integrated Development Environment). Text editors tend to be more lightweight solutions, while IDEs try to provide a lot of features to help you write code and tend to target specific languages. There are a lot of exceptions to that description, but the distinction isn’t that important. Just know that editors will sometimes describe themselves as IDEs, and that there’s a slight difference in philosophy between them.

Which Text Editor Should I Choose?

OSX

If in your terminal you type:

nano filename.txt

You will open the nano editor in the command line. You’ll see your terminal change to look something like this:

Image of what nano looks like when you open it

When you’re done typing to add text to the file, you can save the file by performing these three actions:

  1. Hold control and press x.
  2. When it asks if you want to save, press for "yes."
  3. You’ll see the path to the file in the bar. Press to confirm and your window will resume its command line identity.

Platform Independent

Fully Customized

Integrated Development Environment [IDE]

As mentioned above, IDEs offer more functions for testing code and running programs. Depending on the amount and type of programming you are doing, an IDE might be overkill. The IDE Index shows relative popularity of editors and IDEs based on search frequency.