Unix Command-Line Interface (CLI)

As mentioned earlier, HPC clusters usually don't have graphical desktop environments installed, and users communicate with the computer by typing commands.

After you ssh to a cluster you will see a prompt similar to the one below:

[user@cluster ~]$

where instead of user you will see your ISU NetID, and the cluster name will be displayed after @ sign.

When you type commands, a special program called the shell interprets these commands and communicates with the Operating System. There are different shell programs. On our clusters we use a bash shell, which is one of the most used shells today.

Example commands in this guide are given in double quotes. When typing those commands in the command line (after the prompt similar to the one above), omit the double quotes.

You can type Unix commands (e.g. "date" or "ls"), shell specific commands (e.g. "history") or third-party program names (e.g. "python" or "squeue"). Bash looks for those in the locations listed in the PATH environment variable. You can type "echo $PATH" to see those locations. If bash knows/finds the command, it will execute it. Otherwise it will issue a "command not found" error message. We will talk more about this in the Environment Modules section.

To see previously issued commands type "history". To reissue one of the commands, type "!nnn", where nnn is the command number. You can also navigate through previously issued commands and display them in the command line by using arrow-up and arrow-down keyboard keys. This way you can avoid re-typing a long command. Typing "!!" will reissue the last command.

One of the useful bash features is autocomplete. It can be used both for commands and file names. For example, if you type "hi" and hit the Tab key, bash will autocomplete the command to "history" (unless there is another command in the locations listed in your PATH that also starts with "hi", in that case type more letters, e.g. "his" and hit Tab).

We will cover several commands later in this guide. We also recommend to check out the Unix Introduction Guide on the left and do some of the tutorials.

 

Next: X Window (X11)