Linux System Administration Basics#
Intermediate Linux CLI#
- Gold-standard book: The Linux Command Line
- Free PDF download, but purchase optional
- By William Shotts
- Sections 1 and 2. Section 3 is bash scripting which is also helpful to know, but more in the scope of T2S/MH pipeline.
Commands#
ftpandlftpscp?ssh
Bash#
I/O Redirection#
Standard Output#
Standard Input#
Pipes#
Expansion#
Pathname Expansion#
Tilde Expansion#
Brace Expansion#
Parameter Expansion#
Command Substitution#
Quoting#
Double Quotes#
Single Quotes#
Escaping Characters#
Basic Regex#
- Gold-standard tutorial: regexone.com
Basic Text Processing#
sortuniqgrepheadtailtrcut
Intro to Sed and Awk#
sedawk
Optional#
fmtpr
Permissions#
statchmodsusudochownchgrp
File perms#
User Management#
Job Control#
pskilljobsbgfg
Finding Files#
findlocate
Disk utilization#
dudf
Security#
Sessions#
sshscreen
Firewalls#
apfcsf
Backups and Archives#
tarrsync
Proposed lab:#
Perform a migration:
- Setup SSH keys
- Poke a hole in the firewall
- Create a tar ball
- migrate with rsync
Basic Performance Troubleshooting#
top&htopfreeuptimesar
Apache Domlogs#
- dedrads:
nlp
LAMP#
apachectlmysqlphpCLI
Proposed lab:#
Install a lamp stack from scratch, configure vhosts, setup mysql, install PHP and modules and get a WP site served on a unique domain with hosts file mod.