Cette page n’existe pas encore en français. Voici la version anglaise.

Dernière mise à jour du programme :

Course Overview

This course introduces the Linux command line, the everyday working environment for servers, containers and cloud native platforms. It focuses on the commands and utilities you will use most, including piping, redirection, wildcards, file permissions and the vim editor, and gives a solid foundation for our Docker/Podman and Kubernetes courses.

The course is based on Ubuntu, and the commands and principles apply equally to other Linux distributions such as Red Hat Enterprise Linux, Fedora, Debian and SUSE.

The course takes the format of a workshop, with a mix of lecture, working examples and practical exercises. Full course notes are provided along with sample files.

Course Prerequisites

This course is suitable for those who have some knowledge of Linux as well as those who are using the operating system for the first time.

Outline

Linux Fundamentals Overview

  • Aims and Objectives, Schedule, Introductions, Pre-requisites, Responsibilities

Accessing the System

Objectives and Fundamentals

  • What are Linux and Unix?
  • Logging On
  • Command Syntax:
    • Command Alone
    • Command With Options
    • Command With Filename

Basic Commands

  • uname - System Information
  • id - Current User Identity
  • who - Show Logged In Users
  • date - Display Date/Time
  • cal - Calendar Display
  • echo - Display Messages
  • Escape Character (\)
  • figlet - ASCII Art Text

System Navigation

  • Arrow Keys
  • man - Manual Pages
  • Important Control Keys

Account Management

  • passwd - Change Password
  • exit - Terminate Session

Shell Information

  • Advantages & Disadvantages
  • Basic Structure
  • ps - Process Status
  • Shell Types:
    • Bourne Shell
    • C Shell
    • Korn Shell
    • Bash Shell
  • Shell Selection

Additional Materials

  • Handouts
  • Self Study
  • History of Unix
  • History of Linux

Commands and Concepts

Core Concepts

  • Processes and Files
  • Directory Operations:
    • root Directory
    • ls - List Directory Contents
    • Directory Structure

File Operations

  • cat - Concatenate Files
  • less - File Viewer
  • wc - Word Count
  • nl - Number Lines
  • file - Determine File Type

I/O Operations

  • Piping (|)
  • Redirection (>, >>)
  • tee - Redirect and Pipe
  • Multiple Commands (;)

Administrative Commands

  • su - Switch User
  • sudo - Superuser Do

Additional Topics

  • Process Execution
  • File Types
  • script - Record Terminal Session
  • File Protection (noclobber)

Directory Commands

Directory Navigation

  • $HOME - Home Directory
  • pwd - Print Working Directory
  • cd - Change Directory

Shell Configuration

  • PS1 - Primary Prompt
  • Secondary Prompt (>)
  • Aliases
  • Shell Customization
  • . (dot) Command
  • Command History
  • Tab Completion

Directory Management

  • mkdir - Create Directory
  • rmdir - Remove Directory
  • Special Entries (. and ..)
  • type - Command Type
  • Path Names

File Commands

Basic File Operations

  • cp - Copy Files
  • cp -i - Interactive Copy
  • mv - Move Files
  • mv -i - Interactive Move
  • Directory Operations
  • touch - Create/Update Files
  • rm - Remove Files
    • rm -i - Interactive Remove
    • rm -f - Force Remove
    • rm -r - Recursive Remove

Wildcards

  • * - Match Any Characters
  • ? - Match Single Character
  • [] - Character Classes
  • Wildcard Usage with cp, rm, ls

Text Processing

  • wc - Word Count
  • Command Combinations
  • Workshop (Optional)

The vim Editor

Editor Basics

  • What is vi?
  • What is vim?
  • Basic Usage

Operating Modes

  • Command Mode (Cursor Movement)
  • Input/Replace Mode
  • Command-line Mode

Text Operations

  • Deletion
  • Cut and Paste
  • Yank and Put

File Comparison

  • cmp - Compare Files
  • diff - Find Differences
  • sdiff - Side-by-side Diff
  • vimdiff - Vim Diff Mode

Advanced Features

  • Regular Expressions
  • Global Commands
  • Line Addressing
  • Substitution
  • Settings Configuration
  • Syntax Highlighting

Finding Files and Job Control

File Search

  • find - Search Files
  • xargs - Build Command Lines

I/O Redirection

  • Error Redirection
  • Input Redirection (<)
  • Here Documents (<<)

Process Control

  • Foreground Jobs
  • Background Jobs (&)
  • kill - Terminate Processes
  • jobs - List Jobs

Job Scheduling

  • crontab - Schedule Tasks
  • at - One-time Job Schedule

System Communication

  • mail - Email
  • write - Send Messages
  • mesg - Message Permissions

File Management

  • Inodes
  • ln - Create Links

Print System

  • pr, lp, lpstat, cancel
  • lpr, lpq, lprm

Process Priority

  • nohup - No Hang Up
  • nice - Adjust Priority

Finding Text and Sorting

Text Search

  • grep - Pattern Search
  • egrep - Extended Grep

Text Processing

  • sort - Sort Lines
  • uniq - Remove Duplicates
  • cut - Extract Fields
  • tr - Translate Characters
  • expand/unexpand - Tab Conversion
  • join/paste - Combine Files
  • split - Split Files
  • fmt - Format Text
  • od - Octal Dump

Advanced Topics

  • Regular Expressions
  • Multiple File Editing

Backup Commands

Archive Operations

  • tar - Tape Archive
  • gzip/gunzip - Compression
  • cpio - Copy I/O
  • dd - Convert and Copy
  • Backup Scripting

File Permissions

Permission Management

  • File and Directory Permissions
  • Permission Evaluation
  • chmod - Change Permissions
  • Octal Notation
  • SUID Bit
  • umask - Default Permissions

Handouts

  • Essential Commands
  • vim Quick Reference
  • nano Quick Reference

Frequently asked questions

How long is the Linux Fundamentals course?

2 days, online. Sessions can run on consecutive days or be spread out to fit your team's schedule.

What are the prerequisites?

This course is suitable for those who have some knowledge of Linux as well as those who are using the operating system for the first time.

How large are the groups?

Deliberately small so the trainer can adapt to every participant: at most 7 online.

Cette formation m’intéresse, mais j’ai une question

Formations associées