Versions Compared

Key

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

Table of Contents

...

  • Macs and Linux have a Terminal program built-in – find it now on your computer
  • Windows 10 or later :
    has ssh and scp in Command Prompt or PowerShell has ssh and scp (may require latest Windows updates)
    • Open the Start menu → Search for Command
Expand
titleOther Windows ssh/Terminal options

If your Windows version does not have ssh in Command Prompt or PowerShell:

More advanced options for those who want a full Linux environment on their Windows system:

From now on, when we refer to "Terminal", it is either the Mac/Linux Terminal program, Windows Command Prompt or PowerShell, or the PuTTY program.

...

ssh is an executable program that runs on your local computer and allows you to connect securely to a remote computer. We're going to use ssh to access the lonestar6 Lonestar6 compute cluster at TACC, where the remote host name is ls6.tacc.utexas.edu.

...

Code Block
languagebash
titleSSH to Lonestar6 at TACC
ssh <your_TACC_userID>@ls6.tacc.utexas.edu

# e.g.For example:
ssh abattenh@ls6.tacc.utexas.edu

...

  1. your local Terminal
  2. the remote Shell

There are many shell programs available in Linux, but the default is bash (Bourne-again shell).

The Terminal is pretty "dumb" – just sending your typing what you type over its secure sockets layer (SSL) connection to TACC, then displaying the text sent back by the shell. The real work is being done on the remote computer, by programs called by the bash shell.

...

When you login via an interactive shell as you did above, a well-known script is executed by the shell to establish your favorite environment settings. We've set up a common login script for you to start with that will help you know where you are in the file system and make it easier to access some of our shared resources. To set it up, do perform the steps below:

Warning

If you already have a .bashrc set up, make a backup copy first.

Code Block
languagebash
cd
cp .bashrc .bashrc.beforeNGS

You can restore your original login script after this class is over.

...

So why don't you see the .bashrc file you copied to your home directory? Because all files starting with a period (dot files) are hidden by default. To see them add the -a (allall) option to ls:

Code Block
languagebash
titleHow to see hidden files
cd
ls -a

To see even more detail, including file type and permissions and symbolic link targets, add the -l (long listing) switchoption:

Code Block
titleLong listing form of ls
ls -la

...

Here's how the common login script adds your $HOME/local/bin directory to the location list – recall that's where we linked several useful scripts – along with a special dot character ( . ) that means "here", or "whatever the current directory is". In the statment statement below, colon ( : ) separates directories in the list.

...

Code Block
languagebash
titleSetting up the friendly shell prompt for stampede
##########
# SECTION 3 -- controlling the prompt
if [ -n "$PS1" ]; then PS1='stamp2ls6:\w$ '; fi