CertGrid CertGrid
Hands-on Lab·LPIC-1

Archives, cpio, dd, and the globs the shell expands

Objective 103.3 names tar, cpio and dd, and expects you to know what the shell does to a pattern before any of them run. This guide archives one tree four ways and measures the results, uses cpio to write, read and copy without an archive, copies blocks with dd, and shows the same glob succeeding in one shell and refusing to run in another.

101: GNU and Unix Commands Guide 28 of 33 Beginner

One host. Every command here is in coreutils, tar or cpio and behaves the same on the RPM family - except the missing compressor, which is a packaging difference the page checks for rather than assumes.
Server NameIP AddressOSRolesCPURAMHDD
LPIC1-A01192.168.0.76Ubuntu 26.04 LTSDebian-family host - dpkg and apt, which objective 102.4 names2 Core4 GB50 GB

This guide includes

Use this when packaging a directory for transfer or backup, or when a command behaves differently from how you typed it. This matters because the exam names three archiving tools with different syntax, and because globbing is done by the shell - so the command you ran is not always the command you wrote.

Before you start

  1. A tree to archive

  2. The compressor the objective names and the machine does not have

  3. tar, and the three compressors side by side

  4. cpio, which the objective names and nobody uses

  5. dd, which copies blocks rather than files

  6. Globbing, which the shell does before the command sees anything

  7. Putting the machine back

Official sources