Editing in a LINUX ENVIRONMENT

This is a continuation from the page about compile/link/run in LINUX environment. You may either use a LINUX editor or edit the file somewhere else and scp it into TAMNUN. It is more efficient to learn to edit. Details about scp are here. If you are working from windows a good scp to download is winscp.

There are many editors in LINUX and their selection is a bit like choosing your football team - not always logical. Emacs is my favourite but many people use vi. To start writing or editing a file write e.g. emacs surlin.f and then make changes by typing over the lines, then cntrl x cntrl s to exit and save. New users may find nano the easiest.

  1. nano
  2. nedit
  3. emacs - see Riva's link here.
  4. vi (or vim) - see Riva's link here.

Let's try an example about editing the file surlin.f on ALUF.

nano surlin.f

make your changes then follow the buttons below the text for futher assistance. Cntrl -x lets you out of the editor.

Your next page is accessing a remote LINUX machine from the windows environment, if you are working from a LINUX machine you can go directly to the stage after - for TAMNUN (the PBS link) or go start working on PHELAFEL/PHCLASSES.

NANCO/TAMNUN users and Technion Physics Department graduate students may contact Dr Joan Adler (phr76ja_at_tx.technion.ac.il) with further questions, OTHERS ARE WELCOME TO USE THE SITE ``AS IS''.

    Course links:
  1. Course homepage
  2. How working on a remote LINUX machine differs from using your desktop - compile/link/run in LINUX
  3. Editing and managing files in a LINUX environment
  4. Accessing a remote LINUX machine from the windows environment
  5. PBS queueing system - by Julia Halupovich

[Join or leave the TAMNUN list] [List archives]