Skip to content

wbvguo/qcbio-intro2Unix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UCLA QCBio Collaboratory workshop W1: Introduction to Unix Command Line and Shell Programming

Author: Wenbin Guo
Last Update: 2022 Spring

Description

This introductory workshop introduces the Unix command line and shell programming fundamentals, focusing on building practical skills for computational biology and data science. In this workshop, we will learn to utilize essential commands, navigate Unix-based systems, manipulate files, and automate workflows. Additionally, the workshop covers writing and executing basic shell scripts to enhance productivity and reproducibility. For registration information, please refer to this link

Schedule

The workshop is taught every quarter (3-day workshop, 3 hours per day).

Day 1: Introduction to Unix command line

  • Overview of the Unix environment and command-line interface
  • Navigating file systems: directories, paths, and file management
  • Understanding file permissions and access
  • Basic commands for files and folders: ls, cd, cp, mv, rm, vi, gzip, scp, etc.
  • Hands-on exercises with command-line basics

Day 2: Advanced Command Line Tools and Text Processing

  • Working with file content: cat, head, sort, cut, count, etc.
  • Introduction to pipes and redirection (|, >, <)
  • Advanced text processing with sed, awk, and grep
  • Pattern matching and regular expressions
  • Practical exercises for data manipulation and exploration

Day 3: Shell scripts and submitting jobs on hoffman2

  • Variables, operations, loops, and conditionals in shell scripts
  • Writing and executing scripts for automation
  • Debugging and troubleshooting common script issues
  • Submitting and managing jobs on Hoffman2 cluster

Requirements

Technical:

Access to a Unix-based system (Linux or macOS) or the Windows Subsystem for Linux (WSL) for Windows users.

Prerequisite:

No prior experience with Unix or programming is required. Participants should have a Hoffman2 account to use hoffman2 cluster@UCLA

Folder Description

  • slides: slides for each day of the workshop
  • dayN: example code and exercises for each day’s topics

About

Unix command line and Shell programming workshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages