[DRAFT] Linux Fundamentals - vinhtbkit/bkit-kb GitHub Wiki

Linux Fundamentals

  • Goals: Trainees are equipped with hands on Linux skills so they can work with later projects easily
  • Duration: The training are expected to be completed within 30 hours

Qualification Criteria

  • Trainees prove their knowledge of most essentials Linux commands
  • Trainees understand the basics of filesystem and permissions
  • Trainees know how to create basic bash scripts

Linux Overview

Tips: use man <command> to discover the usage of a command on a CLI

  • Linux filesystems
    • Permissions
  • Linux basic commands:
    • Essentials: man, pwd, cd, mkdir, mv, cp, ls, rm, cat, touch, echo, chmod, grep
    • Using piping
    • Searching: sort, head, tail, find, locate
    • ps, netstat, ip (ifconfig), df, du, dd, zip, unzip, tar
  • Symlink

OPTIONAL

  • Users and groups
  • SSH and SCP
  • awk, sed
  • Using package manager for your system
  • systemctl / service manager

References

Using an editor

  • Using vi/vim
    • vimtutor
  • Alternatives: nano

Bash script

  • Bash script syntax
  • Using Environment variables

Quizzes

  1. How do you remove a folder and all its content?
  2. What is the difference between the paths: /home/users/bkit and home/users/bkit?
  3. How to change permissions for files with chmod. E.g: Grant write permission for others, remove execute permission for group
  4. How to know owner and group of a file?
  5. How do you find and count all .sh files in a folder?
⚠️ **GitHub.com Fallback** ⚠️