-
Notifications
You must be signed in to change notification settings - Fork 24
Log onto the ACF and get folders set up
pwd = print working directory
ls = list the contents of this location (ie folder)
hostname = what is the name of the computer that I am talking to
First, open your terminal program. You will see a prompt. This is usually a $
and indicates that the shell is waiting for input.
Where are you on your computer?
pwd
What is in this location?
ls
What is the name of your computer?
hostname
Next log into the ACF with this command (substituting your own username)
Lets try some commands. Find out what computer you are on:
hostname
The computer name should have the word "login" on it, for example "acf-login6"
Find out where you are in the filesystem:
pwd
You should be in your home folder:
/nics/d/home/mstaton1
We are going to request access to a computer other than the login node:
qsub -I -A ACF-UTK0138 -q debug -l walltime=1:00:00,nodes=1:ppn=1,naccesspolicy=singleaccount
If you are not part of the project yet, skip the above qsub step.
Now we should be on a different computer. Let's test that by checking what computer we are on:
hostname
You should get something like acf-bc008
Now we need to get the data for our lesson. We're going to use two new commands:
- wget = web get, i.e. download a file over the internet using its web address
- unzip = unzip a zipped file
wget http://swcarpentry.github.io/shell-novice/data/data-shell.zip
Check to make sure it is there:
ls
And lets decompress it:
unzip data-shell.zip