Introducing to Linux Shell

Description: Working with many of the HPC systems in Canada involves using the Linux/UNIX command line. This provides a very powerful interface, but it can be quite daunting for the uninitiated. In this half-day session, you can become initiated with this course. This hands on session will cover basic commands and scripting, as well as touching on some powerful constructs like awk. It could be a great boon for your productivity!

Participants are expected to bring a laptop for hands-on exercises.

Instructor: Ge Baolai, Tyson Whitehead, SHARCNET, Western University.

Prerequisites: None.

Schedule:

09:00 - 09:20 Setup Download files and install the shell.
09:20 - 09:30 Introduction to the Shell The command line environment and what do we use it for.
09:30 - 09:45 Navigating Files and Folders How can I move around on my computer?
How can I see what files and directories I have?
How can I specify the location of a file or directory on my computer?
09:45 - 10:00 Working with Files and Folders How can I create, copy, and delete files and directories?
How can I edit files?
10:00 - 10:15 Break
10:15 - 10:45 Processing Files with Filters and Pipes How can I find a file containing certain texts?
How can I replace texts in a file?
How can I count number of lines, characters, words in a file?
How can I extract a range of lines from a file
How can I extract certain columns from a file
10:45 - 11:15 Loops How can I perform the same actions on many different files?
11:15 - 11:30 Writing Shell Scripts How can I save and re-use commands?
11:30 - 12:00 Finding and Organizing Files How can I find files?
How can I better organize files?