Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this section we will briefly cover Goal: Briefly introduce two other common and popular text editors available for HPCs and used on the command-line in Linux Command Line Interface.

...

Table of Contents
minLevel1
maxLevel31
outlinefalse
stylenone
typelist
printabletrue

...

Nano

Info

GNU nano is a small and easy to use command line text editor. Besides basic text editing, nano offers features like undo/redo, syntax coloring, interactive search-and-replace, auto-indentation, line numbers, word completion, file locking, backup files, and internationalization support.

  • Nano is terminal based and for use in command line.

  • There are add-ons which allow it to be used in a GUI

  • More information for using Nano on ARCC HPCs may be found here.

...

Nano - Try it:

Info

In an HPC terminal window, launch nano with the nano command.

  • To open a specific file in nano, use command nano </path/to/file/filename> to open that file.

  • You can insert text simply by typing it in.

  • Use the arrow keys to navigate through the document.

  • The Ctrl key is a key for “special” or common file-handling and administrative keystrokes.

  • Hit Ctrl+x to exit the file.

  • Nano has many “cheat sheets” available online.

...

Emacs

Info

Emacs is a portable platform for creating applications with a text user interface. It serves as a fully programmable text editor. Many users use Emacs in a variety of different ways.

  • Emacs may be run in a command prompt (command line environment) or in a GUI.

  • It can also be used as an IDE (Integrated Development Environment).

  • More information for using Emacs on ARCC HPCs may be found here.

08.01 Next Steps

Expand
titleVim Text Editor Cheat Sheets
Expand
titleNano Text Editor Cheat Sheets
Expand
titleEmacs Text Editor Cheat Sheets

08.02 Further Trainings: UWYO LinkedIn

...

08.03 Summary

In this workshop we have:

  • Introduced users, using the Linux command line environment, to text editors: Specifically vim.

  • Demonstrated how to:

    • Open, edit, update, save and quit a text editor.

    • Use the keyboard and shortcuts to navigate around the text file.

    • Use the command line to search for terms within the text file.

Next Steps

Previous

...

Emacs - Try it (GUI):

Info

To open it in a Graphical User Interface:

  • Open OnDemand

  • Launch a OnDemand XFCE Desktop Session

  • Open Emacs by opening a terminal within your OnDemand desktop, and typing: emacs , then hit enter/return key

  • You should see a GUI version of emacs.

  • Click on the Emacs Guided Tour

  • Type ctrl + x, followed by ctrl + c to exit out of emacs.

Image Added

...

Emacs - Try it (Command Line):

Info

To open it in a GUI:

  • Open OnDemand

  • Launch shell terminal window

  • Run emac with emacs command.

  • Type ctrl + h to get to the help screen.

  • Type ctrl + x, followed by ctrl + c to exit out of emacs.

...

 

 Use the following link to provide feedback on this training: https://forms.gle/GHwxQ9X9cPtWMnAF8 or use the QR code below.

...