Simplifying file management with GNU Stow

Safely Stowed Away

© Lead Image © zentilia, 123RF.com

© Lead Image © zentilia, 123RF.com

Article from Issue 231/2020
Author(s):

Stow helps you manage custom configuration files across multiple users and computers, as well as organize your dotfiles.

When it comes to file management, keeping chaos in check is highly recommended. Stow [1], a lesser-known GNU file management tool, functions as a symlink farm manager that organizes various sets of software or data located in separate directories on the filesystem, making them appear to be installed in a single directory tree.

Stow was originally created to manage software compiled on the system, which typically ends up in the subdirectories of /usr/local/. Stow is often used to install software globally across the system, but it also provides a clear-cut mechanism for managing configuration files and scripts in these installation's home directories. Stow can be considered the GNU project's official solution to keeping custom configuration files separate and distributing them to other systems.

When it comes to managing custom-compiled software, the software often does not come with an uninstall target in the makefile or a similar mechanism to get rid of it when needed. As a result, this can lead to a time-consuming manual uninstall. For instance, you would need to use whereis <software> to find out which subdirectories the software in question has been distributed to and then remove the files in each directory with rm -rf. Stow can simplify this process.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Linux from Scratch

    If you really want to learn about Linux, build it from scratch.

  • Admin Workshop: User Management

    The steps for setting up new accounts in Linux are automated and often use GUI-based tools. Under the hood, a number of mechanisms give the new user an environment to match his or her needs. In this month’s Admin Workshop we discuss techniques for setting up accounts.

  • Chakra Linux

    KDE lovers can rejoice at Chakra Linux's beautiful and functional operating system.

  • Perl: CMS with GitHub

    With its easy-to-use web interface, GitHub can be put to totally different uses than archiving code. For example, Perlmeister Mike Schilli used GitHub to deploy a content management system for simple websites.

  • Mining File Data

    Efficient tools to examine, edit, and transfer file information.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News