HPC at HCC Jun Wang hcc.unl .edu Outline of Workshop1 Overview of HPC Computing Resources at HCC How to obtain an account at HCC How to login a Linux cluster at HCC How to Copy files to/from Linux cluster at HCC Commonly Used Linux commands Change password to your own after first login How to edit a file using Linux vi editor
14
Embed
HPC at HCC Jun Wang Outline of Workshop1 Overview of HPC Computing Resources at HCC How to obtain an account at HCC How to login a Linux cluster at HCC.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
How to login a Linux cluster at HCC On PC:Download putty.exe to your desktop from http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
HPC at HCCJun Wang
hcc.unl.edu
How to login a Linux cluster at HCC On Mac:Click “Applications”-->”Utilities”-->”Terminal”Type “ssh [email protected]”
HPC at HCCJun Wang
hcc.unl.edu
How to Copy files to/from Linux cluster at HCC On PC:Download a free app WinSCP http://winscp.net/download/winscp514setup.exeInstall it using all default options
Note: You may need to convert file generated on Windows to Linux format Type “dos2unix xxx” in a Linux terminal, where xxx the file name
How to Copy files to/from Linux cluster at HCC On Mac:Open a terminal and type “scp -r $PWD/xxx [email protected]: ” to uploadOpen a terminal and type “scp -r [email protected]:xxx ./ ” to download
Commonly Used Linux commandshttp://www.centos.org/docs/2/rhl-gsg-en-7.2/ch-doslinux.html
Changes directories: cd /directory/directoryLists files: lsCopies files: cp thisfile.txt /home/thisdirectoryMoves files: mv thisfile.txt /home/thisdirectoryDeletes files: rm thisfile.txtCreates a directory: mkdir directoryView a file: less thisfile.txtDisplays your present working directory: pwdReset your password: passwdFinds a string of text in a file: grep -i “Phrase” * -RSearch a file in a directory: find /SomeDirectory -name SomeFileName -type f --printExit a terminal: exitDisplays command help: man command
Change password to your own after first loginType “passwd” after login to any HCC clusterNote: HCC uses LDAP to share users account and password info across all HCC clustersHCC password rule:Password minimum length 8 Minimum required digit characters 1Minimum required alpha characters 1 Minimum required upper case characters 1Minimum required character categories 1 Minimum token length 1
HPC at HCCJun Wang
hcc.unl.edu
How to edit a file using Linux vi editor
Type “vi test-vi” to create a file called test-vi
Press “Enter” key to enter command mode
Press “i” key to enter edit mode
Type some characters
HPC at HCCJun Wang
hcc.unl.edu
How to edit a file using Linux vi editor
Press “Esc” key to switch to command mode
Type“:wq” and Press ”Enter” key to save file and exit to command line
Type “q” to quit. Press “i” key to re-edit and “Esc” when done. Type “q!” to quit without save or “wq” to save and quit
Retype “vi test-vi” to check saved test-vi
HPC at HCCJun Wang
hcc.unl.edu
Thank you for your attention!Hands-on practice on zeng-cuda.unl.edu if you do not have a HCC account
Username: workshopCreate your own directory
HPC at HCCJun Wang
hcc.unl.edu
Familiar with Linux file systemFamiliar with Shell environmentFamiliar with queuing system
How to submit a serial jobHow to submit a MPI parallel job
You may download this ppt file at the newly designed electronics shop website