3 Day – Linux Fundamentals

A 3 day introduction to the Linux command line environment for staff working predominantly with Linux servers and/or workstations. The course covers the Linux command line (Bash and Korn Shell), filename wildcards, I/O redirection, pipelines, filesystem, processes, customizing the login environment and the Met Office Storage Model. The focus is on an improved understanding of the shell’s command line parsing mechanism, as well as familiarity with the most commonly used Linux utilities.

Prerequisites

This course is designed for staff with little or no prior experience of the Linux command line, but who do have basic familiarity with using a computer keyboard and mouse in a window based environment such as Microsoft Windows, Linux Desktop or Mac OS X.

Learning Objectives

The course will introduce staff to the fundamental principles of the Linux environment and command shells, specifically:

  • Logging in and using the command line interface
  • Working effectively with wildcards and quotes
  • Managing files and directories
  • Building command lines using I/O redirection and pipelines
  • Understanding the Linux process model including environment variables
  • Customizing the shell login environment (Bash and Korn Shell)

Delivery

This course comprises a mix of theory, demonstrations and hands on exercises. Approximately 50% of the time is hands-on.

Day 1 – Command Line & Filesystem

  • Logging in & the shell command line
  • Manual pages and other sources of help
  • Command line editing and history
  • Filesystem architecture
  • Home directory
  • Relative and absolute pathnames
  • Copying and renaming files/directories
  • Creating and deleting files/directories
  • Network file system snapshots
  • Symbolic links
  • Searching for files using find
  • Filename generation

Day 2 – Profile & Filters

  • File permissions
  • Elevated privileges with sudo
  • Environment variables
  • Search PATH
  • Configuring the prompt
  • The login profile
  • Creating and executing scripts
  • Command aliases
  • STDIN, STDOUT and STDERR streams
  • Pipelines and I/O redirection
  • Simple filter commands

Day 3 – Processes & Tools

  • Process environment
  • Killing processes
  • Background job control
  • Using at and cron
  • Network file transfer
  • Working with tar, zip and gzip archives
  • Advanced find and filter commands
  • Sorting text data
  • Regular expressions and grep
  • The Met Office Storage Model