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
- Open the Start menu → Search for Command
Expand | ||
---|---|---|
| ||
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 | ||||
---|---|---|---|---|
| ||||
ssh <your_TACC_userID>@ls6.tacc.utexas.edu # e.g.For example: ssh abattenh@ls6.tacc.utexas.edu |
...
- your local Terminal
- 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.
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 | ||||
---|---|---|---|---|
| ||||
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 | ||
---|---|---|
| ||
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 | ||||
---|---|---|---|---|
| ||||
########## # SECTION 3 -- controlling the prompt if [ -n "$PS1" ]; then PS1='stamp2ls6:\w$ '; fi |