Linux Command Line 201

This course teaches you to work smarter from a command line.

In this 6-hour, 2-day online workshop you will learn how to work smarter using different Bash commands, Bash scripting and some quality of life topics. You can follow either day or both.

NOTE: You can run on your own (Linux) computer or on your favorite HPC cluster (that you already have access to).

At the end of each day, you should feel able to work smarter and able to avoid more grunt work (i.e. anything that involves repeated copypaste).

Prerequisites

I.e. we assume you know that:

  • Tab autocompletes commands
  • man shows a manual
  • cat shows text
  • less and more show scrollable text
  • nano is a text editor
  • find is used for file and directory search.
  • sort is used to print the output of a file in given order
  • head is used to print the first lines of a file
  • tail prints the lines at the end of a file
  • echo displays lines of text or strings that are passed as arguments

Topics

  • pipe
  • wc and cut
  • Regular expressions
  • Searching with grep
  • Replacing with sed
  • Minor mention of awk
  • Bash scripting
  • Environment variables
  • Advanced redirect
  • Links (hard/soft)
  • Archiving/compressing data