Projects

To help you get better acquainted with your Linux filesystem, this section will walk you through two quick projects. The first one is designed to show you how you can create a small filesystem on your host, the second to acquaint you with a tool to inspect files and show you how to deal with some common files you might encounter.

Creating a Swap File

Assume you need more swap, either because you created an insufficiently large swap file to begin with, or because you find a particular program temporarily needs more swap. The commands in this section will be run as root, because most of them require root privileges.

First, you need to create a file the size of the swap space you want to add. For the purposes of this text, it will be small, ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.