How to Use the Tree Command in Linux

An unfamiliar directory can contain several layers of folders, making its contents harder to scan. The tree command displays those folders and their files in a branching hierarchy. This article covers installing tree and tailoring its output with depth limits and name filters. TL;DR The tree command prints a directory and its contents as an

How to Use the Tree Command in Linux Read More »

How to Find Large Files in Linux

When Linux storage is running low, locating large files gives you paths to inspect. The find command searches a chosen directory for files above a size threshold. This article shows how to set that threshold and rank matching files by apparent size. It also explains when du helps compare directory usage. TL;DR: Find large files

How to Find Large Files in Linux Read More »

Installing MySQL on Debian/Ubuntu

A local application needs a place to store its data. MySQL Server is a database service that stores structured data and answers SQL requests, and the mysql client connects to it. I’ll show you how to install the distribution package with APT and check whether the service is active. TL;DR: Install MySQL with APT On

Installing MySQL on Debian/Ubuntu Read More »

How to Use the cp Command in Linux

Copying a file from a terminal means choosing a source path and a destination, which can have a different name. The cp command copies files and, with a recursive option, copies directories and their contents. In this piece, I’ll walk through copying files and directories with cp, then explain how to choose an overwrite option.

How to Use the cp Command in Linux Read More »