---
# System prepended metadata

title: 'bi278 lab #1'

---

# bi278 lab #1
1. Course Unix environment

1.1 Connect to the bi278 Unix environment
```
ssh colbyid@bi278
exit
```
1.2 Navigate and find your colbyhome
Sharps (#) can be used to comment in code. Everything after a sharp within a line is ignored. So you can add comments to the same line as a command or a different line. 
```
# this prints your current working directory, or where you are
pwd 

ls # this lists everything in your current working directory
```
Variations on `ls`:
```
ls ~ # home
ls /home/colbyid # colbyhome
ls colbyhome # only works from home
ls . # here

ls -lh # get ls to show more information
ls /courses/bi278 # where all the course files are
```

Moving around in Unix:
```
cd colbyhome
ls 
cd colbyhome
cd /personal/colbyid
cd ..
pwd
cd .
pwd
```
1.3 Organize your files
```
# go to your home directory, then
mkdir lab_01a
cp /courses/bi278/Course_Materials/lab_01a/* ./lab_01a
```

2. Collect genome statistics using a Unix script

2.1 Get basic information about genomes
```
grep ">" /courses/bi278/Course_Materials/lab_01b/filename
