Introduction
It might be helpful to read through this exercise a few times on your own before using the script environment to log your session. I'll be doing my best to walk you through those steps.
We'll be practicing some basic commands via a terminal window on your local machine. If you have gone through the steps of setting up your Home Raspberry Pi Server, then you can also modify all of these excercises for your at-home server instead of hills and turn this in instead for your homework submission.
Part One: Logging Into the Hills Environment
You don't need to record these exercises in the script environment but run through them so that you can understand what each task means
- Open up a terminal window on your personal machine and ssh into hills.ccsf.edu using your student account.
- If this is your first time logging into hills, you will be asked to retype your current password. It might feel weird since there is no feedback at the terminal. Press enter when you're done.
- Execute a few commands on hills like id, whoami, pwd, who, ls
- From hills, ssh into one of the classroom linux PCs and/or back into your personal machine. Refer to our in-class demo for how to find the IP address of a machine.
Part Two (If you get stuck, check the hints)
- ssh to hills from either your laptop or from one of our linux PCs
- Type in and execute the following command exactly:
cp -r /pub/cs/grwoo/cs160a/Lab1 ~ (that's a tilde character at the end. It's located at the upper-left corner of your keyboard)
- cd to the new directory Lab1. List it with the -l (lower-case L) option
- display the contents of hte file README
- copy the file README to README1
- Find out what kind of file xyz is (do not use cat or less on this file)
- list the directory xyz