Your DevOps study space

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

Packages, disks and archives · Linux Docs · StackwisePlanDevOps Packages, disks and archives · Linux Docs · StackwiseCodePython Packages, disks and archives · Linux Docs · StackwiseBuildDocker Packages, disks and archives · Linux Docs · StackwiseTestDevOps Packages, disks and archives · Linux Docs · StackwiseReleaseGit Packages, disks and archives · Linux Docs · StackwiseDeployKubernetes Packages, disks and archives · Linux Docs · StackwiseOperateLinux Packages, disks and archives · 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.

Packages, disks and archives

Setting up a server is mostly installing software, keeping an eye on disk space and moving files around in bundles. These are the everyday housekeeping commands.

Package managers

Instead of downloading installers from websites, Linux installs software from repositories: trusted online collections of packages maintained by the distro. A package manager downloads the package, installs its dependencies automatically, and can update or remove everything cleanly later. Which one you use depends on the distro family:

  • apt on Debian and Ubuntu (.deb packages)
  • dnf (older: yum) on Fedora, Red Hat, Rocky and Amazon Linux (.rpm packages)
$ sudo apt update            # refresh the list of available versions (installs nothing)
$ sudo apt upgrade           # install newer versions of what you already have
$ sudo apt install nginx git # install packages (dependencies come along)
$ sudo apt remove nginx      # uninstall
$ apt search postgres        # look for a package
$ apt list --installed       # what's on this machine
Run apt update before installing on a fresh server. Without it, apt works from an old list and can fail to find packages or install outdated versions.

Some tools aren't in the default repositories. Then you add the vendor's repository first (Node.js and Docker both document this), or install a language's own package manager like pip for Python or npm for Node.

Disk space

A full disk is one of the most common causes of mysterious failures: databases stop writing, logs stop, apps crash. Two commands answer the two questions you'll have:

$ df -h              # how full is each disk? (-h = human-readable sizes)
Filesystem  Size  Used Avail Use% Mounted on
/dev/sda1    25G   23G  2.0G  92% /

$ du -sh /var/log    # how big is this one folder?
$ du -sh /var/* | sort -h   # which folder is the culprit?

df looks at whole filesystems; du adds up the files inside a folder. Logs in /var/log and old Docker images are the usual suspects. Attaching a new disk means mounting it onto a folder (mount /dev/sdb1 /mnt/data); to make that permanent it goes into /etc/fstab.

Archives and compression

tar bundles many files into one archive; add z and it's also compressed with gzip, giving a .tar.gz file. Backups and software downloads use this constantly.

app/app.pyconfig.ymlstatic/backup.tarone file, same sizebackup.tar.gzone file, smallertar -c+ z (gzip)tar -czvf does both steps; tar -xzvf undoes them
tar bundles, gzip shrinks. The z in -czvf asks tar to do the gzip step for you.
$ tar -czvf backup.tar.gz app/    # c=create, z=gzip, v=list files, f=filename
$ tar -tzvf backup.tar.gz         # t=list what's inside without extracting
$ tar -xzvf backup.tar.gz         # x=extract into the current folder
$ tar -xzvf backup.tar.gz -C /srv # extract somewhere else
$ zip -r site.zip site/ ; unzip site.zip

A handy way to remember the letters: create, extract, list; z for gzip; f must come last because the filename follows it.

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.