| 1 | [[PageOutline]] |
| 2 | = File Editing = |
| 3 | |
| 4 | == File Editing Software == |
| 5 | The following are the three most commonly used editors |
| 6 | |
| 7 | === nano === |
| 8 | |
| 9 | nano is the easiest to use editor available on the clusters. |
| 10 | |
| 11 | Use the following command to open a file for editing with nano: |
| 12 | |
| 13 | {{{ user@host> nano filename }}} |
| 14 | |
| 15 | === vim === |
| 16 | vim is the improved version of vi with code syntax highlighting and other features useful for programming. This editor has a steep learning curve, but is very efficient. |
| 17 | |
| 18 | [[https://blog.interlinked.org/tutorials/vim_tutorial.html | Vim Introduction]] |
| 19 | |
| 20 | Use the following command to open a file for editing with vim: |
| 21 | |
| 22 | {{{ user@host> vim filename }}} |
| 23 | |
| 24 | === emacs === |
| 25 | emacs also has code syntax highlighting along with auto-indentation and a whole list of other advanced editing features. |
| 26 | |
| 27 | [[http://insti.physics.sunysb.edu/itp/computing/doc/emacs-intro.html|Emacs Introduction]] |
| 28 | |
| 29 | Use the following command to open a file for editing with emacs: |
| 30 | |
| 31 | {{{ user@host> emacs filename }}} |
| 32 | |
| 33 | === GUI Based Editors === |
| 34 | |
| 35 | There are a number of GUI based editors available across platforms (gedit, notepad++, sublime text edit just to name a few). The choice of GUI based text editor is a personal one and we offer no opinions on which is best. |
| 36 | |
| 37 | That being said, any GUI based editor you use should be able to save files in a clean text format (so Microsoft Word is out). |
| 38 | |
| 39 | == Exercise == |
| 40 | [[cypress/FileEditingSoftware/Example|Exercise]] |
| 41 | |
| 42 | == Next Section == |
| 43 | [[cypress/FileTransfer|Transferring Files]] |
| 44 | |