from the Linux shell (command line)
First: Use fastx.divms.uiowa.edu to open a remote desktop on one of the Linux servers where we will be working. These servers can be accessed from anywhere on the Internet using your HawkID and password.
Fastx offers several ways of connecting to the server:
If you open a MATE session, you can open an xterm window on your remote desktop by clicking on the xterm icon. Hover the mouse over the icon and a popup should appear saying "MATE terminal / Use the command line."
We will emphasize using the command-line tools in this course because they continue to be the primary tools used in many parts of the computer industry. In the Unix/Linux world, the command-line interface is known as the shell. For help with any shell command, use the command man; for example, type man pico to learn more about the pico text editor.
A number of text editors are available from the shell for working with source and data files. Some are clumsy but almost self-teaching such as pico and nano. The classic and far more powerful editors used by many software developers are emacs and vi; it is worth taking the time to learn one of these.
The following shell commands matter to Java programmers:
Advice: When you create large programs consisting of many classes, dedicate a sub-directory to the project. If your project is named, for example, project the following shell commands will be useful:
Configuring the vi editor: The vi editor has many options:
You can put configuration options in your .vimrc file; one option per line without leading colons.
In the Unix/Linux world, file names with leading dots are invisible. By default, you won't see the file listed in directories, but you can open it for editing. Also, the file name ending rc means "run commands," and by default, many Unix/Linux applications look for and use a hidden "rc" file when they are launched.