UNK Linear Algebra, Feb. 28, 2017

If at any time today you have difficulties or become lost, please place the red sticky note on top of your monitor and a helper will be around to assist you.

For these instructions, any commands to be typed into the terminal will be formatted like this.

What is a cluster:

(picture courtesy of: http://training.h3abionet.org/technical_workshop_2015/?page_id=403)

**
**

To connect to the Crane cluster:

  • insert the Yubikey into the computer’s USB drive. There should be a small green light in the middle of the Yubikey to indicate it is inserted correctly.
  • Open your preferred web browser and navigate to http://go.unl.edu/cranessh
  • Click “Start SSH session to crane.unl.edu”
  • Click the “Terminal: SSH” icon to begin the SSH session
  • Type in the provided Username and Password. Note that the password will not display on screen, but rest assured that even though nothing is being output, your password is being entered as you type.
  • At the “Passcode:” prompt, press your finger to the gold circle in the middle of the Yubikey until a string of characters appears on screen.
  • If you logged in successfully, your screen should look similar to the one belo

Linux Commands Reference List:

Command What it does Example Uses
ls list: Lists the files and directories located in the current directory
  • ls
  • ls -a
    • shows all the files in the directory, including hidden ones
  • ls -l
    • shows contents in a list format including information such as file size, file permissions and date the file was modified
  • ls *.txt
    • shows all files in the current directory which end with .txt
cd change directory: this allows users to in or out of file directories
  • cd <folder path>
  • cd folder_name
    • navigates into directory "folder_name" located in the current directory
  • cd ..
    • navigates out of a directory and into the parent directory
    cd $HOME (or $WORK)
    • navigates to a user's home (or work) directory
mv move: used to move a file or directory to another location
  • mv <current file(s)> <target file(s)>
  • mv * ../
    • moves all files from the current directory into the parent directory
  • mv old_filename new_filename
    • renames the file "old_filename" to "new_filename"
man

manual: displays documentation for commands

Note: Use up and down arrows to scroll through the text. To exit the manual display, press 'q'

  • man <command name>
  • man ls
    • displays documentation for the ls command
mkdir make directory: creates a directory with the specified name
  • mkdir <new_folder>
    • creates the directory "new_folder" within the current directory
rmdir

remove directory: deletes a directory with the specified name

Note: rmdir only works on empty directories

  • rmdir <folder_name>
    • removes the directory "folder_name" if the directory
  • rmdir *
    • removes all directories within the current directory
rm remove: deletes file or files with the specified name(s)
  • rm <file_name>
    • deletes the file "file_name"
  • rm *
    • deletes all files in the current directory

nano

nano text editor: opens the nano text editor

Note: To access the menu options, ^ indicates the control (CTRL) key.

  • nano
    • opens the text editor in a blank file
  • nano <file_name>
    • opens the text editor with "file_name" open. If "file_name" does not exist, it will be created if the file is saved
clear clear: clears the screen of all input/output
  • clear
less

less: opens an extended view of a file

Note: Use up and down arrows to scroll through the text. To exit the extended view, press 'q'

  • less <file_name>
    • opens an extended view of the file "file_name"

To run MATLAB interactively:

  • After logging into the cluster, navigate to your $WORK directory:

    • cd $WORK
  • Request an interactive job:

    • srun –reservation=unk –mem=4096 –pty $SHELL
  • Load the MATLAB module:

    • module load matlab
  • Run MATLAB:

    • matlab

To access the MATLAB Tutorial:

Attachments:

Screen Shot 2017-02-23 at 5.10.31 PM.png (image/png)
Screen Shot 2017-02-23 at 5.10.43 PM.png (image/png)
Screen Shot 2017-02-23 at 5.10.31 PM.png (image/png)
Screen Shot 2017-02-23 at 5.10.43 PM.png (image/png)
Screen Shot 2017-02-23 at 5.16.10 PM.png (image/png)
Screen Shot 2017-02-23 at 5.16.37 PM.png (image/png)
Screen Shot 2017-02-23 at 5.16.37 PM.png (image/png)
image2017-2-24 11:14:4.png (image/png)
cluster_small2.png (image/png)