Your DevOps study space

Real explanations. Videos with tests. Fresh exams every time. Keep the streak alive and watch the XP stack up.

Finding your way around · Linux Docs · StackwisePlanDevOps Finding your way around · Linux Docs · StackwiseCodePython Finding your way around · Linux Docs · StackwiseBuildDocker Finding your way around · Linux Docs · StackwiseTestDevOps Finding your way around · Linux Docs · StackwiseReleaseGit Finding your way around · Linux Docs · StackwiseDeployKubernetes Finding your way around · Linux Docs · StackwiseOperateLinux Finding your way around · Linux Docs · StackwiseMonitorDevOps

Pick a topic

Eight tracks, each with docs, a cheat sheet, videos and tests.

How it works

One loop, repeated until it sticks.

Jump back in

Picked up from where you left off.

Free forever

Your DevOps journey starts with one click.

Sign in with Google or GitHub to open every chapter, video, test and challenge. Your progress is saved wherever you learn.

Finding your way around

Linux is the operating system almost every server, container and cloud machine runs on. When you do DevOps work you are mostly typing commands into a Linux shell, often on a machine with no screen at all, so being comfortable here is the foundation for everything else.

Brand new to all of this? Set up a terminal, Git, Python and Docker on your computer first: . It takes about an hour, then come back to this chapter.
Want the whole picture? The Linux path takes you from here to production troubleshooting in ten stages, with a lesson for every command, the combinations engineers use every day, incident walkthroughs and a safe practice lab.

What "Linux" actually means

Strictly, Linux is the kernel: the core program that talks to the hardware, shares out CPU time and memory, and manages files and networking. What you install is a distribution (distro) such as Ubuntu, Debian, Fedora or Rocky Linux, which bundles that kernel with tools, a package manager and default settings. You interact with it through a shell (usually bash), a program that reads the commands you type and runs them.

DevOps leans on Linux because it is free, stable enough to run for years without a reboot, easy to automate (everything can be done from a script), and it is what Docker containers and cloud images are built on.

One tree, one root

Windows gives each drive its own letter (C:, D:). Linux has a single tree that starts at / (called "root"). Extra disks, USB sticks and even information about running programs are attached somewhere inside that one tree, so every file on the system has exactly one path that starts with /.

The top-level folders each have a job, and knowing them tells you where to look:

  • /etc holds system-wide configuration. Nginx's settings live in /etc/nginx, SSH's in /etc/ssh.
  • /home has one folder per user, for example /home/demee. The shortcut ~ always means your own home folder.
  • /var is for data that changes while the system runs, most importantly logs in /var/log.
  • /usr contains installed programs and their shared files; /usr/bin is where most commands live.
  • /tmp is scratch space that gets wiped on reboot.
  • /dev represents hardware as files (disks show up as /dev/sda), and /proc is a virtual folder where the kernel exposes live information about processes and the system.

Swap is a reserved piece of disk the kernel uses as overflow memory once RAM is full. It keeps the machine alive under memory pressure, but it is far slower than real RAM.

Absolute and relative paths

An absolute path starts at the root and works from anywhere: /home/demee/projects. A relative path starts from wherever you are right now: if you are in /home/demee, then projects means the same folder. Two special names help: . is the current folder and .. is the one above it.

Moving around

$ pwd                 # where am I?
/home/demee
$ ls                  # what's in here?
projects  notes.txt  scripts
$ cd projects         # go into a folder (relative path)
$ cd ..               # back up one level
$ cd /var/log         # jump anywhere with an absolute path
$ cd                  # no argument = straight back home
$ ls -la              # long listing, including hidden files

ls -l shows one file per line with its permissions, owner, size and date; adding -a includes hidden files, which in Linux are simply files whose names start with a dot, like .bashrc or .git.

Looking inside files

cat file prints a whole file, which is fine for short ones. For long files use less file (scroll with arrow keys, search with /word, quit with q). head -n 20 file shows the first 20 lines and tail -n 20 file the last 20. The one you will use constantly on servers is tail -f /var/log/syslog: -f keeps the file open and prints new lines as they are written, so you can watch a log live while you reproduce a problem.

Creating, copying, moving, deleting

$ mkdir -p app/config        # -p creates missing parent folders too
$ touch app/config/.env      # empty file (or refresh the timestamp)
$ cp notes.txt backup.txt    # copy a file
$ cp -r app app-backup       # -r copies a folder and everything in it
$ mv backup.txt old/         # move into a folder
$ mv draft.txt final.txt     # "move" in place = rename
$ rm final.txt               # delete a file
$ rm -r app-backup           # delete a folder and its contents
There is no recycle bin in the shell. rm is permanent, and rm -rf deletes without asking even when files are write-protected. Read the path twice before pressing Enter, especially with sudo.

A symbolic link (ln -s target linkname) is a shortcut that points to another path instead of copying it. Servers use them a lot, for example Nginx enables a site by linking a file from sites-available into sites-enabled. Delete the target and the link breaks.

Finding things

find walks a folder tree and matches files by name, type, size or age: find /etc -name "*.conf" lists every .conf file under /etc, and find . -type f -mtime -1 finds files changed in the last day. To locate a command rather than a file, which python3 prints the path of the program that would run.

Questions

Pick an answer. Get it wrong and you can try again right away, no waiting. 10 questions per topic - pick a filter below, then use Recreate questions for a fresh set on that topic.

Fresh questions every time

Exam

A mixed test across the whole site, shuffled so you never know which topic comes next. When you submit, every mistake comes with the reason and a jump to the exact moment in the video that explains it.

30 questions 6 topics 20 minute limit Up to 70 XP
1–4 answer · ←→ move
History

Essay

0 / 200-250 words
Sample answer
History
0:00 / 0:00
Not started

on YouTube
Subscribe

Topic progress

Activity

Achievements

Settings

Your profile and your account.

Profile details

* Required. Saved in this browser until you sign in.

Letters, numbers, dots, dashes and underscores.
0 / 160

Account

Checking…

App

Install Stackwise on your phone or computer. It opens in its own window from your home screen, and the Docs and cheat sheets you've opened keep working without internet.

Only admins can see this

Dashboard

Sign-ups, activity, messages and reviews in one place.

Prove it

Certificates

Pass a topic's test and get a certificate with its own public page you can share or add to LinkedIn. Each test is 10 questions drawn at random and graded on the server; you need 8 right, you have 15 minutes, and you get one try per topic a day.

From first command to production

Linux for DevOps

A path through Linux the way DevOps engineers use it: ten stages, every command explained with its flags, examples, real output and mistakes, the combinations engineers chain together, and incidents worked through step by step. Practise everything in a safe lab folder.

Before the interview

Interview prep

Questions that come up in real DevOps interviews, with the kind of answer that lands. Say yours out loud first, then compare. Each one links to the chapter that goes deeper.

    Private to you

    My notes

    Everything you wrote down while watching and reading, in one place. Saved to your account, never shown to anyone.