Editing Files
Accessing your files on the cluster can be challenging if you are new to command line terminals. Fortunately there are many ways to access and edit your files on the cluster. Below are some of the most common methods.
Terminal
All of the typical command line editors like vi and emacs are available on the cluster. If you are not familiar with these editors, you can use nano which is a simple text editor.
To open a file with nano, simply type nano filename
and press enter. You can then use the arrow keys to navigate the file and make changes.
To save the file, press Ctrl+O
and then press enter. To exit nano, press Ctrl+X
.
OnDemand
OnDemand is a web-based interface for accessing the cluster. It provides a graphical interface for submitting jobs, managing and editing files, and monitoring job status. Multiple file editors are available in OnDemand.
Native VSCode
Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for many languages and has a rich ecosystem of extensions for other languages and runtimes (such as C++, C#, Java, Python, PHP, Go, .NET). If you choose to use VSCode using the remote development extension please do not run intensive computations on the CSC login nodes.
Using VSCode’s Remote Development you can edit files stored in the CSC as if they were local to your computer.
JetBrains Editors
JetBrains editors (IntelliJ and PyCharm) are powerful IDEs that offer a similar feature set to VSCode. The editors are available for Windows, macOS, and Linux and support remote development. If you choose to use JetBrains editors using the remote development extension please do not run intensive computations on the CSC login nodes.