INTRODUCTION�TO THE �UNIX COMMAND LINE
RP – 22.08.15
SET-UP
Download the Sample Material
* Download the shell_data.zip file from the Bootcamp Homepage
* Extract the contents – a shell_data folder
* Move the folder to your home directory (e.g., /Users/dan or C:\Users\Dan)
1. INTRODUCTION TO SHELL
What Is a Shell?
A shell is a computer program that presents a command line interface which allows you to control your computer using commands entered with a keyboard instead of controlling graphical user interfaces (GUIs) with a mouse/keyboard combination.
Why Should You Care?
Recap: Intro to Shell
Tab Completion:
Press <Tab> to fill the rest of the file/directory name
2. NAVIGATING FILES AND DIRECTORIES
File System
Parent Directory
Subdirectory
Subdirectory
Subdirectory
Subdirectory
Subdirectory
File
File
File
File
File
Home vs Root
…
…
Home
Application
Downloads
Desktop
Subdirectory
Subdirectory
File
File
File
File
File
Root
System
bin
…
…
…
…
Home vs Root
…
…
Home
Application
Downloads
Desktop
Subdirectory
Subdirectory
File
File
File
File
File
Root
System
bin
…
…
…
…
Recap: Navigating Files and Directories
3. WORKING WITH FILES AND DIRECTORIES�
Recap: Wildcards and Command History
WILDCARDS
COMMAND HISTORY
Recap: Examining Files and FASTQ Format
Recap: FASTQ Format
FORMAT
QUALITY SCORE
Recap: Creating, Moving, Copying, and Removing
4.REDIRECTION
Recap: GREP, Redirection, and Pipe
Recap: For Loops and Basename
for <variable> in <group to iterate over>
do
<some command> $<variable>
done
5. WRITING SCRIPTS AND WORKING WITH DATA
Recap: Writing Scripts and Downloading Data
6. PROJECT ORGANIZATION
Recap: Project Organization
CONCLUSION: WHAT DID WE LEARN?
Recap: Intro to Shell
Tab Completion:
Press <Tab> to fill the rest of the file/directory name
Recap: Navigating Files and Directories
Recap: Wildcards and Command History
WILDCARDS
COMMAND HISTORY
Recap: Examining Files and FASTQ Format
Recap: FASTQ Format
FORMAT
QUALITY SCORE
Recap: Creating, Moving, Copying, and Removing
Recap: GREP, Redirection, and Pipe
Recap: For Loops and Basename
for <variable> in <group to iterate over>
do
<some command> $<variable>
done
Recap: Writing Scripts and Downloading Data
Contact