class: center, middle, title .header[ .header-left[
] ] # Introduction to Unix ## Hands-on workshop ??? **p**: toggles **presenter** mode **c**: creates a **clone** for dual screen --- # Melbourne # Bioinformatics .header[ .header-right[
] ] * High-end Computing * Life Science Computing Expertise
melbournebioinformatics.org.au
??? --- # Why Unix? * Powerful * Big data * Flexible * Automation * Pipelines * Science Software ??? .smaller[ * Powerful: lots of CPU's and Memory, GUI wastes * Big data: excel has limits * Flexible: no need to click, copy paste; tell computer to do it * Automation: for loops * Pipelines: connect applications together * Science Software: lots, because of ^points ] --- # User Interface
Graphical User Interface (GUI)
Command Line Interface (CLI)
??? * My Documents -> Home dir * Double click folder -> cd folder --- # Command prompt
??? * Time: when last command finished * Username: you * Hostname: the computer you are connected to (useful in HPC course) * Current Working Directory: like the "location" bar at top of file explorer * Prompt: Give me something to do! --- # Command line
* space separation * quote spaces ??? * Simplified the prompt to just *$* * space separation: * 1+ spaces, * don't put spaces in filenames * parts: * command: the program/app running * flag: a *-* followed by a *letter*, turns feature on (or off) * long-flag: same as flage but *--* and a word * option: a (long-)*flag* followed by value. * anonymous options: values without a flag. (aka positional) * quote spaces: wrap with single/double --- # File System
??? * (Up-side-down) Tree * Root ~> (My) Computer * Directory == Folder * Dir in dir * /home/user1/ == Home ~= Documents * Absolute path for settings file --- # Absolute File Name
??? * Absolute <-> Full * Uniquely ID file/dir --- # Absolute File Name
* /settings --- # Absolute File Name
--- # Absolute File Name
* /home/user1/file01.txt --- # Absolute File Name
--- # Absolute File Name
* /home/user2 * Trailing "/" ignored ??? * Correct answer (no /) * Absolute = lots of typing --- # Current Working Directory * Position in filesystem * Starts at *Home*
??? * Position * Home * Reminder in Prompt --- # Relative File Name
* **CWD**: /home ??? * Relative to CWD * leave off first part --- # Relative File Name
* **CWD**: /home * user1/muscle.fq --- # Special File Names * **~** = *Home directory* * **.** = *CWD* * **..** = *Parent* of *CWD* * **...** = ?? --- # Special File Names * **~** = *Home directory* * **.** = *CWD* * **..** = *Parent* of *CWD* * **...** = ERROR, use **../..** instead --- # Relative File Name
* **CWD**: /home/user2 --- # Relative File Name
* **CWD**: /home/user2 * ../user1/muscle.fq --- # Before we start * Q/A style * Incremental Hints * Think > Hint > Answer #### What is the answer to Life?
Hint
What is the answer to everything?
As featured in
The Hitchhiker's Guide to the Galaxy
Answer
Answer
: 42
Ref:
Number 42 (Wikipedia)
??? --- # Ready, Set, Go .header[ .header-right[
] ] * Pairs? .giant-url2[bit.ly/2J82JH1] ??? * Pairs: * Recommend, * Alternate *driving* responsibilities * Make sure both understand what is happening