Course

Software Engineering Foundations

The everyday tools every backend engineer uses on real servers: the Linux shell, Git and a first deploy.

1module · 23 lessons · about 2 h 2 min · all free

Start with lesson 1

Sign in to track which lessons you have finished.

01

Linux and Git commands

  1. The shell: what happens when you type a commandHow the shell finds and runs a program, what PATH does, and how to read a manual or --help before you guess.5 min
  2. The file system: pwd, ls, cd and where things liveMove around a Linux server with pwd, ls and cd, tell absolute paths from relative ones, and know what /etc, /var, /opt and /home are for.5 min
  3. Working with files: cp, mv, rm, mkdir, wildcards and linksCopy, move, rename, create and delete files safely, use wildcards to act on many files at once, and understand hard links versus symbolic links.5 min
  4. Reading and finding: cat, less, head, tail -f, grep and findRead files of any size without opening an editor, follow a log as it grows, search inside files with grep and locate files with find.4 min
  5. Pipes and redirection: stdin, stdout, stderr, >, >>, 2>&1, |, tee and xargsConnect commands together, save output to files, separate errors from normal output, and feed lists of names into other commands.5 min
  6. Text processing for logs: sort, uniq, wc, cut, sed and awkTurn a raw log file into answers: count status codes, find the busiest paths and clients, and clean or edit text from the command line.4 min
  7. Users and permissions: rwx, chmod, chown, sudo and umaskRead the permission string from ls -l, change it with chmod in octal and symbolic form, fix a deploy folder that your user cannot write to, and use sudo without running everything as root.6 min
  8. Processes: ps, top, signals, kill, jobs and nohupSee what is running on a server, find the process that is eating CPU, stop it politely or forcefully with signals, and keep a command alive after you log out.5 min
  9. Services and logs: systemctl and journalctlStart, stop, restart and enable services with systemctl, write a small unit file for your own app, and read its logs with journalctl.5 min
  10. Networking from the shell: ip, ss, curl, dig, SSH keys, scp and rsyncFind a server's address, see which process owns a port, call an API with curl, check DNS with dig, log in with SSH keys and copy files with scp and rsync.6 min
  11. Disks, packages and archives: df, du, apt and tarCheck how full a server's disk is and what filled it, install and inspect software with apt, and pack or unpack backups and releases with tar.5 min
  12. Shell scripting: variables, if, loops, exit codes and set -euo pipefailTurn the commands you have learned into a safe, repeatable script with variables, conditions, loops, functions and strict error handling, and customise your shell with .bashrc.6 min
  13. How Git thinks: snapshots, the working tree, the staging area and the repositoryBuild the mental model that makes every Git command make sense: snapshots instead of diffs, and the three places a change can live.5 min
  14. Everyday Git: init, clone, status, add, commit, log, diff and .gitignoreThe handful of Git commands you will use dozens of times a day, how to read their output, and how to keep secrets and build files out of your repository.5 min
  15. Branches and merging: fast-forward versus merge commitCreate and switch branches, understand that a branch is just a pointer, and see when a merge simply moves the pointer forward and when it creates a merge commit.4 min
  16. Resolving merge conflictsUnderstand why Git stops with a conflict, read the conflict markers, resolve a conflict by editing, and know how to back out safely.5 min
  17. Remotes: fetch, pull, push and upstream branchesConnect your repository to a shared one, understand the difference between fetch and pull, read ahead and behind, and fix a rejected push.5 min
  18. Rebase and interactive rebaseMove a branch onto a newer base to keep history in a straight line, clean up messy commits with interactive rebase, and decide when to rebase and when to merge.6 min
  19. Undoing things: restore, reset, revert and reflogPick the right undo for each situation, understand soft, mixed and hard reset, use revert on shared history, and recover lost commits with the reflog.6 min
  20. stash, cherry-pick and tagsPut half-finished work aside with stash, copy a single commit to another branch with cherry-pick, and mark releases with tags.6 min
  21. Team workflow: pull requests, trunk-based versus Git Flow, and good commit messagesHow a change travels from your laptop to production on a team, the two most common branching strategies, and how to write commit messages your teammates will thank you for.6 min
  22. Inside .git: blobs, trees, commits, refs and HEADOpen the hidden .git folder and see that Git is a simple content-addressed store of four object types plus a few pointer files.6 min
  23. Capstone: deploy a small app to a Linux server over SSH with GitPut the whole module to work by shipping a tagged release to a server, checking that it is healthy, and rolling back when it is not.7 min