Files
uutils.github.io/user/print.html
T
2022-06-17 03:36:14 +00:00

8672 lines
332 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE HTML>
<html lang="en" class="sidebar-visible no-js light">
<head>
<!-- Book generated using mdBook -->
<meta charset="UTF-8">
<title>uutils Documentation</title>
<meta name="robots" content="noindex" />
<!-- Custom HTML head -->
<style>
dd {
margin-bottom: 1em;
}
main {
position: relative;
}
.additional {
position: absolute;
top: 0.5em;
right: 0;
display: flex;
gap: 5px;
align-items: center;
font-size: 1.3em;
}
.platforms {
font-size: 2rem;
}
dd > p {
margin-top: 0.2em;
}
</style>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#ffffff" />
<link rel="shortcut icon" href="favicon.png">
<link rel="stylesheet" href="css/variables.css">
<link rel="stylesheet" href="css/general.css">
<link rel="stylesheet" href="css/chrome.css">
<link rel="stylesheet" href="css/print.css" media="print">
<!-- Fonts -->
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css">
<link rel="stylesheet" href="fonts/fonts.css">
<!-- Highlight.js Stylesheets -->
<link rel="stylesheet" href="highlight.css">
<link rel="stylesheet" href="tomorrow-night.css">
<link rel="stylesheet" href="ayu-highlight.css">
<!-- Custom theme stylesheets -->
</head>
<body>
<!-- Provide site root to javascript -->
<script type="text/javascript">
var path_to_root = "";
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "navy" : "light";
</script>
<!-- Work around some values being stored in localStorage wrapped in quotes -->
<script type="text/javascript">
try {
var theme = localStorage.getItem('mdbook-theme');
var sidebar = localStorage.getItem('mdbook-sidebar');
if (theme.startsWith('"') && theme.endsWith('"')) {
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1));
}
if (sidebar.startsWith('"') && sidebar.endsWith('"')) {
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1));
}
} catch (e) { }
</script>
<!-- Set the theme before any content is loaded, prevents flash -->
<script type="text/javascript">
var theme;
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
if (theme === null || theme === undefined) { theme = default_theme; }
var html = document.querySelector('html');
html.classList.remove('no-js')
html.classList.remove('light')
html.classList.add(theme);
html.classList.add('js');
</script>
<!-- Hide / unhide sidebar before it is displayed -->
<script type="text/javascript">
var html = document.querySelector('html');
var sidebar = 'hidden';
if (document.body.clientWidth >= 1080) {
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { }
sidebar = sidebar || 'visible';
}
html.classList.remove('sidebar-visible');
html.classList.add("sidebar-" + sidebar);
</script>
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
<div class="sidebar-scrollbox">
<ol class="chapter"><li class="chapter-item expanded affix "><a href="index.html">Introduction</a></li><li class="chapter-item expanded "><a href="installation.html"><strong aria-hidden="true">1.</strong> Installation</a></li><li class="chapter-item expanded "><a href="contributing.html"><strong aria-hidden="true">2.</strong> Contributing</a></li><li class="chapter-item expanded "><a href="test_coverage.html"><strong aria-hidden="true">3.</strong> GNU test coverage</a></li><li class="chapter-item expanded affix "><li class="part-title">Reference</li><li class="chapter-item expanded "><a href="multicall.html"><strong aria-hidden="true">4.</strong> Multi-call binary</a></li><li class="chapter-item expanded "><a href="utils/arch.html"><strong aria-hidden="true">5.</strong> arch</a></li><li class="chapter-item expanded "><a href="utils/b2sum.html"><strong aria-hidden="true">6.</strong> b2sum</a></li><li class="chapter-item expanded "><a href="utils/b3sum.html"><strong aria-hidden="true">7.</strong> b3sum</a></li><li class="chapter-item expanded "><a href="utils/base32.html"><strong aria-hidden="true">8.</strong> base32</a></li><li class="chapter-item expanded "><a href="utils/base64.html"><strong aria-hidden="true">9.</strong> base64</a></li><li class="chapter-item expanded "><a href="utils/basename.html"><strong aria-hidden="true">10.</strong> basename</a></li><li class="chapter-item expanded "><a href="utils/basenc.html"><strong aria-hidden="true">11.</strong> basenc</a></li><li class="chapter-item expanded "><a href="utils/cat.html"><strong aria-hidden="true">12.</strong> cat</a></li><li class="chapter-item expanded "><a href="utils/chcon.html"><strong aria-hidden="true">13.</strong> chcon</a></li><li class="chapter-item expanded "><a href="utils/chgrp.html"><strong aria-hidden="true">14.</strong> chgrp</a></li><li class="chapter-item expanded "><a href="utils/chmod.html"><strong aria-hidden="true">15.</strong> chmod</a></li><li class="chapter-item expanded "><a href="utils/chown.html"><strong aria-hidden="true">16.</strong> chown</a></li><li class="chapter-item expanded "><a href="utils/chroot.html"><strong aria-hidden="true">17.</strong> chroot</a></li><li class="chapter-item expanded "><a href="utils/cksum.html"><strong aria-hidden="true">18.</strong> cksum</a></li><li class="chapter-item expanded "><a href="utils/comm.html"><strong aria-hidden="true">19.</strong> comm</a></li><li class="chapter-item expanded "><a href="utils/cp.html"><strong aria-hidden="true">20.</strong> cp</a></li><li class="chapter-item expanded "><a href="utils/csplit.html"><strong aria-hidden="true">21.</strong> csplit</a></li><li class="chapter-item expanded "><a href="utils/cut.html"><strong aria-hidden="true">22.</strong> cut</a></li><li class="chapter-item expanded "><a href="utils/date.html"><strong aria-hidden="true">23.</strong> date</a></li><li class="chapter-item expanded "><a href="utils/dd.html"><strong aria-hidden="true">24.</strong> dd</a></li><li class="chapter-item expanded "><a href="utils/df.html"><strong aria-hidden="true">25.</strong> df</a></li><li class="chapter-item expanded "><a href="utils/dir.html"><strong aria-hidden="true">26.</strong> dir</a></li><li class="chapter-item expanded "><a href="utils/dircolors.html"><strong aria-hidden="true">27.</strong> dircolors</a></li><li class="chapter-item expanded "><a href="utils/dirname.html"><strong aria-hidden="true">28.</strong> dirname</a></li><li class="chapter-item expanded "><a href="utils/du.html"><strong aria-hidden="true">29.</strong> du</a></li><li class="chapter-item expanded "><a href="utils/echo.html"><strong aria-hidden="true">30.</strong> echo</a></li><li class="chapter-item expanded "><a href="utils/env.html"><strong aria-hidden="true">31.</strong> env</a></li><li class="chapter-item expanded "><a href="utils/expand.html"><strong aria-hidden="true">32.</strong> expand</a></li><li class="chapter-item expanded "><a href="utils/expr.html"><strong aria-hidden="true">33.</strong> expr</a></li><li class="chapter-item expanded "><a href="utils/factor.html"><strong aria-hidden="true">34.</strong> factor</a></li><li class="chapter-item expanded "><a href="utils/false.html"><strong aria-hidden="true">35.</strong> false</a></li><li class="chapter-item expanded "><a href="utils/fmt.html"><strong aria-hidden="true">36.</strong> fmt</a></li><li class="chapter-item expanded "><a href="utils/fold.html"><strong aria-hidden="true">37.</strong> fold</a></li><li class="chapter-item expanded "><a href="utils/groups.html"><strong aria-hidden="true">38.</strong> groups</a></li><li class="chapter-item expanded "><a href="utils/hashsum.html"><strong aria-hidden="true">39.</strong> hashsum</a></li><li class="chapter-item expanded "><a href="utils/head.html"><strong aria-hidden="true">40.</strong> head</a></li><li class="chapter-item expanded "><a href="utils/hostid.html"><strong aria-hidden="true">41.</strong> hostid</a></li><li class="chapter-item expanded "><a href="utils/hostname.html"><strong aria-hidden="true">42.</strong> hostname</a></li><li class="chapter-item expanded "><a href="utils/id.html"><strong aria-hidden="true">43.</strong> id</a></li><li class="chapter-item expanded "><a href="utils/install.html"><strong aria-hidden="true">44.</strong> install</a></li><li class="chapter-item expanded "><a href="utils/join.html"><strong aria-hidden="true">45.</strong> join</a></li><li class="chapter-item expanded "><a href="utils/kill.html"><strong aria-hidden="true">46.</strong> kill</a></li><li class="chapter-item expanded "><a href="utils/link.html"><strong aria-hidden="true">47.</strong> link</a></li><li class="chapter-item expanded "><a href="utils/ln.html"><strong aria-hidden="true">48.</strong> ln</a></li><li class="chapter-item expanded "><a href="utils/logname.html"><strong aria-hidden="true">49.</strong> logname</a></li><li class="chapter-item expanded "><a href="utils/ls.html"><strong aria-hidden="true">50.</strong> ls</a></li><li class="chapter-item expanded "><a href="utils/md5sum.html"><strong aria-hidden="true">51.</strong> md5sum</a></li><li class="chapter-item expanded "><a href="utils/mkdir.html"><strong aria-hidden="true">52.</strong> mkdir</a></li><li class="chapter-item expanded "><a href="utils/mkfifo.html"><strong aria-hidden="true">53.</strong> mkfifo</a></li><li class="chapter-item expanded "><a href="utils/mknod.html"><strong aria-hidden="true">54.</strong> mknod</a></li><li class="chapter-item expanded "><a href="utils/mktemp.html"><strong aria-hidden="true">55.</strong> mktemp</a></li><li class="chapter-item expanded "><a href="utils/more.html"><strong aria-hidden="true">56.</strong> more</a></li><li class="chapter-item expanded "><a href="utils/mv.html"><strong aria-hidden="true">57.</strong> mv</a></li><li class="chapter-item expanded "><a href="utils/nice.html"><strong aria-hidden="true">58.</strong> nice</a></li><li class="chapter-item expanded "><a href="utils/nl.html"><strong aria-hidden="true">59.</strong> nl</a></li><li class="chapter-item expanded "><a href="utils/nohup.html"><strong aria-hidden="true">60.</strong> nohup</a></li><li class="chapter-item expanded "><a href="utils/nproc.html"><strong aria-hidden="true">61.</strong> nproc</a></li><li class="chapter-item expanded "><a href="utils/numfmt.html"><strong aria-hidden="true">62.</strong> numfmt</a></li><li class="chapter-item expanded "><a href="utils/od.html"><strong aria-hidden="true">63.</strong> od</a></li><li class="chapter-item expanded "><a href="utils/paste.html"><strong aria-hidden="true">64.</strong> paste</a></li><li class="chapter-item expanded "><a href="utils/pathchk.html"><strong aria-hidden="true">65.</strong> pathchk</a></li><li class="chapter-item expanded "><a href="utils/pinky.html"><strong aria-hidden="true">66.</strong> pinky</a></li><li class="chapter-item expanded "><a href="utils/pr.html"><strong aria-hidden="true">67.</strong> pr</a></li><li class="chapter-item expanded "><a href="utils/printenv.html"><strong aria-hidden="true">68.</strong> printenv</a></li><li class="chapter-item expanded "><a href="utils/printf.html"><strong aria-hidden="true">69.</strong> printf</a></li><li class="chapter-item expanded "><a href="utils/ptx.html"><strong aria-hidden="true">70.</strong> ptx</a></li><li class="chapter-item expanded "><a href="utils/pwd.html"><strong aria-hidden="true">71.</strong> pwd</a></li><li class="chapter-item expanded "><a href="utils/readlink.html"><strong aria-hidden="true">72.</strong> readlink</a></li><li class="chapter-item expanded "><a href="utils/realpath.html"><strong aria-hidden="true">73.</strong> realpath</a></li><li class="chapter-item expanded "><a href="utils/relpath.html"><strong aria-hidden="true">74.</strong> relpath</a></li><li class="chapter-item expanded "><a href="utils/rm.html"><strong aria-hidden="true">75.</strong> rm</a></li><li class="chapter-item expanded "><a href="utils/rmdir.html"><strong aria-hidden="true">76.</strong> rmdir</a></li><li class="chapter-item expanded "><a href="utils/runcon.html"><strong aria-hidden="true">77.</strong> runcon</a></li><li class="chapter-item expanded "><a href="utils/seq.html"><strong aria-hidden="true">78.</strong> seq</a></li><li class="chapter-item expanded "><a href="utils/sha1sum.html"><strong aria-hidden="true">79.</strong> sha1sum</a></li><li class="chapter-item expanded "><a href="utils/sha224sum.html"><strong aria-hidden="true">80.</strong> sha224sum</a></li><li class="chapter-item expanded "><a href="utils/sha256sum.html"><strong aria-hidden="true">81.</strong> sha256sum</a></li><li class="chapter-item expanded "><a href="utils/sha3-224sum.html"><strong aria-hidden="true">82.</strong> sha3-224sum</a></li><li class="chapter-item expanded "><a href="utils/sha3-256sum.html"><strong aria-hidden="true">83.</strong> sha3-256sum</a></li><li class="chapter-item expanded "><a href="utils/sha3-384sum.html"><strong aria-hidden="true">84.</strong> sha3-384sum</a></li><li class="chapter-item expanded "><a href="utils/sha3-512sum.html"><strong aria-hidden="true">85.</strong> sha3-512sum</a></li><li class="chapter-item expanded "><a href="utils/sha384sum.html"><strong aria-hidden="true">86.</strong> sha384sum</a></li><li class="chapter-item expanded "><a href="utils/sha3sum.html"><strong aria-hidden="true">87.</strong> sha3sum</a></li><li class="chapter-item expanded "><a href="utils/sha512sum.html"><strong aria-hidden="true">88.</strong> sha512sum</a></li><li class="chapter-item expanded "><a href="utils/shake128sum.html"><strong aria-hidden="true">89.</strong> shake128sum</a></li><li class="chapter-item expanded "><a href="utils/shake256sum.html"><strong aria-hidden="true">90.</strong> shake256sum</a></li><li class="chapter-item expanded "><a href="utils/shred.html"><strong aria-hidden="true">91.</strong> shred</a></li><li class="chapter-item expanded "><a href="utils/shuf.html"><strong aria-hidden="true">92.</strong> shuf</a></li><li class="chapter-item expanded "><a href="utils/sleep.html"><strong aria-hidden="true">93.</strong> sleep</a></li><li class="chapter-item expanded "><a href="utils/sort.html"><strong aria-hidden="true">94.</strong> sort</a></li><li class="chapter-item expanded "><a href="utils/split.html"><strong aria-hidden="true">95.</strong> split</a></li><li class="chapter-item expanded "><a href="utils/stat.html"><strong aria-hidden="true">96.</strong> stat</a></li><li class="chapter-item expanded "><a href="utils/stdbuf.html"><strong aria-hidden="true">97.</strong> stdbuf</a></li><li class="chapter-item expanded "><a href="utils/sum.html"><strong aria-hidden="true">98.</strong> sum</a></li><li class="chapter-item expanded "><a href="utils/sync.html"><strong aria-hidden="true">99.</strong> sync</a></li><li class="chapter-item expanded "><a href="utils/tac.html"><strong aria-hidden="true">100.</strong> tac</a></li><li class="chapter-item expanded "><a href="utils/tail.html"><strong aria-hidden="true">101.</strong> tail</a></li><li class="chapter-item expanded "><a href="utils/tee.html"><strong aria-hidden="true">102.</strong> tee</a></li><li class="chapter-item expanded "><a href="utils/test.html"><strong aria-hidden="true">103.</strong> test</a></li><li class="chapter-item expanded "><a href="utils/timeout.html"><strong aria-hidden="true">104.</strong> timeout</a></li><li class="chapter-item expanded "><a href="utils/touch.html"><strong aria-hidden="true">105.</strong> touch</a></li><li class="chapter-item expanded "><a href="utils/tr.html"><strong aria-hidden="true">106.</strong> tr</a></li><li class="chapter-item expanded "><a href="utils/true.html"><strong aria-hidden="true">107.</strong> true</a></li><li class="chapter-item expanded "><a href="utils/truncate.html"><strong aria-hidden="true">108.</strong> truncate</a></li><li class="chapter-item expanded "><a href="utils/tsort.html"><strong aria-hidden="true">109.</strong> tsort</a></li><li class="chapter-item expanded "><a href="utils/tty.html"><strong aria-hidden="true">110.</strong> tty</a></li><li class="chapter-item expanded "><a href="utils/uname.html"><strong aria-hidden="true">111.</strong> uname</a></li><li class="chapter-item expanded "><a href="utils/unexpand.html"><strong aria-hidden="true">112.</strong> unexpand</a></li><li class="chapter-item expanded "><a href="utils/uniq.html"><strong aria-hidden="true">113.</strong> uniq</a></li><li class="chapter-item expanded "><a href="utils/unlink.html"><strong aria-hidden="true">114.</strong> unlink</a></li><li class="chapter-item expanded "><a href="utils/uptime.html"><strong aria-hidden="true">115.</strong> uptime</a></li><li class="chapter-item expanded "><a href="utils/users.html"><strong aria-hidden="true">116.</strong> users</a></li><li class="chapter-item expanded "><a href="utils/vdir.html"><strong aria-hidden="true">117.</strong> vdir</a></li><li class="chapter-item expanded "><a href="utils/wc.html"><strong aria-hidden="true">118.</strong> wc</a></li><li class="chapter-item expanded "><a href="utils/who.html"><strong aria-hidden="true">119.</strong> who</a></li><li class="chapter-item expanded "><a href="utils/whoami.html"><strong aria-hidden="true">120.</strong> whoami</a></li><li class="chapter-item expanded "><a href="utils/yes.html"><strong aria-hidden="true">121.</strong> yes</a></li></ol>
</div>
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
</nav>
<div id="page-wrapper" class="page-wrapper">
<div class="page">
<div id="menu-bar-hover-placeholder"></div>
<div id="menu-bar" class="menu-bar sticky bordered">
<div class="left-buttons">
<button id="sidebar-toggle" class="icon-button" type="button" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar">
<i class="fa fa-bars"></i>
</button>
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list">
<i class="fa fa-paint-brush"></i>
</button>
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
<li role="none"><button role="menuitem" class="theme" id="light">Light (default)</button></li>
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li>
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li>
</ul>
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar">
<i class="fa fa-search"></i>
</button>
</div>
<h1 class="menu-title">uutils Documentation</h1>
<div class="right-buttons">
<a href="print.html" title="Print this book" aria-label="Print this book">
<i id="print-button" class="fa fa-print"></i>
</a>
<a href="https://github.com/rust-lang/cargo/tree/master/src/doc/src" title="Git repository" aria-label="Git repository">
<i id="git-repository-button" class="fa fa-github"></i>
</a>
</div>
</div>
<div id="search-wrapper" class="hidden">
<form id="searchbar-outer" class="searchbar-outer">
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header">
</form>
<div id="searchresults-outer" class="searchresults-outer hidden">
<div id="searchresults-header" class="searchresults-header"></div>
<ul id="searchresults">
</ul>
</div>
</div>
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM -->
<script type="text/javascript">
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible');
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible');
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) {
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1);
});
</script>
<div id="content" class="content">
<main>
<h1 id="uutils-coreutils-documentation"><a class="header" href="#uutils-coreutils-documentation">uutils Coreutils Documentation</a></h1>
<p>uutils is an attempt at writing universal (as in cross-platform) CLI
utilities in <a href="https://www.rust-lang.org">Rust</a>. It is available for
Linux, Windows, Mac and other platforms.</p>
<p>The API reference for <code>uucore</code>, the library of functions shared between
various utils, is hosted at
<a href="https://docs.rs/uucore/latest/uucore/">docs.rs</a>.</p>
<p>uutils is licensed under the <a href="https://github.com/uutils/coreutils/blob/main/LICENSE">MIT License</a>.</p>
<h2 id="useful-links"><a class="header" href="#useful-links">Useful links</a></h2>
<ul>
<li><a href="https://github.com/uutils/coreutils/releases">Releases</a></li>
<li><a href="https://github.com/uutils/coreutils">Source Code</a></li>
<li><a href="https://github.com/uutils/coreutils/issues">Issues</a></li>
<li><a href="https://discord.gg/wQVJbvJ">Discord</a></li>
</ul>
<blockquote>
<p>Note: This manual is automatically generated from the source code and is
a work in progress.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="installation"><a class="header" href="#installation">Installation</a></h1>
<h2 id="requirements"><a class="header" href="#requirements">Requirements</a></h2>
<ul>
<li>Rust (<code>cargo</code>, <code>rustc</code>)</li>
<li>GNU Make (optional)</li>
</ul>
<h3 id="rust-version"><a class="header" href="#rust-version">Rust Version</a></h3>
<p>uutils follows Rust's release channels and is tested against stable, beta and nightly.
The current oldest supported version of the Rust compiler is <code>1.56</code>.</p>
<h2 id="building"><a class="header" href="#building">Building</a></h2>
<p>There are currently two methods to build the uutils binaries: either Cargo
or GNU Make.</p>
<blockquote>
<p>Building the full package, including all documentation, requires both Cargo
and Gnu Make on a Unix platform.</p>
</blockquote>
<p>For either method, we first need to fetch the repository:</p>
<pre><code class="language-bash">$ git clone https://github.com/uutils/coreutils
$ cd coreutils
</code></pre>
<h3 id="cargo"><a class="header" href="#cargo">Cargo</a></h3>
<p>Building uutils using Cargo is easy because the process is the same as for
every other Rust program:</p>
<pre><code class="language-bash">$ cargo build --release
</code></pre>
<p>This command builds the most portable common core set of uutils into a multicall
(BusyBox-type) binary, named 'coreutils', on most Rust-supported platforms.</p>
<p>Additional platform-specific uutils are often available. Building these
expanded sets of uutils for a platform (on that platform) is as simple as
specifying it as a feature:</p>
<pre><code class="language-bash">$ cargo build --release --features macos
# or ...
$ cargo build --release --features windows
# or ...
$ cargo build --release --features unix
</code></pre>
<p>If you don't want to build every utility available on your platform into the
final binary, you can also specify which ones you want to build manually.
For example:</p>
<pre><code class="language-bash">$ cargo build --features &quot;base32 cat echo rm&quot; --no-default-features
</code></pre>
<p>If you don't want to build the multicall binary and would prefer to build
the utilities as individual binaries, that is also possible. Each utility
is contained in its own package within the main repository, named
&quot;uu_UTILNAME&quot;. To build individual utilities, use cargo to build just the
specific packages (using the <code>--package</code> [aka <code>-p</code>] option). For example:</p>
<pre><code class="language-bash">$ cargo build -p uu_base32 -p uu_cat -p uu_echo -p uu_rm
</code></pre>
<h3 id="gnu-make"><a class="header" href="#gnu-make">GNU Make</a></h3>
<p>Building using <code>make</code> is a simple process as well.</p>
<p>To simply build all available utilities:</p>
<pre><code class="language-bash">$ make
</code></pre>
<p>To build all but a few of the available utilities:</p>
<pre><code class="language-bash">$ make SKIP_UTILS='UTILITY_1 UTILITY_2'
</code></pre>
<p>To build only a few of the available utilities:</p>
<pre><code class="language-bash">$ make UTILS='UTILITY_1 UTILITY_2'
</code></pre>
<h2 id="installation-1"><a class="header" href="#installation-1">Installation</a></h2>
<h3 id="cargo-1"><a class="header" href="#cargo-1">Cargo</a></h3>
<p>Likewise, installing can simply be done using:</p>
<pre><code class="language-bash">$ cargo install --path .
</code></pre>
<p>This command will install uutils into Cargo's <em>bin</em> folder (<em>e.g.</em> <code>$HOME/.cargo/bin</code>).</p>
<p>This does not install files necessary for shell completion. For shell completion to work,
use <code>GNU Make</code> or see <code>Manually install shell completions</code>.</p>
<h3 id="gnu-make-1"><a class="header" href="#gnu-make-1">GNU Make</a></h3>
<p>To install all available utilities:</p>
<pre><code class="language-bash">$ make install
</code></pre>
<p>To install using <code>sudo</code> switch <code>-E</code> must be used:</p>
<pre><code class="language-bash">$ sudo -E make install
</code></pre>
<p>To install all but a few of the available utilities:</p>
<pre><code class="language-bash">$ make SKIP_UTILS='UTILITY_1 UTILITY_2' install
</code></pre>
<p>To install only a few of the available utilities:</p>
<pre><code class="language-bash">$ make UTILS='UTILITY_1 UTILITY_2' install
</code></pre>
<p>To install every program with a prefix (e.g. uu-echo uu-cat):</p>
<pre><code class="language-bash">$ make PROG_PREFIX=PREFIX_GOES_HERE install
</code></pre>
<p>To install the multicall binary:</p>
<pre><code class="language-bash">$ make MULTICALL=y install
</code></pre>
<p>Set install parent directory (default value is /usr/local):</p>
<pre><code class="language-bash"># DESTDIR is also supported
$ make PREFIX=/my/path install
</code></pre>
<p>Installing with <code>make</code> installs shell completions for all installed utilities
for <code>bash</code>, <code>fish</code> and <code>zsh</code>. Completions for <code>elvish</code> and <code>powershell</code> can also
be generated; See <code>Manually install shell completions</code>.</p>
<h3 id="nixos"><a class="header" href="#nixos">NixOS</a></h3>
<p>The <a href="https://nixos.org/nixpkgs/manual/">standard package set</a> of <a href="https://nixos.org/">NixOS</a>
provides this package out of the box since 18.03:</p>
<pre><code class="language-shell">$ nix-env -iA nixos.uutils-coreutils
</code></pre>
<h3 id="manually-install-shell-completions"><a class="header" href="#manually-install-shell-completions">Manually install shell completions</a></h3>
<p>The <code>coreutils</code> binary can generate completions for the <code>bash</code>, <code>elvish</code>, <code>fish</code>, <code>powershell</code>
and <code>zsh</code> shells. It prints the result to stdout.</p>
<p>The syntax is:</p>
<pre><code class="language-bash">cargo run completion &lt;utility&gt; &lt;shell&gt;
</code></pre>
<p>So, to install completions for <code>ls</code> on <code>bash</code> to <code>/usr/local/share/bash-completion/completions/ls</code>,
run:</p>
<pre><code class="language-bash">cargo run completion ls bash &gt; /usr/local/share/bash-completion/completions/ls
</code></pre>
<h2 id="un-installation"><a class="header" href="#un-installation">Un-installation</a></h2>
<p>Un-installation differs depending on how you have installed uutils. If you used
Cargo to install, use Cargo to uninstall. If you used GNU Make to install, use
Make to uninstall.</p>
<h3 id="cargo-2"><a class="header" href="#cargo-2">Cargo</a></h3>
<p>To uninstall uutils:</p>
<pre><code class="language-bash">$ cargo uninstall uutils
</code></pre>
<h3 id="gnu-make-2"><a class="header" href="#gnu-make-2">GNU Make</a></h3>
<p>To uninstall all utilities:</p>
<pre><code class="language-bash">$ make uninstall
</code></pre>
<p>To uninstall every program with a set prefix:</p>
<pre><code class="language-bash">$ make PROG_PREFIX=PREFIX_GOES_HERE uninstall
</code></pre>
<p>To uninstall the multicall binary:</p>
<pre><code class="language-bash">$ make MULTICALL=y uninstall
</code></pre>
<p>To uninstall from a custom parent directory:</p>
<pre><code class="language-bash"># DESTDIR is also supported
$ make PREFIX=/my/path uninstall
</code></pre>
<div style="break-before: page; page-break-before: always;"></div><h1 id="contributing-to-coreutils"><a class="header" href="#contributing-to-coreutils">Contributing to coreutils</a></h1>
<p>Contributions are very welcome, and should target Rust's main branch until the
standard libraries are stabilized. You may <em>claim</em> an item on the to-do list by
following these steps:</p>
<ol>
<li>Open an issue named &quot;Implement [the utility of your choice]&quot;, e.g. &quot;Implement
ls&quot;.</li>
<li>State that you are working on this utility.</li>
<li>Develop the utility.</li>
<li>Add integration tests.</li>
<li>Add the reference to your utility into Cargo.toml and Makefile.</li>
<li>Remove utility from the to-do list in the README.</li>
<li>Submit a pull request and close the issue.</li>
</ol>
<p>The steps above imply that, before starting to work on a utility, you should
search the issues to make sure no one else is working on it.</p>
<h2 id="best-practices"><a class="header" href="#best-practices">Best practices</a></h2>
<ol>
<li>Follow what GNU is doing in terms of options and behavior. It is recommended
to look at the GNU Coreutils manual (<a href="https://www.gnu.org/software/coreutils/manual/html_node/index.html">on the
web</a>, or
locally using <code>info &lt;utility&gt;</code>). It is more in depth than the man pages and
provides a good description of available features and their implementation
details.</li>
<li>If possible, look at the GNU test suite execution in the CI and make the test
work if failing.</li>
<li>Use clap for argument management.</li>
<li>Make sure that the code coverage is covering all of the cases, including
errors.</li>
<li>The code must be clippy-warning-free and rustfmt-compliant.</li>
<li>Don't hesitate to move common functions into uucore if they can be reused by
other binaries.</li>
<li>Unsafe code should be documented with Safety comments.</li>
<li>uutils is original code. It cannot contain code from existing GNU or Unix-like
utilities, nor should it link to or reference GNU libraries.</li>
</ol>
<h2 id="commit-messages"><a class="header" href="#commit-messages">Commit messages</a></h2>
<p>To help the project maintainers review pull requests from contributors across
numerous utilities, the team has settled on conventions for commit messages.</p>
<p>From http://git-scm.com/book/ch5-2.html:</p>
<pre><code>Short (50 chars or less) summary of changes
More detailed explanatory text, if necessary. Wrap it to about 72
characters or so. In some contexts, the first line is treated as the
subject of an email and the rest of the text as the body. The blank
line separating the summary from the body is critical (unless you omit
the body entirely); tools like rebase can get confused if you run the
two together.
Further paragraphs come after blank lines.
- Bullet points are okay, too
- Typically a hyphen or asterisk is used for the bullet, preceded by a
single space, with blank lines in between, but conventions vary here
</code></pre>
<p>Furthermore, here are a few examples for a summary line:</p>
<ul>
<li>commit for a single utility</li>
</ul>
<pre><code>nohup: cleanup and refactor
</code></pre>
<ul>
<li>commit for a utility's tests</li>
</ul>
<pre><code>tests/rm: test new feature
</code></pre>
<p>Beyond changes to an individual utility or its tests, other summary
lines for non-utility modules include:</p>
<pre><code>README: add help
</code></pre>
<pre><code>uucore: add new modules
</code></pre>
<pre><code>uutils: add new utility
</code></pre>
<pre><code>gitignore: add temporary files
</code></pre>
<h2 id="cargo-deny"><a class="header" href="#cargo-deny">cargo-deny</a></h2>
<p>This project uses <a href="https://github.com/EmbarkStudios/cargo-deny/">cargo-deny</a> to
detect duplicate dependencies, checks licenses, etc. To run it locally, first
install it and then run with:</p>
<pre><code>cargo deny --all-features check all
</code></pre>
<h2 id="licensing"><a class="header" href="#licensing">Licensing</a></h2>
<p>uutils is distributed under the terms of the MIT License; see the <code>LICENSE</code> file
for details. This is a permissive license, which allows the software to be used
with few restrictions.</p>
<p>Copyrights in the uutils project are retained by their contributors, and no
copyright assignment is required to contribute.</p>
<p>If you wish to add or change dependencies as part of a contribution to the
project, a tool like <code>cargo-license</code> can be used to show their license details.
The following types of license are acceptable:</p>
<ul>
<li>MIT License</li>
<li>Dual- or tri-license with an MIT License option (&quot;Apache-2.0 or MIT&quot; is a
popular combination)</li>
<li>&quot;MIT equivalent&quot; license (2-clause BSD, 3-clause BSD, ISC)</li>
<li>License less restrictive than the MIT License (CC0 1.0 Universal)</li>
<li>Apache License version 2.0</li>
</ul>
<p>Licenses we will not use:</p>
<ul>
<li>An ambiguous license, or no license</li>
<li>Strongly reciprocal licenses (GNU GPL, GNU LGPL)</li>
</ul>
<p>If you wish to add a reference but it doesn't meet these requirements, please
raise an issue to describe the dependency.</p>
<div style="break-before: page; page-break-before: always;"></div><h1 id="gnu-test-coverage"><a class="header" href="#gnu-test-coverage">GNU Test Coverage</a></h1>
<p>uutils is actively tested against the GNU coreutils test suite. The results
below are automatically updated every day.</p>
<h2 id="coverage-per-category"><a class="header" href="#coverage-per-category">Coverage per category</a></h2>
<p>Click on the categories to see the names of the tests. Green indicates a passing
test, yellow indicates a skipped test and red means that the test either failed
or resulted in an error.</p>
<link rel="stylesheet" href="test_coverage.css">
<script src="test_coverage.js"></script>
<div id="test-cov"></div>
<h2 id="progress-over-time"><a class="header" href="#progress-over-time">Progress over time</a></h2>
<image src="https://github.com/uutils/coreutils-tracking/blob/main/gnu-results.png?raw=true">
<div style="break-before: page; page-break-before: always;"></div><h1 id="multi-call-binary"><a class="header" href="#multi-call-binary">Multi-call binary</a></h1>
<p>uutils includes a multi-call binary from which the utils can be invoked. This
reduces the binary size of the binary and can be useful for portability.</p>
<p>The first argument of the multi-call binary is the util to run, after which
the regular arguments to the util can be passed.</p>
<pre><code class="language-shell">coreutils [util] [util options]
</code></pre>
<p>The <code>--help</code> flag will print a list of available utils.</p>
<h2 id="example"><a class="header" href="#example">Example</a></h2>
<pre><code>coreutils ls -l
</code></pre>
<div style="break-before: page; page-break-before: always;"></div><h1 id="arch"><a class="header" href="#arch">arch</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>arch
</code></pre>
<p>Display machine architecture</p>
<h2 id="options"><a class="header" href="#options">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
</dl>
<h2 id="examples"><a class="header" href="#examples">Examples</a></h2>
<p>Display the system's architecture:</p>
<pre><code class="language-shell">arch
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="b2sum"><a class="header" href="#b2sum">b2sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>b2sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-1"><a class="header" href="#options-1">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-1"><a class="header" href="#examples-1">Examples</a></h2>
<p>Calculate the BLAKE2 checksum for a file:</p>
<pre><code class="language-shell">b2sum {{path/to/file}}
</code></pre>
<p>Calculate BLAKE2 checksums for multiple files:</p>
<pre><code class="language-shell">b2sum {{path/to/file1}} {{path/to/file2}}
</code></pre>
<p>Calculate the BLAKE2 checksum from stdin:</p>
<pre><code class="language-shell">{{some_command}} | b2sum
</code></pre>
<p>Read a file of BLAKE2 sums and filenames and verify all files have matching checksums:</p>
<pre><code class="language-shell">b2sum --check {{path/to/file.b2}}
</code></pre>
<p>Only show a message for missing files or when verification fails:</p>
<pre><code class="language-shell">b2sum --check --quiet {{path/to/file.b2}}
</code></pre>
<p>Only show a message for files for which verification fails, ignoring missing files:</p>
<pre><code class="language-shell">b2sum --ignore-missing --check --quiet {{path/to/file.b2}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="b3sum"><a class="header" href="#b3sum">b3sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>b3sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-2"><a class="header" href="#options-2">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--no-names</code></dt>
<dd>
<p>Omits filenames in the output (option not present in GNU/Coreutils)</p>
</dd>
</dl>
<div style="break-before: page; page-break-before: always;"></div><h1 id="base32"><a class="header" href="#base32">base32</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>base32 [OPTION]... [FILE]
</code></pre>
<p>With no FILE, or when FILE is -, read standard input.</p>
<p>The data are encoded as described for the base32 alphabet in RFC
4648. When decoding, the input may contain newlines in addition
to the bytes of the formal base32 alphabet. Use --ignore-garbage
to attempt to recover from any other non-alphabet bytes in the
encoded stream.</p>
<h2 id="options-3"><a class="header" href="#options-3">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--decode</code>, <code>-d</code></dt>
<dd>
<p>decode data</p>
</dd>
<dt><code>--ignore-garbage</code>, <code>-i</code></dt>
<dd>
<p>when decoding, ignore non-alphabetic characters</p>
</dd>
<dt><code>--wrap</code>, <code>-w</code></dt>
<dd>
<p>wrap encoded lines after COLS character (default 76, 0 to disable wrapping)</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-2"><a class="header" href="#examples-2">Examples</a></h2>
<p>Encode a file:</p>
<pre><code class="language-shell">base32 {{filename}}
</code></pre>
<p>Decode a file:</p>
<pre><code class="language-shell">base32 --decode {{filename}}
</code></pre>
<p>Encode from stdin:</p>
<pre><code class="language-shell">{{somecommand}} | base32
</code></pre>
<p>Decode from stdin:</p>
<pre><code class="language-shell">{{somecommand}} | base32 --decode
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="base64"><a class="header" href="#base64">base64</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>base64 [OPTION]... [FILE]
</code></pre>
<p>With no FILE, or when FILE is -, read standard input.</p>
<p>The data are encoded as described for the base32 alphabet in RFC
4648. When decoding, the input may contain newlines in addition
to the bytes of the formal base32 alphabet. Use --ignore-garbage
to attempt to recover from any other non-alphabet bytes in the
encoded stream.</p>
<h2 id="options-4"><a class="header" href="#options-4">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--decode</code>, <code>-d</code></dt>
<dd>
<p>decode data</p>
</dd>
<dt><code>--ignore-garbage</code>, <code>-i</code></dt>
<dd>
<p>when decoding, ignore non-alphabetic characters</p>
</dd>
<dt><code>--wrap</code>, <code>-w</code></dt>
<dd>
<p>wrap encoded lines after COLS character (default 76, 0 to disable wrapping)</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-3"><a class="header" href="#examples-3">Examples</a></h2>
<p>Encode the contents of a file as base64 and write the result to stdout:</p>
<pre><code class="language-shell">base64 {{filename}}
</code></pre>
<p>Decode the base64 contents of a file and write the result to stdout:</p>
<pre><code class="language-shell">base64 --decode {{filename}}
</code></pre>
<p>Encode from stdin:</p>
<pre><code class="language-shell">{{somecommand}} | base64
</code></pre>
<p>Decode from stdin:</p>
<pre><code class="language-shell">{{somecommand}} | base64 --decode
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="basename"><a class="header" href="#basename">basename</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>basename NAME [SUFFIX]
basename OPTION... NAME...
</code></pre>
<p>Print NAME with any leading directory components removed
If specified, also remove a trailing SUFFIX</p>
<h2 id="options-5"><a class="header" href="#options-5">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--multiple</code>, <code>-a</code></dt>
<dd>
<p>support multiple arguments and treat each as a NAME</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--suffix=&lt;SUFFIX&gt;</code>, <code>-s &lt;SUFFIX&gt;</code></dt>
<dd>
<p>remove a trailing SUFFIX; implies -a</p>
</dd>
<dt><code>--zero</code>, <code>-z</code></dt>
<dd>
<p>end each output line with NUL, not newline</p>
</dd>
</dl>
<h2 id="examples-4"><a class="header" href="#examples-4">Examples</a></h2>
<p>Show only the file name from a path:</p>
<pre><code class="language-shell">basename {{path/to/file}}
</code></pre>
<p>Show only the rightmost directory name from a path:</p>
<pre><code class="language-shell">basename {{path/to/directory/}}
</code></pre>
<p>Show only the file name from a path, with a suffix removed:</p>
<pre><code class="language-shell">basename {{path/to/file}} {{suffix}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="basenc"><a class="header" href="#basenc">basenc</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>basenc [OPTION]... [FILE]
</code></pre>
<p>With no FILE, or when FILE is -, read standard input.</p>
<p>When decoding, the input may contain newlines in addition to the bytes of
the formal alphabet. Use --ignore-garbage to attempt to recover
from any other non-alphabet bytes in the encoded stream.</p>
<h2 id="options-6"><a class="header" href="#options-6">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--decode</code>, <code>-d</code></dt>
<dd>
<p>decode data</p>
</dd>
<dt><code>--ignore-garbage</code>, <code>-i</code></dt>
<dd>
<p>when decoding, ignore non-alphabetic characters</p>
</dd>
<dt><code>--wrap</code>, <code>-w</code></dt>
<dd>
<p>wrap encoded lines after COLS character (default 76, 0 to disable wrapping)</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--base64</code></dt>
<dd>
</dd>
<dt><code>--base64url</code></dt>
<dd>
</dd>
<dt><code>--base32</code></dt>
<dd>
</dd>
<dt><code>--base32hex</code></dt>
<dd>
</dd>
<dt><code>--base16</code></dt>
<dd>
</dd>
<dt><code>--base2lsbf</code></dt>
<dd>
</dd>
<dt><code>--base2msbf</code></dt>
<dd>
</dd>
<dt><code>--z85</code></dt>
<dd>
</dd>
</dl>
<div style="break-before: page; page-break-before: always;"></div><h1 id="cat"><a class="header" href="#cat">cat</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>cat [OPTION]... [FILE]...
</code></pre>
<p>Concatenate FILE(s), or standard input, to standard output
With no FILE, or when FILE is -, read standard input.</p>
<h2 id="options-7"><a class="header" href="#options-7">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--show-all</code>, <code>-A</code></dt>
<dd>
<p>equivalent to -vET</p>
</dd>
<dt><code>--number-nonblank</code>, <code>-b</code></dt>
<dd>
<p>number nonempty output lines, overrides -n</p>
</dd>
<dt><code>-e</code></dt>
<dd>
<p>equivalent to -vE</p>
</dd>
<dt><code>--show-ends</code>, <code>-E</code></dt>
<dd>
<p>display $ at end of each line</p>
</dd>
<dt><code>--number</code>, <code>-n</code></dt>
<dd>
<p>number all output lines</p>
</dd>
<dt><code>--squeeze-blank</code>, <code>-s</code></dt>
<dd>
<p>suppress repeated empty output lines</p>
</dd>
<dt><code>--t</code>, <code>-t</code></dt>
<dd>
<p>equivalent to -vT</p>
</dd>
<dt><code>--show-tabs</code>, <code>-T</code></dt>
<dd>
<p>display TAB characters at ^I</p>
</dd>
<dt><code>--show-nonprinting</code>, <code>-v</code></dt>
<dd>
<p>use ^ and M- notation, except for LF (\n) and TAB (\t)</p>
</dd>
</dl>
<h2 id="examples-5"><a class="header" href="#examples-5">Examples</a></h2>
<p>Print the contents of a file to the standard output:</p>
<pre><code class="language-shell">cat {{file}}
</code></pre>
<p>Concatenate several files into the target file:</p>
<pre><code class="language-shell">cat {{file1}} {{file2}} &gt; {{target_file}}
</code></pre>
<p>Append several files into the target file:</p>
<pre><code class="language-shell">cat {{file1}} {{file2}} &gt;&gt; {{target_file}}
</code></pre>
<p>Number all output lines:</p>
<pre><code class="language-shell">cat -n {{file}}
</code></pre>
<p>Display non-printable and whitespace characters (with <code>M-</code> prefix if non-ASCII):</p>
<pre><code class="language-shell">cat -v -t -e {{file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="chcon"><a class="header" href="#chcon">chcon</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>chcon [OPTION]... CONTEXT FILE...
chcon [OPTION]... [-u USER] [-r ROLE] [-l RANGE] [-t TYPE] FILE...
chcon [OPTION]... --reference=RFILE FILE...
</code></pre>
<p>Change the SELinux security context of each FILE to CONTEXT.
With --reference, change the security context of each FILE to that of RFILE.</p>
<h2 id="options-8"><a class="header" href="#options-8">Options</a></h2>
<dl><dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Print help information.</p>
</dd>
<dt><code>--dereference</code></dt>
<dd>
<p>Affect the referent of each symbolic link (this is the default), rather than the symbolic link itself.</p>
</dd>
<dt><code>--no-dereference</code>, <code>-h</code></dt>
<dd>
<p>Affect symbolic links instead of any referenced file.</p>
</dd>
<dt><code>--preserve-root</code></dt>
<dd>
<p>Fail to operate recursively on '/'.</p>
</dd>
<dt><code>--no-preserve-root</code></dt>
<dd>
<p>Do not treat '/' specially (the default).</p>
</dd>
<dt><code>--reference=&lt;RFILE&gt;</code></dt>
<dd>
<p>Use security context of RFILE, rather than specifying a CONTEXT value.</p>
</dd>
<dt><code>--user=&lt;USER&gt;</code>, <code>-u &lt;USER&gt;</code></dt>
<dd>
<p>Set user USER in the target security context.</p>
</dd>
<dt><code>--role=&lt;ROLE&gt;</code>, <code>-r &lt;ROLE&gt;</code></dt>
<dd>
<p>Set role ROLE in the target security context.</p>
</dd>
<dt><code>--type=&lt;TYPE&gt;</code>, <code>-t &lt;TYPE&gt;</code></dt>
<dd>
<p>Set type TYPE in the target security context.</p>
</dd>
<dt><code>--range=&lt;RANGE&gt;</code>, <code>-l &lt;RANGE&gt;</code></dt>
<dd>
<p>Set range RANGE in the target security context.</p>
</dd>
<dt><code>--recursive</code>, <code>-R</code></dt>
<dd>
<p>Operate on files and directories recursively.</p>
</dd>
<dt><code>-H</code></dt>
<dd>
<p>If a command line argument is a symbolic link to a directory, traverse it. Only valid when -R is specified.</p>
</dd>
<dt><code>-L</code></dt>
<dd>
<p>Traverse every symbolic link to a directory encountered. Only valid when -R is specified.</p>
</dd>
<dt><code>-P</code></dt>
<dd>
<p>Do not traverse any symbolic links (default). Only valid when -R is specified.</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>Output a diagnostic for every file processed.</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-6"><a class="header" href="#examples-6">Examples</a></h2>
<p>View security context of a file:</p>
<pre><code class="language-shell">ls -lZ {{path/to/file}}
</code></pre>
<p>Change the security context of a target file, using a reference file:</p>
<pre><code class="language-shell">chcon --reference={{reference_file}} {{target_file}}
</code></pre>
<p>Change the full SELinux security context of a file:</p>
<pre><code class="language-shell">chcon {{user}}:{{role}}:{{type}}:{{range/level}} {{filename}}
</code></pre>
<p>Change only the user part of SELinux security context:</p>
<pre><code class="language-shell">chcon -u {{user}} {{filename}}
</code></pre>
<p>Change only the role part of SELinux security context:</p>
<pre><code class="language-shell">chcon -r {{role}} {{filename}}
</code></pre>
<p>Change only the type part of SELinux security context:</p>
<pre><code class="language-shell">chcon -t {{type}} {{filename}}
</code></pre>
<p>Change only the range/level part of SELinux security context:</p>
<pre><code class="language-shell">chcon -l {{range/level}} {{filename}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="chgrp"><a class="header" href="#chgrp">chgrp</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>chgrp [OPTION]... GROUP FILE...
chgrp [OPTION]... --reference=RFILE FILE...
</code></pre>
<p>Change the group of each FILE to GROUP.</p>
<h2 id="options-9"><a class="header" href="#options-9">Options</a></h2>
<dl><dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Print help information.</p>
</dd>
<dt><code>--changes</code>, <code>-c</code></dt>
<dd>
<p>like verbose but report only when a change is made</p>
</dd>
<dt><code>--silent</code>, <code>-f</code></dt>
<dd>
</dd>
<dt><code>--quiet</code></dt>
<dd>
<p>suppress most error messages</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>output a diagnostic for every file processed</p>
</dd>
<dt><code>--dereference</code></dt>
<dd>
</dd>
<dt><code>--no-dereference</code>, <code>-h</code></dt>
<dd>
<p>affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink)</p>
</dd>
<dt><code>--preserve-root</code></dt>
<dd>
<p>fail to operate recursively on '/'</p>
</dd>
<dt><code>--no-preserve-root</code></dt>
<dd>
<p>do not treat '/' specially (the default)</p>
</dd>
<dt><code>--reference=&lt;RFILE&gt;</code></dt>
<dd>
<p>use RFILE's group rather than specifying GROUP values</p>
</dd>
<dt><code>--recursive</code>, <code>-R</code></dt>
<dd>
<p>operate on files and directories recursively</p>
</dd>
<dt><code>-H</code></dt>
<dd>
<p>if a command line argument is a symbolic link to a directory, traverse it</p>
</dd>
<dt><code>-P</code></dt>
<dd>
<p>do not traverse any symbolic links (default)</p>
</dd>
<dt><code>-L</code></dt>
<dd>
<p>traverse every symbolic link to a directory encountered</p>
</dd>
</dl>
<h2 id="examples-7"><a class="header" href="#examples-7">Examples</a></h2>
<p>Change the owner group of a file/directory:</p>
<pre><code class="language-shell">chgrp {{group}} {{path/to/file_or_directory}}
</code></pre>
<p>Recursively change the owner group of a directory and its contents:</p>
<pre><code class="language-shell">chgrp -R {{group}} {{path/to/directory}}
</code></pre>
<p>Change the owner group of a symbolic link:</p>
<pre><code class="language-shell">chgrp -h {{group}} {{path/to/symlink}}
</code></pre>
<p>Change the owner group of a file/directory to match a reference file:</p>
<pre><code class="language-shell">chgrp --reference={{path/to/reference_file}} {{path/to/file_or_directory}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="chmod"><a class="header" href="#chmod">chmod</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>chmod [OPTION]... MODE[,MODE]... FILE...
chmod [OPTION]... OCTAL-MODE FILE...
chmod [OPTION]... --reference=RFILE FILE...
</code></pre>
<p>Change the mode of each FILE to MODE.
With --reference, change the mode of each FILE to that of RFILE.</p>
<h2 id="options-10"><a class="header" href="#options-10">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--changes</code>, <code>-c</code></dt>
<dd>
<p>like verbose but report only when a change is made</p>
</dd>
<dt><code>--quiet</code>, <code>--silent</code>, <code>-f</code></dt>
<dd>
<p>suppress most error messages</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>output a diagnostic for every file processed</p>
</dd>
<dt><code>--no-preserve-root</code></dt>
<dd>
<p>do not treat '/' specially (the default)</p>
</dd>
<dt><code>--preserve-root</code></dt>
<dd>
<p>fail to operate recursively on '/'</p>
</dd>
<dt><code>--recursive</code>, <code>-R</code></dt>
<dd>
<p>change files and directories recursively</p>
</dd>
<dt><code>--reference</code></dt>
<dd>
<p>use RFILE's mode instead of MODE values</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-8"><a class="header" href="#examples-8">Examples</a></h2>
<p>Give the [u]ser who owns a file the right to e[x]ecute it:</p>
<pre><code class="language-shell">chmod u+x {{file}}
</code></pre>
<p>Give the [u]ser rights to [r]ead and [w]rite to a file/directory:</p>
<pre><code class="language-shell">chmod u+rw {{file_or_directory}}
</code></pre>
<p>Remove e[x]ecutable rights from the [g]roup:</p>
<pre><code class="language-shell">chmod g-x {{file}}
</code></pre>
<p>Give [a]ll users rights to [r]ead and e[x]ecute:</p>
<pre><code class="language-shell">chmod a+rx {{file}}
</code></pre>
<p>Give [o]thers (not in the file owner's group) the same rights as the [g]roup:</p>
<pre><code class="language-shell">chmod o=g {{file}}
</code></pre>
<p>Remove all rights from [o]thers:</p>
<pre><code class="language-shell">chmod o= {{file}}
</code></pre>
<p>Change permissions recursively giving [g]roup and [o]thers the ability to [w]rite:</p>
<pre><code class="language-shell">chmod -R g+w,o+w {{directory}}
</code></pre>
<p>Recursively give [a]ll users [r]ead permissions to files and e[X]ecute permissions to sub-directories within a directory:</p>
<pre><code class="language-shell">chmod -R a+rX {{directory}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="chown"><a class="header" href="#chown">chown</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>chown [OPTION]... [OWNER][:[GROUP]] FILE...
chown [OPTION]... --reference=RFILE FILE...
</code></pre>
<p>change file owner and group</p>
<h2 id="options-11"><a class="header" href="#options-11">Options</a></h2>
<dl><dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Print help information.</p>
</dd>
<dt><code>--changes</code>, <code>-c</code></dt>
<dd>
<p>like verbose but report only when a change is made</p>
</dd>
<dt><code>--dereference</code></dt>
<dd>
<p>affect the referent of each symbolic link (this is the default), rather than the symbolic link itself</p>
</dd>
<dt><code>--no-dereference</code>, <code>-h</code></dt>
<dd>
<p>affect symbolic links instead of any referenced file (useful only on systems that can change the ownership of a symlink)</p>
</dd>
<dt><code>--from=&lt;CURRENT_OWNER:CURRENT_GROUP&gt;</code></dt>
<dd>
<p>change the owner and/or group of each file only if its current owner and/or group match those specified here. Either may be omitted, in which case a match is not required for the omitted attribute</p>
</dd>
<dt><code>--preserve-root</code></dt>
<dd>
<p>fail to operate recursively on '/'</p>
</dd>
<dt><code>--no-preserve-root</code></dt>
<dd>
<p>do not treat '/' specially (the default)</p>
</dd>
<dt><code>--quiet</code></dt>
<dd>
<p>suppress most error messages</p>
</dd>
<dt><code>--recursive</code>, <code>-R</code></dt>
<dd>
<p>operate on files and directories recursively</p>
</dd>
<dt><code>--reference=&lt;RFILE&gt;</code></dt>
<dd>
<p>use RFILE's owner and group rather than specifying OWNER:GROUP values</p>
</dd>
<dt><code>--silent</code>, <code>-f</code></dt>
<dd>
</dd>
<dt><code>-H</code></dt>
<dd>
<p>if a command line argument is a symbolic link to a directory, traverse it</p>
</dd>
<dt><code>-L</code></dt>
<dd>
<p>traverse every symbolic link to a directory encountered</p>
</dd>
<dt><code>-P</code></dt>
<dd>
<p>do not traverse any symbolic links (default)</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>output a diagnostic for every file processed</p>
</dd>
</dl>
<h2 id="examples-9"><a class="header" href="#examples-9">Examples</a></h2>
<p>Change the owner user of a file/directory:</p>
<pre><code class="language-shell">chown {{user}} {{path/to/file_or_directory}}
</code></pre>
<p>Change the owner user and group of a file/directory:</p>
<pre><code class="language-shell">chown {{user}}:{{group}} {{path/to/file_or_directory}}
</code></pre>
<p>Recursively change the owner of a directory and its contents:</p>
<pre><code class="language-shell">chown -R {{user}} {{path/to/directory}}
</code></pre>
<p>Change the owner of a symbolic link:</p>
<pre><code class="language-shell">chown -h {{user}} {{path/to/symlink}}
</code></pre>
<p>Change the owner of a file/directory to match a reference file:</p>
<pre><code class="language-shell">chown --reference={{path/to/reference_file}} {{path/to/file_or_directory}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="chroot"><a class="header" href="#chroot">chroot</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>chroot [OPTION]... NEWROOT [COMMAND [ARG]...]
</code></pre>
<p>Run COMMAND with root directory set to NEWROOT.</p>
<h2 id="options-12"><a class="header" href="#options-12">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--user=&lt;USER&gt;</code>, <code>-u &lt;USER&gt;</code></dt>
<dd>
<p>User (ID or name) to switch before running the program</p>
</dd>
<dt><code>--group=&lt;GROUP&gt;</code>, <code>-g &lt;GROUP&gt;</code></dt>
<dd>
<p>Group (ID or name) to switch to</p>
</dd>
<dt><code>--groups=&lt;GROUP1,GROUP2...&gt;</code>, <code>-G &lt;GROUP1,GROUP2...&gt;</code></dt>
<dd>
<p>Comma-separated list of groups to switch to</p>
</dd>
<dt><code>--userspec=&lt;USER:GROUP&gt;</code></dt>
<dd>
<p>Colon-separated user and group to switch to. Same as -u USER -g GROUP. Userspec has higher preference than -u and/or -g</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-10"><a class="header" href="#examples-10">Examples</a></h2>
<p>Run command as new root directory:</p>
<pre><code class="language-shell">chroot {{path/to/new/root}} {{command}}
</code></pre>
<p>Specify user and group (ID or name) to use:</p>
<pre><code class="language-shell">chroot --userspec={{user:group}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="cksum"><a class="header" href="#cksum">cksum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>cksum [OPTIONS] [FILE]...
</code></pre>
<p>Print CRC and size for each file</p>
<h2 id="options-13"><a class="header" href="#options-13">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-11"><a class="header" href="#examples-11">Examples</a></h2>
<p>Display a 32-bit checksum, size in bytes and filename:</p>
<pre><code class="language-shell">cksum {{path/to/file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="comm"><a class="header" href="#comm">comm</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>comm [OPTION]... FILE1 FILE2
</code></pre>
<p>compare two sorted files line by line</p>
<h2 id="options-14"><a class="header" href="#options-14">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>-1</code></dt>
<dd>
<p>suppress column 1 (lines unique to FILE1)</p>
</dd>
<dt><code>-2</code></dt>
<dd>
<p>suppress column 2 (lines unique to FILE2)</p>
</dd>
<dt><code>-3</code></dt>
<dd>
<p>suppress column 3 (lines that appear in both files)</p>
</dd>
<dt><code>--output-delimiter=&lt;STR&gt;</code></dt>
<dd>
<p>separate columns with STR</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-12"><a class="header" href="#examples-12">Examples</a></h2>
<p>Produce three tab-separated columns: lines only in first file, lines only in second file and common lines:</p>
<pre><code class="language-shell">comm {{file1}} {{file2}}
</code></pre>
<p>Print only lines common to both files:</p>
<pre><code class="language-shell">comm -12 {{file1}} {{file2}}
</code></pre>
<p>Print only lines common to both files, reading one file from stdin:</p>
<pre><code class="language-shell">cat {{file1}} | comm -12 - {{file2}}
</code></pre>
<p>Get lines only found in first file, saving the result to a third file:</p>
<pre><code class="language-shell">comm -23 {{file1}} {{file2}} &gt; {{file1_only}}
</code></pre>
<p>Print lines only found in second file, when the files aren't sorted:</p>
<pre><code class="language-shell">comm -13 &lt;(sort {{file1}}) &lt;(sort {{file2}})
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="cp"><a class="header" href="#cp">cp</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>cp [OPTION]... [-T] SOURCE DEST
cp [OPTION]... SOURCE... DIRECTORY
cp [OPTION]... -t DIRECTORY SOURCE...
</code></pre>
<p>Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.</p>
<h2 id="options-15"><a class="header" href="#options-15">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--target-directory=&lt;target-directory&gt;</code>, <code>-t &lt;target-directory&gt;</code></dt>
<dd>
<p>copy all SOURCE arguments into target-directory</p>
</dd>
<dt><code>--no-target-directory</code>, <code>-T</code></dt>
<dd>
<p>Treat DEST as a regular file and not a directory</p>
</dd>
<dt><code>--interactive</code>, <code>-i</code></dt>
<dd>
<p>ask before overwriting files</p>
</dd>
<dt><code>--link</code>, <code>-l</code></dt>
<dd>
<p>hard-link files instead of copying</p>
</dd>
<dt><code>--no-clobber</code>, <code>-n</code></dt>
<dd>
<p>don't overwrite a file that already exists</p>
</dd>
<dt><code>--recursive</code>, <code>-r</code></dt>
<dd>
<p>copy directories recursively</p>
</dd>
<dt><code>-R</code></dt>
<dd>
<p>same as -r</p>
</dd>
<dt><code>--strip-trailing-slashes</code></dt>
<dd>
<p>remove any trailing slashes from each SOURCE argument</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>explicitly state what is being done</p>
</dd>
<dt><code>--symbolic-link</code>, <code>-s</code></dt>
<dd>
<p>make symbolic links instead of copying</p>
</dd>
<dt><code>--force</code>, <code>-f</code></dt>
<dd>
<p>if an existing destination file cannot be opened, remove it and try again (this option is ignored when the -n option is also used). Currently not implemented for Windows.</p>
</dd>
<dt><code>--remove-destination</code></dt>
<dd>
<p>remove each existing destination file before attempting to open it (contrast with --force). On Windows, currently only works for writeable files.</p>
</dd>
<dt><code>--backup=&lt;CONTROL&gt;</code></dt>
<dd>
<p>make a backup of each existing destination file</p>
</dd>
<dt><code>-b</code></dt>
<dd>
<p>like --backup but does not accept an argument</p>
</dd>
<dt><code>--suffix=&lt;SUFFIX&gt;</code>, <code>-S &lt;SUFFIX&gt;</code></dt>
<dd>
<p>override the usual backup suffix</p>
</dd>
<dt><code>--update</code>, <code>-u</code></dt>
<dd>
<p>copy only when the SOURCE file is newer than the destination file or when the destination file is missing</p>
</dd>
<dt><code>--reflink=&lt;WHEN&gt;</code></dt>
<dd>
<p>control clone/CoW copies. See below</p>
</dd>
<dt><code>--attributes-only</code></dt>
<dd>
<p>Don't copy the file data, just the attributes</p>
</dd>
<dt><code>--preserve=&lt;ATTR_LIST&gt;</code></dt>
<dd>
<p>Preserve the specified attributes (default: mode, ownership (unix only), timestamps), if possible additional attributes: context, links, xattr, all</p>
</dd>
<dt><code>--preserve-default-attributes</code>, <code>-p</code></dt>
<dd>
<p>same as --preserve=mode,ownership(unix only),timestamps</p>
</dd>
<dt><code>--no-preserve=&lt;ATTR_LIST&gt;</code></dt>
<dd>
<p>don't preserve the specified attributes</p>
</dd>
<dt><code>--parents</code></dt>
<dd>
<p>use full source file name under DIRECTORY</p>
</dd>
<dt><code>--no-dereference</code>, <code>-P</code></dt>
<dd>
<p>never follow symbolic links in SOURCE</p>
</dd>
<dt><code>--dereference</code>, <code>-L</code></dt>
<dd>
<p>always follow symbolic links in SOURCE</p>
</dd>
<dt><code>--archive</code>, <code>-a</code></dt>
<dd>
<p>Same as -dR --preserve=all</p>
</dd>
<dt><code>-d</code></dt>
<dd>
<p>same as --no-dereference --preserve=links</p>
</dd>
<dt><code>--one-file-system</code>, <code>-x</code></dt>
<dd>
<p>stay on this file system</p>
</dd>
<dt><code>--copy-contents</code></dt>
<dd>
<p>NotImplemented: copy contents of special files when recursive</p>
</dd>
<dt><code>--sparse=&lt;WHEN&gt;</code></dt>
<dd>
<p>NotImplemented: control creation of sparse files. See below</p>
</dd>
<dt><code>--context=&lt;CTX&gt;</code></dt>
<dd>
<p>NotImplemented: set SELinux security context of destination file to default type</p>
</dd>
<dt><code>-H</code></dt>
<dd>
<p>NotImplemented: follow command-line symbolic links in SOURCE</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-13"><a class="header" href="#examples-13">Examples</a></h2>
<p>Copy a file to another location:</p>
<pre><code class="language-shell">cp {{path/to/source_file.ext}} {{path/to/target_file.ext}}
</code></pre>
<p>Copy a file into another directory, keeping the filename:</p>
<pre><code class="language-shell">cp {{path/to/source_file.ext}} {{path/to/target_parent_directory}}
</code></pre>
<p>Recursively copy a directory's contents to another location (if the destination exists, the directory is copied inside it):</p>
<pre><code class="language-shell">cp -R {{path/to/source_directory}} {{path/to/target_directory}}
</code></pre>
<p>Copy a directory recursively, in verbose mode (shows files as they are copied):</p>
<pre><code class="language-shell">cp -vR {{path/to/source_directory}} {{path/to/target_directory}}
</code></pre>
<p>Copy text files to another location, in interactive mode (prompts user before overwriting):</p>
<pre><code class="language-shell">cp -i {{*.txt}} {{path/to/target_directory}}
</code></pre>
<p>Follow symbolic links before copying:</p>
<pre><code class="language-shell">cp -L {{link}} {{path/to/target_directory}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="csplit"><a class="header" href="#csplit">csplit</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>csplit [OPTION]... FILE PATTERN...
</code></pre>
<p>split a file into sections determined by context lines</p>
<h2 id="options-16"><a class="header" href="#options-16">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--suffix-format=&lt;FORMAT&gt;</code>, <code>-b &lt;FORMAT&gt;</code></dt>
<dd>
<p>use sprintf FORMAT instead of %02d</p>
</dd>
<dt><code>--prefix=&lt;PREFIX&gt;</code>, <code>-f &lt;PREFIX&gt;</code></dt>
<dd>
<p>use PREFIX instead of 'xx'</p>
</dd>
<dt><code>--keep-files</code>, <code>-k</code></dt>
<dd>
<p>do not remove output files on errors</p>
</dd>
<dt><code>--suppress-matched</code></dt>
<dd>
<p>suppress the lines matching PATTERN</p>
</dd>
<dt><code>--digits=&lt;DIGITS&gt;</code>, <code>-n &lt;DIGITS&gt;</code></dt>
<dd>
<p>use specified number of digits instead of 2</p>
</dd>
<dt><code>--quiet</code>, <code>--silent</code>, <code>-s</code></dt>
<dd>
<p>do not print counts of output file sizes</p>
</dd>
<dt><code>--elide-empty-files</code>, <code>-z</code></dt>
<dd>
<p>remove empty output files</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-14"><a class="header" href="#examples-14">Examples</a></h2>
<p>Split a file at lines 5 and 23:</p>
<pre><code class="language-shell">csplit {{file}} {{5}} {{23}}
</code></pre>
<p>Split a file every 5 lines (this will fail if the total number of lines is not divisible by 5):</p>
<pre><code class="language-shell">csplit {{file}} {{5}} {*}
</code></pre>
<p>Split a file every 5 lines, ignoring exact-division error:</p>
<pre><code class="language-shell">csplit -k {{file}} {{5}} {*}
</code></pre>
<p>Split a file at line 5 and use a custom prefix for the output files:</p>
<pre><code class="language-shell">csplit {{file}} {{5}} -f {{prefix}}
</code></pre>
<p>Split a file at a line matching a regular expression:</p>
<pre><code class="language-shell">csplit {{file}} /{{regular_expression}}/
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="cut"><a class="header" href="#cut">cut</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>cut [-d] [-s] [-z] [--output-delimiter] ((-f|-b|-c) {{sequence}}) {{sourcefile}}+
</code></pre>
<p>Prints specified byte or field columns from each line of stdin or the input files</p>
<h2 id="options-17"><a class="header" href="#options-17">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--bytes=&lt;LIST&gt;</code>, <code>-b &lt;LIST&gt;</code></dt>
<dd>
<p>filter byte columns from the input source</p>
</dd>
<dt><code>--characters=&lt;LIST&gt;</code>, <code>-c &lt;LIST&gt;</code></dt>
<dd>
<p>alias for character mode</p>
</dd>
<dt><code>--delimiter=&lt;DELIM&gt;</code>, <code>-d &lt;DELIM&gt;</code></dt>
<dd>
<p>specify the delimiter character that separates fields in the input source. Defaults to Tab.</p>
</dd>
<dt><code>--fields=&lt;LIST&gt;</code>, <code>-f &lt;LIST&gt;</code></dt>
<dd>
<p>filter field columns from the input source</p>
</dd>
<dt><code>--complement</code></dt>
<dd>
<p>invert the filter - instead of displaying only the filtered columns, display all but those columns</p>
</dd>
<dt><code>--only-delimited</code>, <code>-s</code></dt>
<dd>
<p>in field mode, only print lines which contain the delimiter</p>
</dd>
<dt><code>--zero-terminated</code>, <code>-z</code></dt>
<dd>
<p>instead of filtering columns based on line, filter columns based on \0 (NULL character)</p>
</dd>
<dt><code>--output-delimiter=&lt;NEW_DELIM&gt;</code></dt>
<dd>
<p>in field mode, replace the delimiter in output lines with this option's argument</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-15"><a class="header" href="#examples-15">Examples</a></h2>
<p>Cut out the first sixteen characters of each line of stdin:</p>
<pre><code class="language-shell">cut -c {{1-16}}
</code></pre>
<p>Cut out the first sixteen characters of each line of the given files:</p>
<pre><code class="language-shell">cut -c {{1-16}} {{file}}
</code></pre>
<p>Cut out everything from the 3rd character to the end of each line:</p>
<pre><code class="language-shell">cut -c {{3-}}
</code></pre>
<p>Cut out the fifth field of each line, using a colon as a field delimiter (default delimiter is tab):</p>
<pre><code class="language-shell">cut -d'{{:}}' -f{{5}}
</code></pre>
<p>Cut out the 2nd and 10th fields of each line, using a semicolon as a delimiter:</p>
<pre><code class="language-shell">cut -d'{{;}}' -f{{2,10}}
</code></pre>
<p>Cut out the fields 3 through to the end of each line, using a space as a delimiter:</p>
<pre><code class="language-shell">cut -d'{{ }}' -f{{3-}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="date"><a class="header" href="#date">date</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>date [OPTION]... [+FORMAT]...
date [OPTION]... [MMDDhhmm[[CC]YY][.ss]]
</code></pre>
<p>print or set the system date and time</p>
<h2 id="options-18"><a class="header" href="#options-18">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--date=&lt;STRING&gt;</code>, <code>-d &lt;STRING&gt;</code></dt>
<dd>
<p>display time described by STRING, not 'now'</p>
</dd>
<dt><code>--file=&lt;DATEFILE&gt;</code>, <code>-f &lt;DATEFILE&gt;</code></dt>
<dd>
<p>like --date; once for each line of DATEFILE</p>
</dd>
<dt><code>--iso-8601=&lt;FMT&gt;</code>, <code>-I &lt;FMT&gt;</code></dt>
<dd>
<p>output date/time in ISO 8601 format.<br /> FMT='date' for date only (the default),<br /> 'hours', 'minutes', 'seconds', or 'ns'<br /> for date and time to the indicated precision.<br /> Example: 2006-08-14T02:34:56-06:00</p>
</dd>
<dt><code>--rfc-email</code>, <code>-R</code></dt>
<dd>
<p>output date and time in RFC 5322 format.<br /> Example: Mon, 14 Aug 2006 02:34:56 -0600</p>
</dd>
<dt><code>--rfc-3339=&lt;FMT&gt;</code></dt>
<dd>
<p>output date/time in RFC 3339 format.<br /> FMT='date', 'seconds', or 'ns'<br /> for date and time to the indicated precision.<br /> Example: 2006-08-14 02:34:56-06:00</p>
</dd>
<dt><code>--debug</code></dt>
<dd>
<p>annotate the parsed date, and warn about questionable usage to stderr</p>
</dd>
<dt><code>--reference=&lt;FILE&gt;</code>, <code>-r &lt;FILE&gt;</code></dt>
<dd>
<p>display the last modification time of FILE</p>
</dd>
<dt><code>--set=&lt;STRING&gt;</code>, <code>-s &lt;STRING&gt;</code></dt>
<dd>
<p>set time described by STRING</p>
</dd>
<dt><code>--universal</code>, <code>-u</code></dt>
<dd>
<p>print or set Coordinated Universal Time (UTC)</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-16"><a class="header" href="#examples-16">Examples</a></h2>
<p>Display the current date using the default locale's format:</p>
<pre><code class="language-shell">date +&quot;%c&quot;
</code></pre>
<p>Display the current date in UTC and ISO 8601 format:</p>
<pre><code class="language-shell">date -u +&quot;%Y-%m-%dT%H:%M:%SZ&quot;
</code></pre>
<p>Display the current date as a Unix timestamp (seconds since the Unix epoch):</p>
<pre><code class="language-shell">date +%s
</code></pre>
<p>Display a specific date (represented as a Unix timestamp) using the default format:</p>
<pre><code class="language-shell">date -d @1473305798
</code></pre>
<p>Convert a specific date to the Unix timestamp format:</p>
<pre><code class="language-shell">date -d &quot;{{2018-09-01 00:00}}&quot; +%s --utc
</code></pre>
<p>Display the current date using the RFC-3339 format (<code>YYYY-MM-DD hh:mm:ss TZ</code>):</p>
<pre><code class="language-shell">date --rfc-3339=s
</code></pre>
<p>Set the current date using the format <code>MMDDhhmmYYYY.ss</code> (<code>YYYY</code> and <code>.ss</code> are optional):</p>
<pre><code class="language-shell">date {{093023592021.59}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="dd"><a class="header" href="#dd">dd</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>dd [OPTIONS]
</code></pre>
<p>copy, and optionally convert, a file system resource</p>
<h2 id="options-19"><a class="header" href="#options-19">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--if=&lt;FILE&gt;</code></dt>
<dd>
<p>(alternatively if=FILE) specifies the file used for input. When not specified, stdin is used instead</p>
</dd>
<dt><code>--of=&lt;FILE&gt;</code></dt>
<dd>
<p>(alternatively of=FILE) specifies the file used for output. When not specified, stdout is used instead</p>
</dd>
<dt><code>--ibs=&lt;N&gt;</code></dt>
<dd>
<p>(alternatively ibs=N) specifies the size of buffer used for reads (default: 512). Multiplier strings permitted.</p>
</dd>
<dt><code>--obs=&lt;N&gt;</code></dt>
<dd>
<p>(alternatively obs=N) specifies the size of buffer used for writes (default: 512). Multiplier strings permitted.</p>
</dd>
<dt><code>--bs=&lt;N&gt;</code></dt>
<dd>
<p>(alternatively bs=N) specifies ibs=N and obs=N (default: 512). If ibs or obs are also specified, bs=N takes precedence. Multiplier strings permitted.</p>
</dd>
<dt><code>--cbs=&lt;N&gt;</code></dt>
<dd>
<p>(alternatively cbs=BYTES) specifies the 'conversion block size' in bytes. Applies to the conv=block, and conv=unblock operations. Multiplier strings permitted.</p>
</dd>
<dt><code>--skip=&lt;N&gt;</code></dt>
<dd>
<p>(alternatively skip=N) causes N ibs-sized records of input to be skipped before beginning copy/convert operations. See iflag=count_bytes if skipping N bytes is preferred. Multiplier strings permitted.</p>
</dd>
<dt><code>--seek=&lt;N&gt;</code></dt>
<dd>
<p>(alternatively seek=N) seeks N obs-sized records into output before beginning copy/convert operations. See oflag=seek_bytes if seeking N bytes is preferred. Multiplier strings permitted.</p>
</dd>
<dt><code>--iseek=&lt;N&gt;</code></dt>
<dd>
<p>(alternatively iseek=N) seeks N obs-sized records into input before beginning copy/convert operations. See iflag=seek_bytes if seeking N bytes is preferred. Multiplier strings permitted.</p>
</dd>
<dt><code>--oseek=&lt;N&gt;</code></dt>
<dd>
<p>(alternatively oseek=N) seeks N obs-sized records into output before beginning copy/convert operations. See oflag=seek_bytes if seeking N bytes is preferred. Multiplier strings permitted.</p>
</dd>
<dt><code>--count=&lt;N&gt;</code></dt>
<dd>
<p>(alternatively count=N) stop reading input after N ibs-sized read operations rather than proceeding until EOF. See iflag=count_bytes if stopping after N bytes is preferred. Multiplier strings permitted.</p>
</dd>
<dt><code>--status=&lt;LEVEL&gt;</code></dt>
<dd>
<p>(alternatively status=LEVEL) controls whether volume and performance stats are written to stderr.<br /><br />When unspecified, dd will print stats upon completion. An example is below.<br /> 6+0 records in<br /> 16+0 records out<br /> 8192 bytes (8.2 kB, 8.0 KiB) copied, 0.00057009 s, 14.4 MB/s<br />The first two lines are the 'volume' stats and the final line is the 'performance' stats.<br />The volume stats indicate the number of complete and partial ibs-sized reads, or obs-sized writes that took place during the copy. The format of the volume stats is <complete>+<partial>. If records have been truncated (see conv=block), the volume stats will contain the number of truncated records.<br /><br />Permissible LEVEL values are:<br /> progress: Print periodic performance stats as the copy proceeds.<br /> noxfer: Print final volume stats, but not performance stats.<br /> none: Do not print any stats.<br /><br />Printing performance stats is also triggered by the INFO signal (where supported), or the USR1 signal. Setting the POSIXLY_CORRECT environment variable to any value (including an empty value) will cause the USR1 signal to be ignored.<br /><br /></p>
</dd>
<dt><code>--conv=&lt;CONV&gt;</code></dt>
<dd>
<p>(alternatively conv=CONV[,CONV]) specifies a comma-separated list of conversion options or (for legacy reasons) file flags. Conversion options and file flags may be intermixed.<br /><br />Conversion options:<br /> One of {ascii, ebcdic, ibm} will perform an encoding conversion.<br /> 'ascii' converts from EBCDIC to ASCII. This is the inverse of the 'ebcdic' option.<br /> 'ebcdic' converts from ASCII to EBCDIC. This is the inverse of the 'ascii' option.<br /> 'ibm' converts from ASCII to EBCDIC, applying the conventions for '[', ']' and '~' specified in POSIX.<br /><br /> One of {ucase, lcase} will perform a case conversion. Works in conjunction with option {ascii, ebcdic, ibm} to infer input encoding. If no other conversion option is specified, input is assumed to be ascii.<br /> 'ucase' converts from lower-case to upper-case<br /> 'lcase' converts from upper-case to lower-case.<br /><br /> One of {block, unblock}. Convert between lines terminated by newline characters, and fixed-width lines padded by spaces (without any newlines). Both the 'block' and 'unblock' options require cbs=BYTES be specified.<br /> 'block' for each newline less than the size indicated by cbs=BYTES, remove the newline and pad with spaces up to cbs. Lines longer than cbs are truncated.<br /> 'unblock' for each block of input of the size indicated by cbs=BYTES, remove right-trailing spaces and replace with a newline character.<br /><br /> 'sparse' attempts to seek the output when an obs-sized block consists of only zeros.<br /> 'swab' swaps each adjacent pair of bytes. If an odd number of bytes is present, the final byte is omitted.<br /> 'sync' pad each ibs-sided block with zeros. If 'block' or 'unblock' is specified, pad with spaces instead.<br /><br />Conversion Flags:<br /> One of {excl, nocreat}<br /> 'excl' the output file must be created. Fail if the output file is already present.<br /> 'nocreat' the output file will not be created. Fail if the output file in not already present.<br /> 'notrunc' the output file will not be truncated. If this option is not present, output will be truncated when opened.<br /> 'noerror' all read errors will be ignored. If this option is not present, dd will only ignore Error::Interrupted.<br /> 'fdatasync' data will be written before finishing.<br /> 'fsync' data and metadata will be written before finishing.<br /><br /></p>
</dd>
<dt><code>--iflag=&lt;FLAG&gt;</code></dt>
<dd>
<p>(alternatively iflag=FLAG[,FLAG]) a comma separated list of input flags which specify how the input source is treated. FLAG may be any of the input-flags or general-flags specified below.<br /><br />Input-Flags<br /> 'count_bytes' a value to count=N will be interpreted as bytes.<br /> 'skip_bytes' a value to skip=N will be interpreted as bytes.<br /> 'fullblock' wait for ibs bytes from each read. zero-length reads are still considered EOF.<br /><br />General-Flags<br /> 'direct' use direct I/O for data.<br /> 'directory' fail unless the given input (if used as an iflag) or output (if used as an oflag) is a directory.<br /> 'dsync' use synchronized I/O for data.<br /> 'sync' use synchronized I/O for data and metadata.<br /> 'nonblock' use non-blocking I/O.<br /> 'noatime' do not update access time.<br /> 'nocache' request that OS drop cache.<br /> 'noctty' do not assign a controlling tty.<br /> 'nofollow' do not follow system links.<br /><br /></p>
</dd>
<dt><code>--oflag=&lt;FLAG&gt;</code></dt>
<dd>
<p>(alternatively oflag=FLAG[,FLAG]) a comma separated list of output flags which specify how the output source is treated. FLAG may be any of the output-flags or general-flags specified below.<br /><br />Output-Flags<br /> 'append' open file in append mode. Consider setting conv=notrunc as well.<br /> 'seek_bytes' a value to seek=N will be interpreted as bytes.<br /><br />General-Flags<br /> 'direct' use direct I/O for data.<br /> 'directory' fail unless the given input (if used as an iflag) or output (if used as an oflag) is a directory.<br /> 'dsync' use synchronized I/O for data.<br /> 'sync' use synchronized I/O for data and metadata.<br /> 'nonblock' use non-blocking I/O.<br /> 'noatime' do not update access time.<br /> 'nocache' request that OS drop cache.<br /> 'noctty' do not assign a controlling tty.<br /> 'nofollow' do not follow system links.<br /><br /></p>
</dd>
</dl>
<h2 id="examples-17"><a class="header" href="#examples-17">Examples</a></h2>
<p>Make a bootable USB drive from an isohybrid file (such like <code>archlinux-xxx.iso</code>) and show the progress:</p>
<pre><code class="language-shell">dd if={{file.iso}} of=/dev/{{usb_drive}} status=progress
</code></pre>
<p>Clone a drive to another drive with 4 MiB block, ignore error and show progress:</p>
<pre><code class="language-shell">dd if=/dev/{{source_drive}} of=/dev/{{dest_drive}} bs=4M conv=noerror status=progress
</code></pre>
<p>Generate a file of 100 random bytes by using kernel random driver:</p>
<pre><code class="language-shell">dd if=/dev/urandom of={{random_file}} bs=100 count=1
</code></pre>
<p>Benchmark the write performance of a disk:</p>
<pre><code class="language-shell">dd if=/dev/zero of={{file_1GB}} bs=1024 count=1000000
</code></pre>
<p>Generate a system backup into an IMG file and show the progress:</p>
<pre><code class="language-shell">dd if=/dev/{{drive_device}} of={{path/to/file.img}} status=progress
</code></pre>
<p>Restore a drive from an IMG file and show the progress:</p>
<pre><code class="language-shell">dd if={{path/to/file.img}} of=/dev/{{drive_device}} status=progress
</code></pre>
<p>Check progress of an ongoing dd operation (Run this command from another shell):</p>
<pre><code class="language-shell">kill -USR1 $(pgrep ^dd)
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="df"><a class="header" href="#df">df</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>df [OPTION]... [FILE]...
</code></pre>
<p>Show information about the file system on which each FILE resides,
or all file systems by default.</p>
<h2 id="options-20"><a class="header" href="#options-20">Options</a></h2>
<dl><dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Print help information.</p>
</dd>
<dt><code>--all</code>, <code>-a</code></dt>
<dd>
<p>include dummy file systems</p>
</dd>
<dt><code>--block-size=&lt;SIZE&gt;</code>, <code>-B &lt;SIZE&gt;</code></dt>
<dd>
<p>scale sizes by SIZE before printing them; e.g.'-BM' prints sizes in units of 1,048,576 bytes</p>
</dd>
<dt><code>--total</code></dt>
<dd>
<p>produce a grand total</p>
</dd>
<dt><code>--human-readable</code>, <code>-h</code></dt>
<dd>
<p>print sizes in human readable format (e.g., 1K 234M 2G)</p>
</dd>
<dt><code>--si</code>, <code>-H</code></dt>
<dd>
<p>likewise, but use powers of 1000 not 1024</p>
</dd>
<dt><code>--inodes</code>, <code>-i</code></dt>
<dd>
<p>list inode information instead of block usage</p>
</dd>
<dt><code>-k</code></dt>
<dd>
<p>like --block-size=1K</p>
</dd>
<dt><code>--local</code>, <code>-l</code></dt>
<dd>
<p>limit listing to local file systems</p>
</dd>
<dt><code>--no-sync</code></dt>
<dd>
<p>do not invoke sync before getting usage info (default)</p>
</dd>
<dt><code>--output=&lt;FIELD_LIST&gt;</code></dt>
<dd>
<p>use the output format defined by FIELD_LIST, or print all fields if FIELD_LIST is omitted.</p>
</dd>
<dt><code>--portability</code>, <code>-P</code></dt>
<dd>
<p>use the POSIX output format</p>
</dd>
<dt><code>--sync</code></dt>
<dd>
<p>invoke sync before getting usage info (non-windows only)</p>
</dd>
<dt><code>--type=&lt;TYPE&gt;</code>, <code>-t &lt;TYPE&gt;</code></dt>
<dd>
<p>limit listing to file systems of type TYPE</p>
</dd>
<dt><code>--print-type</code>, <code>-T</code></dt>
<dd>
<p>print file system type</p>
</dd>
<dt><code>--exclude-type=&lt;TYPE&gt;</code>, <code>-x &lt;TYPE&gt;</code></dt>
<dd>
<p>limit listing to file systems not of type TYPE</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-18"><a class="header" href="#examples-18">Examples</a></h2>
<p>Display all filesystems and their disk usage:</p>
<pre><code class="language-shell">df
</code></pre>
<p>Display all filesystems and their disk usage in human-readable form:</p>
<pre><code class="language-shell">df -h
</code></pre>
<p>Display the filesystem and its disk usage containing the given file or directory:</p>
<pre><code class="language-shell">df {{path/to/file_or_directory}}
</code></pre>
<p>Display statistics on the number of free inodes:</p>
<pre><code class="language-shell">df -i
</code></pre>
<p>Display filesystems but exclude the specified types:</p>
<pre><code class="language-shell">df -x {{squashfs}} -x {{tmpfs}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="dir"><a class="header" href="#dir">dir</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v
</div>
</div>
<pre><code>dir
</code></pre>
<h2 id="options-21"><a class="header" href="#options-21">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
</dl>
<h2 id="examples-19"><a class="header" href="#examples-19">Examples</a></h2>
<p>List all files, including hidden files:</p>
<pre><code class="language-shell">dir -all
</code></pre>
<p>List files including their author (<code>-l</code> is required):</p>
<pre><code class="language-shell">dir -l --author
</code></pre>
<p>List files excluding those that match a specified blob pattern:</p>
<pre><code class="language-shell">dir --hide={{pattern}}
</code></pre>
<p>List subdirectories recursively:</p>
<pre><code class="language-shell">dir --recursive
</code></pre>
<p>Display help:</p>
<pre><code class="language-shell">dir --help
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="dircolors"><a class="header" href="#dircolors">dircolors</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>dircolors [OPTION]... [FILE]
</code></pre>
<p>Output commands to set the LS_COLORS environment variable.</p>
<h2 id="options-22"><a class="header" href="#options-22">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--sh</code>, <code>--bourne-shell</code>, <code>-b</code></dt>
<dd>
<p>output Bourne shell code to set LS_COLORS</p>
</dd>
<dt><code>--csh</code>, <code>--c-shell</code>, <code>-c</code></dt>
<dd>
<p>output C shell code to set LS_COLORS</p>
</dd>
<dt><code>--print-database</code>, <code>-p</code></dt>
<dd>
<p>print the byte counts</p>
</dd>
<dt><code>--print-ls-colors</code></dt>
<dd>
<p>output fully escaped colors for display</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-20"><a class="header" href="#examples-20">Examples</a></h2>
<p>Output commands to set LS_COLOR using default colors:</p>
<pre><code class="language-shell">dircolors
</code></pre>
<p>Output commands to set LS_COLOR using colors from a file:</p>
<pre><code class="language-shell">dircolors {{file}}
</code></pre>
<p>Output commands for Bourne shell:</p>
<pre><code class="language-shell">dircolors --bourne-shell
</code></pre>
<p>Output commands for C shell:</p>
<pre><code class="language-shell">dircolors --c-shell
</code></pre>
<p>View the default colors for file types and extensions:</p>
<pre><code class="language-shell">dircolors --print-data
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="dirname"><a class="header" href="#dirname">dirname</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>dirname [OPTION] NAME...
</code></pre>
<p>strip last component from file name</p>
<h2 id="options-23"><a class="header" href="#options-23">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--zero</code>, <code>-z</code></dt>
<dd>
<p>separate output with NUL rather than newline</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-21"><a class="header" href="#examples-21">Examples</a></h2>
<p>Calculate the parent directory of a given path:</p>
<pre><code class="language-shell">dirname {{path/to/file_or_directory}}
</code></pre>
<p>Calculate the parent directory of multiple paths:</p>
<pre><code class="language-shell">dirname {{path/to/file_a}} {{path/to/directory_b}}
</code></pre>
<p>Delimit output with a NUL character instead of a newline (useful when combining with <code>xargs</code>):</p>
<pre><code class="language-shell">dirname --zero {{path/to/directory_a}} {{path/to/file_b}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="du"><a class="header" href="#du">du</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>du [OPTION]... [FILE]...
du [OPTION]... --files0-from=F
</code></pre>
<p>estimate file space usage</p>
<h2 id="options-24"><a class="header" href="#options-24">Options</a></h2>
<dl><dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Print help information.</p>
</dd>
<dt><code>--all</code>, <code>-a</code></dt>
<dd>
<p>write counts for all files, not just directories</p>
</dd>
<dt><code>--apparent-size</code></dt>
<dd>
<p>print apparent sizes, rather than disk usage although the apparent size is usually smaller, it may be larger due to holes in ('sparse') files, internal fragmentation, indirect blocks, and the like</p>
</dd>
<dt><code>--block-size=&lt;SIZE&gt;</code>, <code>-B &lt;SIZE&gt;</code></dt>
<dd>
<p>scale sizes by SIZE before printing them. E.g., '-BM' prints sizes in units of 1,048,576 bytes. See SIZE format below.</p>
</dd>
<dt><code>--bytes</code>, <code>-b</code></dt>
<dd>
<p>equivalent to '--apparent-size --block-size=1'</p>
</dd>
<dt><code>--total</code>, <code>-c</code></dt>
<dd>
<p>produce a grand total</p>
</dd>
<dt><code>--max-depth=&lt;N&gt;</code>, <code>-d &lt;N&gt;</code></dt>
<dd>
<p>print the total for a directory (or file, with --all) only if it is N or fewer levels below the command line argument; --max-depth=0 is the same as --summarize</p>
</dd>
<dt><code>--human-readable</code>, <code>-h</code></dt>
<dd>
<p>print sizes in human readable format (e.g., 1K 234M 2G)</p>
</dd>
<dt><code>--inodes</code></dt>
<dd>
<p>list inode usage information instead of block usage like --block-size=1K</p>
</dd>
<dt><code>-k</code></dt>
<dd>
<p>like --block-size=1K</p>
</dd>
<dt><code>--count-links</code>, <code>-l</code></dt>
<dd>
<p>count sizes many times if hard linked</p>
</dd>
<dt><code>--dereference</code>, <code>-L</code></dt>
<dd>
<p>dereference all symbolic links</p>
</dd>
<dt><code>-m</code></dt>
<dd>
<p>like --block-size=1M</p>
</dd>
<dt><code>--null</code>, <code>-0</code></dt>
<dd>
<p>end each output line with 0 byte rather than newline</p>
</dd>
<dt><code>--separate-dirs</code>, <code>-S</code></dt>
<dd>
<p>do not include size of subdirectories</p>
</dd>
<dt><code>--summarize</code>, <code>-s</code></dt>
<dd>
<p>display only a total for each argument</p>
</dd>
<dt><code>--si</code></dt>
<dd>
<p>like -h, but use powers of 1000 not 1024</p>
</dd>
<dt><code>--one-file-system</code>, <code>-x</code></dt>
<dd>
<p>skip directories on different file systems</p>
</dd>
<dt><code>--threshold=&lt;SIZE&gt;</code>, <code>-t &lt;SIZE&gt;</code></dt>
<dd>
<p>exclude entries smaller than SIZE if positive, or entries greater than SIZE if negative</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>verbose mode (option not present in GNU/Coreutils)</p>
</dd>
<dt><code>--exclude=&lt;PATTERN&gt;</code></dt>
<dd>
<p>exclude files that match PATTERN</p>
</dd>
<dt><code>--exclude-from=&lt;FILE&gt;</code>, <code>-X &lt;FILE&gt;</code></dt>
<dd>
<p>exclude files that match any pattern in FILE</p>
</dd>
<dt><code>--time=&lt;WORD&gt;</code></dt>
<dd>
<p>show time of the last modification of any file in the directory, or any of its subdirectories. If WORD is given, show time as WORD instead of modification time: atime, access, use, ctime, status, birth or creation</p>
</dd>
<dt><code>--time-style=&lt;STYLE&gt;</code></dt>
<dd>
<p>show times using style STYLE: full-iso, long-iso, iso, +FORMAT FORMAT is interpreted like 'date'</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-22"><a class="header" href="#examples-22">Examples</a></h2>
<p>List the sizes of a directory and any subdirectories, in the given unit (B/KiB/MiB):</p>
<pre><code class="language-shell">du -{{b|k|m}} {{path/to/directory}}
</code></pre>
<p>List the sizes of a directory and any subdirectories, in human-readable form (i.e. auto-selecting the appropriate unit for each size):</p>
<pre><code class="language-shell">du -h {{path/to/directory}}
</code></pre>
<p>Show the size of a single directory, in human-readable units:</p>
<pre><code class="language-shell">du -sh {{path/to/directory}}
</code></pre>
<p>List the human-readable sizes of a directory and of all the files and directories within it:</p>
<pre><code class="language-shell">du -ah {{path/to/directory}}
</code></pre>
<p>List the human-readable sizes of a directory and any subdirectories, up to N levels deep:</p>
<pre><code class="language-shell">du -h --max-depth=N {{path/to/directory}}
</code></pre>
<p>List the human-readable size of all <code>.jpg</code> files in subdirectories of the current directory, and show a cumulative total at the end:</p>
<pre><code class="language-shell">du -ch {{*/*.jpg}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="echo"><a class="header" href="#echo">echo</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>echo [OPTIONS]... [STRING]...
</code></pre>
<p>display a line of text</p>
<h2 id="options-25"><a class="header" href="#options-25">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>-n</code></dt>
<dd>
<p>do not output the trailing newline</p>
</dd>
<dt><code>-e</code></dt>
<dd>
<p>enable interpretation of backslash escapes</p>
</dd>
<dt><code>-E</code></dt>
<dd>
<p>disable interpretation of backslash escapes (default)</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-23"><a class="header" href="#examples-23">Examples</a></h2>
<p>Print a text message. Note: quotes are optional:</p>
<pre><code class="language-shell">echo &quot;{{Hello World}}&quot;
</code></pre>
<p>Print a message with environment variables:</p>
<pre><code class="language-shell">echo &quot;{{My path is $PATH}}&quot;
</code></pre>
<p>Print a message without the trailing newline:</p>
<pre><code class="language-shell">echo -n &quot;{{Hello World}}&quot;
</code></pre>
<p>Append a message to the file:</p>
<pre><code class="language-shell">echo &quot;{{Hello World}}&quot; &gt;&gt; {{file.txt}}
</code></pre>
<p>Enable interpretation of backslash escapes (special characters):</p>
<pre><code class="language-shell">echo -e &quot;{{Column 1\tColumn 2}}&quot;
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="env"><a class="header" href="#env">env</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
</code></pre>
<p>env ~ (uutils) set each NAME to VALUE in the environment and run COMMAND</p>
<h2 id="options-26"><a class="header" href="#options-26">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--ignore-environment</code>, <code>-i</code></dt>
<dd>
<p>start with an empty environment</p>
</dd>
<dt><code>--chdir=&lt;DIR&gt;</code>, <code>-C &lt;DIR&gt;</code></dt>
<dd>
<p>change working directory to DIR</p>
</dd>
<dt><code>--null</code>, <code>-0</code></dt>
<dd>
<p>end each output line with a 0 byte rather than a newline (only valid when printing the environment)</p>
</dd>
<dt><code>--file=&lt;PATH&gt;</code>, <code>-f &lt;PATH&gt;</code></dt>
<dd>
<p>read and set variables from a &quot;.env&quot;-style configuration file (prior to any unset and/or set)</p>
</dd>
<dt><code>--unset=&lt;NAME&gt;</code>, <code>-u &lt;NAME&gt;</code></dt>
<dd>
<p>remove variable from the environment</p>
</dd>
</dl>
<h2 id="examples-24"><a class="header" href="#examples-24">Examples</a></h2>
<p>Show the environment:</p>
<pre><code class="language-shell">env
</code></pre>
<p>Run a program. Often used in scripts after the shebang (#!) for looking up the path to the program:</p>
<pre><code class="language-shell">env {{program}}
</code></pre>
<p>Clear the environment and run a program:</p>
<pre><code class="language-shell">env -i {{program}}
</code></pre>
<p>Remove variable from the environment and run a program:</p>
<pre><code class="language-shell">env -u {{variable}} {{program}}
</code></pre>
<p>Set a variable and run a program:</p>
<pre><code class="language-shell">env {{variable}}={{value}} {{program}}
</code></pre>
<p>Set multiple variables and run a program:</p>
<pre><code class="language-shell">env {{variable1}}={{value}} {{variable2}}={{value}} {{variable3}}={{value}} {{program}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="expand"><a class="header" href="#expand">expand</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>expand [OPTION]... [FILE]...
</code></pre>
<p>Convert tabs in each FILE to spaces, writing to standard output.
With no FILE, or when FILE is -, read standard input.</p>
<h2 id="options-27"><a class="header" href="#options-27">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--initial</code>, <code>-i</code></dt>
<dd>
<p>do not convert tabs after non blanks</p>
</dd>
<dt><code>--tabs=&lt;N, LIST&gt;</code>, <code>-t &lt;N, LIST&gt;</code></dt>
<dd>
<p>have tabs N characters apart, not 8 or use comma separated list of explicit tab positions</p>
</dd>
<dt><code>--no-utf8</code>, <code>-U</code></dt>
<dd>
<p>interpret input file as 8-bit ASCII rather than UTF-8</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-25"><a class="header" href="#examples-25">Examples</a></h2>
<p>Convert tabs in each file to spaces, writing to standard output:</p>
<pre><code class="language-shell">expand {{file}}
</code></pre>
<p>Convert tabs to spaces, reading from standard input:</p>
<pre><code class="language-shell">expand
</code></pre>
<p>Do not convert tabs after non blanks:</p>
<pre><code class="language-shell">expand -i {{file}}
</code></pre>
<p>Have tabs a certain number of characters apart, not 8:</p>
<pre><code class="language-shell">expand -t={{number}} {{file}}
</code></pre>
<p>Use a comma separated list of explicit tab positions:</p>
<pre><code class="language-shell">expand -t={{1,4,6}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="expr"><a class="header" href="#expr">expr</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>expr [EXPRESSION]
expr [OPTIONS]
</code></pre>
<p>Print the value of EXPRESSION to standard output</p>
<h2 id="options-28"><a class="header" href="#options-28">Options</a></h2>
<dl><dt><code>--version</code></dt>
<dd>
<p>output version information and exit</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>display this help and exit</p>
</dd>
</dl>
<h2 id="examples-26"><a class="header" href="#examples-26">Examples</a></h2>
<p>Get string length:</p>
<pre><code class="language-shell">expr length {{string}}
</code></pre>
<p>Evaluate logical or math expression with an operator ('+', '-', '*', '&amp;', '|', etc.). Special symbols should be escaped:</p>
<pre><code class="language-shell">expr {{first_argument}} {{operator}} {{second_argument}}
</code></pre>
<p>Get position of the first character in 'string' that matches 'substring':</p>
<pre><code class="language-shell">echo $(expr index {{string}} {{substring}})
</code></pre>
<p>Extract part of the string:</p>
<pre><code class="language-shell">echo $(expr substr {{string}} {{position_to_start}} {{number_of_characters}}
</code></pre>
<p>Extract part of the string which matches a regular expression:</p>
<pre><code class="language-shell">echo $(expr {{string}} : '\({{regular_expression}}\)')
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="factor"><a class="header" href="#factor">factor</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>factor [NUMBER]...
</code></pre>
<p>Print the prime factors of the given NUMBER(s).
If none are specified, read from standard input.</p>
<h2 id="options-29"><a class="header" href="#options-29">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-27"><a class="header" href="#examples-27">Examples</a></h2>
<p>Display the prime-factorization of a number:</p>
<pre><code class="language-shell">factor {{number}}
</code></pre>
<p>Take the input from stdin if no argument is specified:</p>
<pre><code class="language-shell">echo {{number}} | factor
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="false"><a class="header" href="#false">false</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>false
</code></pre>
<p>Returns false, an unsuccessful exit status.</p>
<p>Immediately returns with the exit status <code>1</code>. When invoked with one of the recognized options it
will try to write the help or version text. Any IO error during this operation is diagnosed, yet
the program will also return <code>1</code>.</p>
<h2 id="options-30"><a class="header" href="#options-30">Options</a></h2>
<dl><dt><code>--help</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code></dt>
<dd>
<p>Print version information</p>
</dd>
</dl>
<h2 id="examples-28"><a class="header" href="#examples-28">Examples</a></h2>
<p>Return an exit code of 1:</p>
<pre><code class="language-shell">false
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="fmt"><a class="header" href="#fmt">fmt</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>fmt [OPTION]... [FILE]...
</code></pre>
<p>Reformat paragraphs from input files (or stdin) to stdout.</p>
<h2 id="options-31"><a class="header" href="#options-31">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--crown-margin</code>, <code>-c</code></dt>
<dd>
<p>First and second line of paragraph may have different indentations, in which case the first line's indentation is preserved, and each subsequent line's indentation matches the second line.</p>
</dd>
<dt><code>--tagged-paragraph</code>, <code>-t</code></dt>
<dd>
<p>Like -c, except that the first and second line of a paragraph <em>must</em> have different indentation or they are treated as separate paragraphs.</p>
</dd>
<dt><code>--preserve-headers</code>, <code>-m</code></dt>
<dd>
<p>Attempt to detect and preserve mail headers in the input. Be careful when combining this flag with -p.</p>
</dd>
<dt><code>--split-only</code>, <code>-s</code></dt>
<dd>
<p>Split lines only, do not reflow.</p>
</dd>
<dt><code>--uniform-spacing</code>, <code>-u</code></dt>
<dd>
<p>Insert exactly one space between words, and two between sentences. Sentence breaks in the input are detected as [?!.] followed by two spaces or a newline; other punctuation is not interpreted as a sentence break.</p>
</dd>
<dt><code>--prefix=&lt;PREFIX&gt;</code>, <code>-p &lt;PREFIX&gt;</code></dt>
<dd>
<p>Reformat only lines beginning with PREFIX, reattaching PREFIX to reformatted lines. Unless -x is specified, leading whitespace will be ignored when matching PREFIX.</p>
</dd>
<dt><code>--skip-prefix=&lt;PSKIP&gt;</code>, <code>-P &lt;PSKIP&gt;</code></dt>
<dd>
<p>Do not reformat lines beginning with PSKIP. Unless -X is specified, leading whitespace will be ignored when matching PSKIP</p>
</dd>
<dt><code>--exact-prefix</code>, <code>-x</code></dt>
<dd>
<p>PREFIX must match at the beginning of the line with no preceding whitespace.</p>
</dd>
<dt><code>--exact-skip-prefix</code>, <code>-X</code></dt>
<dd>
<p>PSKIP must match at the beginning of the line with no preceding whitespace.</p>
</dd>
<dt><code>--width=&lt;WIDTH&gt;</code>, <code>-w &lt;WIDTH&gt;</code></dt>
<dd>
<p>Fill output lines up to a maximum of WIDTH columns, default 79.</p>
</dd>
<dt><code>--goal=&lt;GOAL&gt;</code>, <code>-g &lt;GOAL&gt;</code></dt>
<dd>
<p>Goal width, default ~0.94*WIDTH. Must be less than WIDTH.</p>
</dd>
<dt><code>--quick</code>, <code>-q</code></dt>
<dd>
<p>Break lines more quickly at the expense of a potentially more ragged appearance.</p>
</dd>
<dt><code>--tab-width=&lt;TABWIDTH&gt;</code>, <code>-T &lt;TABWIDTH&gt;</code></dt>
<dd>
<p>Treat tabs as TABWIDTH spaces for determining line length, default 8. Note that this is used only for calculating line lengths; tabs are preserved in the output.</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-29"><a class="header" href="#examples-29">Examples</a></h2>
<p>Reformat a file:</p>
<pre><code class="language-shell">fmt {{path/to/file}}
</code></pre>
<p>Reformat a file producing output lines of (at most) <code>n</code> characters:</p>
<pre><code class="language-shell">fmt -w {{n}} {{path/to/file}}
</code></pre>
<p>Reformat a file without joining lines shorter than the given width together:</p>
<pre><code class="language-shell">fmt -s {{path/to/file}}
</code></pre>
<p>Reformat a file with uniform spacing (1 space between words and 2 spaces between paragraphs):</p>
<pre><code class="language-shell">fmt -u {{path/to/file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="fold"><a class="header" href="#fold">fold</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>fold [OPTION]... [FILE]...
</code></pre>
<p>Writes each file (or standard input if no files are given)
to standard output whilst breaking long lines</p>
<h2 id="options-32"><a class="header" href="#options-32">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--bytes</code>, <code>-b</code></dt>
<dd>
<p>count using bytes rather than columns (meaning control characters such as newline are not treated specially)</p>
</dd>
<dt><code>--spaces</code>, <code>-s</code></dt>
<dd>
<p>break lines at word boundaries rather than a hard cut-off</p>
</dd>
<dt><code>--width=&lt;WIDTH&gt;</code>, <code>-w &lt;WIDTH&gt;</code></dt>
<dd>
<p>set WIDTH as the maximum line width rather than 80</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-30"><a class="header" href="#examples-30">Examples</a></h2>
<p>Wrap each line to default width (80 characters):</p>
<pre><code class="language-shell">fold {{file}}
</code></pre>
<p>Wrap each line to width &quot;30&quot;:</p>
<pre><code class="language-shell">fold -w30 {{file}}
</code></pre>
<p>Wrap each line to width &quot;5&quot; and break the line at spaces (puts each space separated word in a new line, words with length &gt; 5 are wrapped):</p>
<pre><code class="language-shell">fold -w5 -s {{file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="groups"><a class="header" href="#groups">groups</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>groups [OPTION]... [USERNAME]...
</code></pre>
<p>Print group memberships for each USERNAME or, if no USERNAME is specified, for
the current process (which may differ if the groups database has changed).</p>
<h2 id="options-33"><a class="header" href="#options-33">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-31"><a class="header" href="#examples-31">Examples</a></h2>
<p>Print group memberships for the current user:</p>
<pre><code class="language-shell">groups
</code></pre>
<p>Print group memberships for a list of users:</p>
<pre><code class="language-shell">groups {{username1 username2 ...}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="hashsum"><a class="header" href="#hashsum">hashsum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>hashsum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-34"><a class="header" href="#options-34">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--bits=&lt;BITS&gt;</code></dt>
<dd>
<p>set the size of the output (only for SHAKE)</p>
</dd>
<dt><code>--no-names</code></dt>
<dd>
<p>Omits filenames in the output (option not present in GNU/Coreutils)</p>
</dd>
<dt><code>--md5</code></dt>
<dd>
<p>work with MD5</p>
</dd>
<dt><code>--sha1</code></dt>
<dd>
<p>work with SHA1</p>
</dd>
<dt><code>--sha224</code></dt>
<dd>
<p>work with SHA224</p>
</dd>
<dt><code>--sha256</code></dt>
<dd>
<p>work with SHA256</p>
</dd>
<dt><code>--sha384</code></dt>
<dd>
<p>work with SHA384</p>
</dd>
<dt><code>--sha512</code></dt>
<dd>
<p>work with SHA512</p>
</dd>
<dt><code>--sha3</code></dt>
<dd>
<p>work with SHA3</p>
</dd>
<dt><code>--sha3-224</code></dt>
<dd>
<p>work with SHA3-224</p>
</dd>
<dt><code>--sha3-256</code></dt>
<dd>
<p>work with SHA3-256</p>
</dd>
<dt><code>--sha3-384</code></dt>
<dd>
<p>work with SHA3-384</p>
</dd>
<dt><code>--sha3-512</code></dt>
<dd>
<p>work with SHA3-512</p>
</dd>
<dt><code>--shake128</code></dt>
<dd>
<p>work with SHAKE128 using BITS for the output size</p>
</dd>
<dt><code>--shake256</code></dt>
<dd>
<p>work with SHAKE256 using BITS for the output size</p>
</dd>
<dt><code>--b2sum</code></dt>
<dd>
<p>work with BLAKE2</p>
</dd>
<dt><code>--b3sum</code></dt>
<dd>
<p>work with BLAKE3</p>
</dd>
</dl>
<div style="break-before: page; page-break-before: always;"></div><h1 id="head"><a class="header" href="#head">head</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>head [FLAG]... [FILE]...
</code></pre>
<p>Print the first 10 lines of each FILE to standard output.
With more than one FILE, precede each with a header giving the file name.
With no FILE, or when FILE is -, read standard input.</p>
<p>Mandatory arguments to long flags are mandatory for short flags too.</p>
<h2 id="options-35"><a class="header" href="#options-35">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--bytes=&lt;[-]NUM&gt;</code>, <code>-c &lt;[-]NUM&gt;</code></dt>
<dd>
<p>print the first NUM bytes of each file;<br />with the leading '-', print all but the last<br />NUM bytes of each file</p>
</dd>
<dt><code>--lines=&lt;[-]NUM&gt;</code>, <code>-n &lt;[-]NUM&gt;</code></dt>
<dd>
<p>print the first NUM lines instead of the first 10;<br />with the leading '-', print all but the last<br />NUM lines of each file</p>
</dd>
<dt><code>--quiet</code>, <code>--silent</code>, <code>-q</code></dt>
<dd>
<p>never print headers giving file names</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>always print headers giving file names</p>
</dd>
<dt><code>--presume-input-pipe</code></dt>
<dd>
</dd>
<dt><code>--zero-terminated</code>, <code>-z</code></dt>
<dd>
<p>line delimiter is NUL, not newline</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-32"><a class="header" href="#examples-32">Examples</a></h2>
<p>Output the first few lines of a file:</p>
<pre><code class="language-shell">head --lines {{count}} {{path/to/file}}
</code></pre>
<p>Output the first few bytes of a file:</p>
<pre><code class="language-shell">head --bytes {{count}} {{path/to/file}}
</code></pre>
<p>Output everything but the last few lines of a file:</p>
<pre><code class="language-shell">head --lines -{{count}} {{path/to/file}}
</code></pre>
<p>Output everything but the last few bytes of a file:</p>
<pre><code class="language-shell">head --bytes -{{count}} {{path/to/file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="hostid"><a class="header" href="#hostid">hostid</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>hostid [options]
</code></pre>
<p>Print the numeric identifier (in hexadecimal) for the current host</p>
<h2 id="options-36"><a class="header" href="#options-36">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
</dl>
<h2 id="examples-33"><a class="header" href="#examples-33">Examples</a></h2>
<p>Display the numeric identifier for the current host in hexadecimal:</p>
<pre><code class="language-shell">hostid
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="hostname"><a class="header" href="#hostname">hostname</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>hostname [OPTION]... [HOSTNAME]
</code></pre>
<p>Display or set the system's host name.</p>
<h2 id="options-37"><a class="header" href="#options-37">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--domain</code>, <code>-d</code></dt>
<dd>
<p>Display the name of the DNS domain if possible</p>
</dd>
<dt><code>--ip-address</code>, <code>-i</code></dt>
<dd>
<p>Display the network address(es) of the host</p>
</dd>
<dt><code>--fqdn</code>, <code>-f</code></dt>
<dd>
<p>Display the FQDN (Fully Qualified Domain Name) (default)</p>
</dd>
<dt><code>--short</code>, <code>-s</code></dt>
<dd>
<p>Display the short hostname (the portion before the first dot) if possible</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-34"><a class="header" href="#examples-34">Examples</a></h2>
<p>Show current host name:</p>
<pre><code class="language-shell">hostname
</code></pre>
<p>Show the network address of the host name:</p>
<pre><code class="language-shell">hostname -i
</code></pre>
<p>Show all network addresses of the host:</p>
<pre><code class="language-shell">hostname -I
</code></pre>
<p>Show the FQDN (Fully Qualified Domain Name):</p>
<pre><code class="language-shell">hostname --fqdn
</code></pre>
<p>Set current host name:</p>
<pre><code class="language-shell">hostname {{new_hostname}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="id"><a class="header" href="#id">id</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>id [OPTION]... [USER]...
</code></pre>
<p>Print user and group information for each specified USER,
or (when USER omitted) for the current user.</p>
<h2 id="options-38"><a class="header" href="#options-38">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>-A</code></dt>
<dd>
<p>Display the process audit user ID and other process audit properties,<br />which requires privilege (not available on Linux).</p>
</dd>
<dt><code>--user</code>, <code>-u</code></dt>
<dd>
<p>Display only the effective user ID as a number.</p>
</dd>
<dt><code>--group</code>, <code>-g</code></dt>
<dd>
<p>Display only the effective group ID as a number</p>
</dd>
<dt><code>--groups</code>, <code>-G</code></dt>
<dd>
<p>Display only the different group IDs as white-space separated numbers, in no particular order.</p>
</dd>
<dt><code>-p</code></dt>
<dd>
<p>Make the output human-readable. Each display is on a separate line.</p>
</dd>
<dt><code>--name</code>, <code>-n</code></dt>
<dd>
<p>Display the name of the user or group ID for the -G, -g and -u options instead of the number.<br />If any of the ID numbers cannot be mapped into names, the number will be displayed as usual.</p>
</dd>
<dt><code>-P</code></dt>
<dd>
<p>Display the id as a password file entry.</p>
</dd>
<dt><code>--real</code>, <code>-r</code></dt>
<dd>
<p>Display the real ID for the -G, -g and -u options instead of the effective ID.</p>
</dd>
<dt><code>--zero</code>, <code>-z</code></dt>
<dd>
<p>delimit entries with NUL characters, not whitespace;<br />not permitted in default format</p>
</dd>
<dt><code>--context</code>, <code>-Z</code></dt>
<dd>
<p>print only the security context of the process</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-35"><a class="header" href="#examples-35">Examples</a></h2>
<p>Display current user's ID (UID), group ID (GID) and groups to which they belong:</p>
<pre><code class="language-shell">id
</code></pre>
<p>Display the current user identity as a number:</p>
<pre><code class="language-shell">id -u
</code></pre>
<p>Display the current group identity as a number:</p>
<pre><code class="language-shell">id -g
</code></pre>
<p>Display an arbitrary user's ID (UID), group ID (GID) and groups to which they belong:</p>
<pre><code class="language-shell">id {{username}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="install"><a class="header" href="#install">install</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>install [OPTION]... [FILE]...
</code></pre>
<p>Copy SOURCE to DEST or multiple SOURCE(s) to the existing
DIRECTORY, while setting permission modes and owner/group</p>
<h2 id="options-39"><a class="header" href="#options-39">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--backup=&lt;CONTROL&gt;</code></dt>
<dd>
<p>make a backup of each existing destination file</p>
</dd>
<dt><code>-b</code></dt>
<dd>
<p>like --backup but does not accept an argument</p>
</dd>
<dt><code>-c</code></dt>
<dd>
<p>ignored</p>
</dd>
<dt><code>--compare</code>, <code>-C</code></dt>
<dd>
<p>compare each pair of source and destination files, and in some cases, do not modify the destination at all</p>
</dd>
<dt><code>--directory</code>, <code>-d</code></dt>
<dd>
<p>treat all arguments as directory names. create all components of the specified directories</p>
</dd>
<dt><code>-D</code></dt>
<dd>
<p>create all leading components of DEST except the last, then copy SOURCE to DEST</p>
</dd>
<dt><code>--group=&lt;GROUP&gt;</code>, <code>-g &lt;GROUP&gt;</code></dt>
<dd>
<p>set group ownership, instead of process's current group</p>
</dd>
<dt><code>--mode=&lt;MODE&gt;</code>, <code>-m &lt;MODE&gt;</code></dt>
<dd>
<p>set permission mode (as in chmod), instead of rwxr-xr-x</p>
</dd>
<dt><code>--owner=&lt;OWNER&gt;</code>, <code>-o &lt;OWNER&gt;</code></dt>
<dd>
<p>set ownership (super-user only)</p>
</dd>
<dt><code>--preserve-timestamps</code>, <code>-p</code></dt>
<dd>
<p>apply access/modification times of SOURCE files to corresponding destination files</p>
</dd>
<dt><code>--strip</code>, <code>-s</code></dt>
<dd>
<p>strip symbol tables (no action Windows)</p>
</dd>
<dt><code>--strip-program=&lt;PROGRAM&gt;</code></dt>
<dd>
<p>program used to strip binaries (no action Windows)</p>
</dd>
<dt><code>--suffix=&lt;SUFFIX&gt;</code>, <code>-S &lt;SUFFIX&gt;</code></dt>
<dd>
<p>override the usual backup suffix</p>
</dd>
<dt><code>--target-directory=&lt;DIRECTORY&gt;</code>, <code>-t &lt;DIRECTORY&gt;</code></dt>
<dd>
<p>move all SOURCE arguments into DIRECTORY</p>
</dd>
<dt><code>--no-target-directory</code>, <code>-T</code></dt>
<dd>
<p>(unimplemented) treat DEST as a normal file</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>explain what is being done</p>
</dd>
<dt><code>--preserve-context</code>, <code>-P</code></dt>
<dd>
<p>(unimplemented) preserve security context</p>
</dd>
<dt><code>--context=&lt;CONTEXT&gt;</code>, <code>-Z &lt;CONTEXT&gt;</code></dt>
<dd>
<p>(unimplemented) set security context of files and directories</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-36"><a class="header" href="#examples-36">Examples</a></h2>
<p>Copy files to the destination:</p>
<pre><code class="language-shell">install {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
</code></pre>
<p>Copy files to the destination, setting their ownership:</p>
<pre><code class="language-shell">install --owner {{user}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
</code></pre>
<p>Copy files to the destination, setting their group ownership:</p>
<pre><code class="language-shell">install --group {{user}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
</code></pre>
<p>Copy files to the destination, setting their <code>mode</code>:</p>
<pre><code class="language-shell">install --mode {{+x}} {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
</code></pre>
<p>Copy files and apply access/modification times of source to the destination:</p>
<pre><code class="language-shell">install --preserve-timestamps {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
</code></pre>
<p>Copy files and create the directories at the destination if they don't exist:</p>
<pre><code class="language-shell">install -D {{path/to/source_file1 path/to/source_file2 ...}} {{path/to/destination}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="join"><a class="header" href="#join">join</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>join [OPTIONS] &lt;FILE1&gt; &lt;FILE2&gt;
</code></pre>
<p>For each pair of input lines with identical join fields, write a line to
standard output. The default join field is the first, delimited by blanks.</p>
<p>When FILE1 or FILE2 (not both) is -, read standard input.</p>
<h2 id="options-40"><a class="header" href="#options-40">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>-a &lt;FILENUM&gt;</code></dt>
<dd>
<p>also print unpairable lines from file FILENUM, where<br />FILENUM is 1 or 2, corresponding to FILE1 or FILE2</p>
</dd>
<dt><code>-v &lt;FILENUM&gt;</code></dt>
<dd>
<p>like -a FILENUM, but suppress joined output lines</p>
</dd>
<dt><code>-e &lt;EMPTY&gt;</code></dt>
<dd>
<p>replace missing input fields with EMPTY</p>
</dd>
<dt><code>--ignore-case</code>, <code>-i</code></dt>
<dd>
<p>ignore differences in case when comparing fields</p>
</dd>
<dt><code>-j &lt;FIELD&gt;</code></dt>
<dd>
<p>equivalent to '-1 FIELD -2 FIELD'</p>
</dd>
<dt><code>-o &lt;FORMAT&gt;</code></dt>
<dd>
<p>obey FORMAT while constructing output line</p>
</dd>
<dt><code>-t &lt;CHAR&gt;</code></dt>
<dd>
<p>use CHAR as input and output field separator</p>
</dd>
<dt><code>-1 &lt;FIELD&gt;</code></dt>
<dd>
<p>join on this FIELD of file 1</p>
</dd>
<dt><code>-2 &lt;FIELD&gt;</code></dt>
<dd>
<p>join on this FIELD of file 2</p>
</dd>
<dt><code>--check-order</code></dt>
<dd>
<p>check that the input is correctly sorted, even if all input lines are pairable</p>
</dd>
<dt><code>--nocheck-order</code></dt>
<dd>
<p>do not check that the input is correctly sorted</p>
</dd>
<dt><code>--header</code></dt>
<dd>
<p>treat the first line in each file as field headers, print them without trying to pair them</p>
</dd>
<dt><code>--zero-terminated</code>, <code>-z</code></dt>
<dd>
<p>line delimiter is NUL, not newline</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-37"><a class="header" href="#examples-37">Examples</a></h2>
<p>Join two files on the first (default) field:</p>
<pre><code class="language-shell">join {{file1}} {{file2}}
</code></pre>
<p>Join two files using a comma (instead of a space) as the field separator:</p>
<pre><code class="language-shell">join -t {{','}} {{file1}} {{file2}}
</code></pre>
<p>Join field3 of file1 with field1 of file2:</p>
<pre><code class="language-shell">join -1 {{3}} -2 {{1}} {{file1}} {{file2}}
</code></pre>
<p>Produce a line for each unpairable line for file1:</p>
<pre><code class="language-shell">join -a {{1}} {{file1}} {{file2}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="kill"><a class="header" href="#kill">kill</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>kill [OPTIONS]... PID...
</code></pre>
<p>Send signal to processes or list information about signals.</p>
<h2 id="options-41"><a class="header" href="#options-41">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--list</code>, <code>-l</code></dt>
<dd>
<p>Lists signals</p>
</dd>
<dt><code>--table</code>, <code>-t</code></dt>
<dd>
<p>Lists table of signals</p>
</dd>
<dt><code>--signal</code>, <code>-s</code></dt>
<dd>
<p>Sends given signal</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-38"><a class="header" href="#examples-38">Examples</a></h2>
<p>Terminate a program using the default SIGTERM (terminate) signal:</p>
<pre><code class="language-shell">kill {{process_id}}
</code></pre>
<p>List available signal names (to be used without the <code>SIG</code> prefix):</p>
<pre><code class="language-shell">kill -l
</code></pre>
<p>Terminate a background job:</p>
<pre><code class="language-shell">kill %{{job_id}}
</code></pre>
<p>Terminate a program using the SIGHUP (hang up) signal. Many daemons will reload instead of terminating:</p>
<pre><code class="language-shell">kill -{{1|HUP}} {{process_id}}
</code></pre>
<p>Terminate a program using the SIGINT (interrupt) signal. This is typically initiated by the user pressing <code>Ctrl + C</code>:</p>
<pre><code class="language-shell">kill -{{2|INT}} {{process_id}}
</code></pre>
<p>Signal the operating system to immediately terminate a program (which gets no chance to capture the signal):</p>
<pre><code class="language-shell">kill -{{9|KILL}} {{process_id}}
</code></pre>
<p>Signal the operating system to pause a program until a SIGCONT (&quot;continue&quot;) signal is received:</p>
<pre><code class="language-shell">kill -{{17|STOP}} {{process_id}}
</code></pre>
<p>Send a <code>SIGUSR1</code> signal to all processes with the given GID (group id):</p>
<pre><code class="language-shell">kill -{{SIGUSR1}} -{{group_id}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="link"><a class="header" href="#link">link</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>link FILE1 FILE2
</code></pre>
<p>Call the link function to create a link named FILE2 to an existing FILE1.</p>
<h2 id="options-42"><a class="header" href="#options-42">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-39"><a class="header" href="#examples-39">Examples</a></h2>
<p>Create a hard link from a new file to an existing file:</p>
<pre><code class="language-shell">link {{path/to/existing_file}} {{path/to/new_file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="ln"><a class="header" href="#ln">ln</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>ln [OPTION]... [-T] TARGET LINK_NAME
ln [OPTION]... TARGET
ln [OPTION]... TARGET... DIRECTORY
ln [OPTION]... -t DIRECTORY TARGET...
</code></pre>
<p>change file owner and group</p>
<h2 id="options-43"><a class="header" href="#options-43">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--backup=&lt;CONTROL&gt;</code></dt>
<dd>
<p>make a backup of each existing destination file</p>
</dd>
<dt><code>-b</code></dt>
<dd>
<p>like --backup but does not accept an argument</p>
</dd>
<dt><code>--force</code>, <code>-f</code></dt>
<dd>
<p>remove existing destination files</p>
</dd>
<dt><code>--interactive</code>, <code>-i</code></dt>
<dd>
<p>prompt whether to remove existing destination files</p>
</dd>
<dt><code>--no-dereference</code>, <code>-n</code></dt>
<dd>
<p>treat LINK_NAME as a normal file if it is a symbolic link to a directory</p>
</dd>
<dt><code>--logical</code>, <code>-L</code></dt>
<dd>
<p>dereference TARGETs that are symbolic links</p>
</dd>
<dt><code>--physical</code>, <code>-P</code></dt>
<dd>
<p>make hard links directly to symbolic links</p>
</dd>
<dt><code>--symbolic</code>, <code>-s</code></dt>
<dd>
<p>make symbolic links instead of hard links</p>
</dd>
<dt><code>--suffix=&lt;SUFFIX&gt;</code>, <code>-S &lt;SUFFIX&gt;</code></dt>
<dd>
<p>override the usual backup suffix</p>
</dd>
<dt><code>--target-directory=&lt;DIRECTORY&gt;</code>, <code>-t &lt;DIRECTORY&gt;</code></dt>
<dd>
<p>specify the DIRECTORY in which to create the links</p>
</dd>
<dt><code>--no-target-directory</code>, <code>-T</code></dt>
<dd>
<p>treat LINK_NAME as a normal file always</p>
</dd>
<dt><code>--relative</code>, <code>-r</code></dt>
<dd>
<p>create symbolic links relative to link location</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>print name of each linked file</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-40"><a class="header" href="#examples-40">Examples</a></h2>
<p>Create a symbolic link to a file or directory:</p>
<pre><code class="language-shell">ln -s {{/path/to/file_or_directory}} {{path/to/symlink}}
</code></pre>
<p>Overwrite an existing symbolic link to point to a different file:</p>
<pre><code class="language-shell">ln -sf {{/path/to/new_file}} {{path/to/symlink}}
</code></pre>
<p>Create a hard link to a file:</p>
<pre><code class="language-shell">ln {{/path/to/file}} {{path/to/hardlink}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="logname"><a class="header" href="#logname">logname</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>logname
</code></pre>
<p>Print user's login name</p>
<h2 id="options-44"><a class="header" href="#options-44">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
</dl>
<h2 id="examples-41"><a class="header" href="#examples-41">Examples</a></h2>
<p>Display the currently logged in user's name:</p>
<pre><code class="language-shell">logname
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="ls"><a class="header" href="#ls">ls</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>ls [OPTION]... [FILE]...
</code></pre>
<p>List directory contents. Ignore files and directories starting with a '.' by default</p>
<h2 id="options-45"><a class="header" href="#options-45">Options</a></h2>
<dl><dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Print help information.</p>
</dd>
<dt><code>--format</code></dt>
<dd>
<p>Set the display format.</p>
</dd>
<dt><code>-C</code></dt>
<dd>
<p>Display the files in columns.</p>
</dd>
<dt><code>--long</code>, <code>-l</code></dt>
<dd>
<p>Display detailed information.</p>
</dd>
<dt><code>-x</code></dt>
<dd>
<p>List entries in rows instead of in columns.</p>
</dd>
<dt><code>-m</code></dt>
<dd>
<p>List entries separated by commas.</p>
</dd>
<dt><code>-1</code></dt>
<dd>
<p>List one file per line.</p>
</dd>
<dt><code>-o</code></dt>
<dd>
<p>Long format without group information. Identical to --format=long with --no-group.</p>
</dd>
<dt><code>-g</code></dt>
<dd>
<p>Long format without owner information.</p>
</dd>
<dt><code>--numeric-uid-gid</code>, <code>-n</code></dt>
<dd>
<p>-l with numeric UIDs and GIDs.</p>
</dd>
<dt><code>--quoting-style</code></dt>
<dd>
<p>Set quoting style.</p>
</dd>
<dt><code>--literal</code>, <code>-N</code></dt>
<dd>
<p>Use literal quoting style. Equivalent to <code>--quoting-style=literal</code></p>
</dd>
<dt><code>--escape</code>, <code>-b</code></dt>
<dd>
<p>Use escape quoting style. Equivalent to <code>--quoting-style=escape</code></p>
</dd>
<dt><code>--quote-name</code>, <code>-Q</code></dt>
<dd>
<p>Use C quoting style. Equivalent to <code>--quoting-style=c</code></p>
</dd>
<dt><code>--hide-control-chars</code>, <code>-q</code></dt>
<dd>
<p>Replace control characters with '?' if they are not escaped.</p>
</dd>
<dt><code>--show-control-chars</code></dt>
<dd>
<p>Show control characters 'as is' if they are not escaped.</p>
</dd>
<dt><code>--time=&lt;field&gt;</code></dt>
<dd>
<p>Show time in <field>:<br /> access time (-u): atime, access, use;<br /> change time (-t): ctime, status.<br /> birth time: birth, creation;</p>
</dd>
<dt><code>-c</code></dt>
<dd>
<p>If the long listing format (e.g., -l, -o) is being used, print the status change time (the 'ctime' in the inode) instead of the modification time. When explicitly sorting by time (--sort=time or -t) or when not using a long listing format, sort according to the status change time.</p>
</dd>
<dt><code>-u</code></dt>
<dd>
<p>If the long listing format (e.g., -l, -o) is being used, print the status access time instead of the modification time. When explicitly sorting by time (--sort=time or -t) or when not using a long listing format, sort according to the access time.</p>
</dd>
<dt><code>--hide=&lt;PATTERN&gt;</code></dt>
<dd>
<p>do not list implied entries matching shell PATTERN (overridden by -a or -A)</p>
</dd>
<dt><code>--ignore=&lt;PATTERN&gt;</code>, <code>-I &lt;PATTERN&gt;</code></dt>
<dd>
<p>do not list implied entries matching shell PATTERN</p>
</dd>
<dt><code>--ignore-backups</code>, <code>-B</code></dt>
<dd>
<p>Ignore entries which end with ~.</p>
</dd>
<dt><code>--sort=&lt;field&gt;</code></dt>
<dd>
<p>Sort by <field>: name, none (-U), time (-t), size (-S) or extension (-X)</p>
</dd>
<dt><code>-S</code></dt>
<dd>
<p>Sort by file size, largest first.</p>
</dd>
<dt><code>-t</code></dt>
<dd>
<p>Sort by modification time (the 'mtime' in the inode), newest first.</p>
</dd>
<dt><code>-v</code></dt>
<dd>
<p>Natural sort of (version) numbers in the filenames.</p>
</dd>
<dt><code>-X</code></dt>
<dd>
<p>Sort alphabetically by entry extension.</p>
</dd>
<dt><code>-U</code></dt>
<dd>
<p>Do not sort; list the files in whatever order they are stored in the directory. This is especially useful when listing very large directories, since not doing any sorting can be noticeably faster.</p>
</dd>
<dt><code>--dereference</code>, <code>-L</code></dt>
<dd>
<p>When showing file information for a symbolic link, show information for the file the link references rather than the link itself.</p>
</dd>
<dt><code>--dereference-command-line-symlink-to-dir</code></dt>
<dd>
<p>Do not dereference symlinks except when they link to directories and are given as command line arguments.</p>
</dd>
<dt><code>--dereference-command-line</code>, <code>-H</code></dt>
<dd>
<p>Do not dereference symlinks except when given as command line arguments.</p>
</dd>
<dt><code>--no-group</code>, <code>-G</code></dt>
<dd>
<p>Do not show group in long format.</p>
</dd>
<dt><code>--author</code></dt>
<dd>
<p>Show author in long format. On the supported platforms, the author always matches the file owner.</p>
</dd>
<dt><code>--all</code>, <code>-a</code></dt>
<dd>
<p>Do not ignore hidden files (files with names that start with '.').</p>
</dd>
<dt><code>--almost-all</code>, <code>-A</code></dt>
<dd>
<p>In a directory, do not ignore all file names that start with '.', only ignore '.' and '..'.</p>
</dd>
<dt><code>--directory</code>, <code>-d</code></dt>
<dd>
<p>Only list the names of directories, rather than listing directory contents. This will not follow symbolic links unless one of <code>--dereference-command-line (-H)</code>, <code>--dereference (-L)</code>, or <code>--dereference-command-line-symlink-to-dir</code> is specified.</p>
</dd>
<dt><code>--human-readable</code>, <code>-h</code></dt>
<dd>
<p>Print human readable file sizes (e.g. 1K 234M 56G).</p>
</dd>
<dt><code>--kibibytes</code>, <code>-k</code></dt>
<dd>
<p>default to 1024-byte blocks for file system usage; used only with -s and per directory totals</p>
</dd>
<dt><code>--si</code></dt>
<dd>
<p>Print human readable file sizes using powers of 1000 instead of 1024.</p>
</dd>
<dt><code>--block-size=&lt;BLOCK_SIZE&gt;</code></dt>
<dd>
<p>scale sizes by BLOCK_SIZE when printing them</p>
</dd>
<dt><code>--inode</code>, <code>-i</code></dt>
<dd>
<p>print the index number of each file</p>
</dd>
<dt><code>--reverse</code>, <code>-r</code></dt>
<dd>
<p>Reverse whatever the sorting method is e.g., list files in reverse alphabetical order, youngest first, smallest first, or whatever.</p>
</dd>
<dt><code>--recursive</code>, <code>-R</code></dt>
<dd>
<p>List the contents of all directories recursively.</p>
</dd>
<dt><code>--width=&lt;COLS&gt;</code>, <code>-w &lt;COLS&gt;</code></dt>
<dd>
<p>Assume that the terminal is COLS columns wide.</p>
</dd>
<dt><code>--size</code>, <code>-s</code></dt>
<dd>
<p>print the allocated size of each file, in blocks</p>
</dd>
<dt><code>--color</code></dt>
<dd>
<p>Color output based on file type.</p>
</dd>
<dt><code>--indicator-style</code></dt>
<dd>
<p>Append indicator with style WORD to entry names: none (default), slash (-p), file-type (--file-type), classify (-F)</p>
</dd>
<dt><code>--classify=&lt;when&gt;</code>, <code>-F &lt;when&gt;</code></dt>
<dd>
<p>Append a character to each file name indicating the file type. Also, for regular files that are executable, append '*'. The file type indicators are '/' for directories, '@' for symbolic links, '|' for FIFOs, '=' for sockets, '&gt;' for doors, and nothing for regular files. when may be omitted, or one of:<br /> none - Do not classify. This is the default.<br /> auto - Only classify if standard output is a terminal.<br /> always - Always classify.<br />Specifying --classify and no when is equivalent to --classify=always. This will not followsymbolic links listed on the command line unless the --dereference-command-line (-H),--dereference (-L), or --dereference-command-line-symlink-to-dir options are specified.</p>
</dd>
<dt><code>--file-type</code></dt>
<dd>
<p>Same as --classify, but do not append '*'</p>
</dd>
<dt><code>-p</code></dt>
<dd>
<p>Append / indicator to directories.</p>
</dd>
<dt><code>--time-style=&lt;TIME_STYLE&gt;</code></dt>
<dd>
<p>time/date format with -l; see TIME_STYLE below</p>
</dd>
<dt><code>--full-time</code></dt>
<dd>
<p>like -l --time-style=full-iso</p>
</dd>
<dt><code>--context</code>, <code>-Z</code></dt>
<dd>
<p>print any security context of each file</p>
</dd>
<dt><code>--group-directories-first</code></dt>
<dd>
<p>group directories before files; can be augmented with a --sort option, but any use of --sort=none (-U) disables grouping</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-42"><a class="header" href="#examples-42">Examples</a></h2>
<p>List files one per line:</p>
<pre><code class="language-shell">ls -1
</code></pre>
<p>List all files, including hidden files:</p>
<pre><code class="language-shell">ls -a
</code></pre>
<p>List all files, with trailing <code>/</code> added to directory names:</p>
<pre><code class="language-shell">ls -F
</code></pre>
<p>Long format list (permissions, ownership, size, and modification date) of all files:</p>
<pre><code class="language-shell">ls -la
</code></pre>
<p>Long format list with size displayed using human-readable units (KiB, MiB, GiB):</p>
<pre><code class="language-shell">ls -lh
</code></pre>
<p>Long format list sorted by size (descending):</p>
<pre><code class="language-shell">ls -lS
</code></pre>
<p>Long format list of all files, sorted by modification date (oldest first):</p>
<pre><code class="language-shell">ls -ltr
</code></pre>
<p>Only list directories:</p>
<pre><code class="language-shell">ls -d */
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="md5sum"><a class="header" href="#md5sum">md5sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>md5sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-46"><a class="header" href="#options-46">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-43"><a class="header" href="#examples-43">Examples</a></h2>
<p>Calculate the MD5 checksum for a file:</p>
<pre><code class="language-shell">md5sum {{path/to/file}}
</code></pre>
<p>Calculate MD5 checksums for multiple files:</p>
<pre><code class="language-shell">md5sum {{path/to/file1}} {{path/to/filen2}}
</code></pre>
<p>Calculate a MD5 checksum from the standard input:</p>
<pre><code class="language-shell">echo &quot;{{text}}&quot; | md5sum
</code></pre>
<p>Read a file of MD5SUMs and verify all files have matching checksums:</p>
<pre><code class="language-shell">md5sum --check {{path/to/file.md5}}
</code></pre>
<p>Only show a message for missing files or when verification fails:</p>
<pre><code class="language-shell">md5sum --check --quiet {{path/to/file.md5}}
</code></pre>
<p>Only show a message for files for which verification fails, ignoring missing files:</p>
<pre><code class="language-shell">md5sum --ignore-missing --check --quiet {{path/to/file.md5}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="mkdir"><a class="header" href="#mkdir">mkdir</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>mkdir [OPTION]... [USER]
</code></pre>
<p>Create the given DIRECTORY(ies) if they do not exist</p>
<h2 id="options-47"><a class="header" href="#options-47">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--mode</code>, <code>-m</code></dt>
<dd>
<p>set file mode (not implemented on windows)</p>
</dd>
<dt><code>--parents</code>, <code>-p</code></dt>
<dd>
<p>make parent directories as needed</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>print a message for each printed directory</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-44"><a class="header" href="#examples-44">Examples</a></h2>
<p>Create a directory in current directory or given path:</p>
<pre><code class="language-shell">mkdir {{directory}}
</code></pre>
<p>Create multiple directories in the current directory:</p>
<pre><code class="language-shell">mkdir {{directory_1 directory_2 ...}}
</code></pre>
<p>Create directories recursively (useful for creating nested dirs):</p>
<pre><code class="language-shell">mkdir -p {{path/to/directory}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="mkfifo"><a class="header" href="#mkfifo">mkfifo</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>mkfifo [OPTION]... NAME...
</code></pre>
<p>Create a FIFO with the given name.</p>
<h2 id="options-48"><a class="header" href="#options-48">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--mode=&lt;0666&gt;</code>, <code>-m &lt;0666&gt;</code></dt>
<dd>
<p>file permissions for the fifo</p>
</dd>
<dt><code>-Z</code></dt>
<dd>
<p>set the SELinux security context to default type</p>
</dd>
<dt><code>--context=&lt;CTX&gt;</code></dt>
<dd>
<p>like -Z, or if CTX is specified then set the SELinux or SMACK security context to CTX</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-45"><a class="header" href="#examples-45">Examples</a></h2>
<p>Create a named pipe at a given path:</p>
<pre><code class="language-shell">mkfifo {{path/to/pipe}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="mknod"><a class="header" href="#mknod">mknod</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>mknod [OPTION]... NAME TYPE [MAJOR MINOR]
</code></pre>
<p>Create the special file NAME of the given TYPE.</p>
<h2 id="options-49"><a class="header" href="#options-49">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--mode=&lt;MODE&gt;</code>, <code>-m &lt;MODE&gt;</code></dt>
<dd>
<p>set file permission bits to MODE, not a=rw - umask</p>
</dd>
<dt></dt>
<dd>
<p>name of the new file</p>
</dd>
<dt></dt>
<dd>
<p>type of the new file (b, c, u or p)</p>
</dd>
<dt></dt>
<dd>
<p>major file type</p>
</dd>
<dt></dt>
<dd>
<p>minor file type</p>
</dd>
</dl>
<h2 id="examples-46"><a class="header" href="#examples-46">Examples</a></h2>
<p>Create a block device:</p>
<pre><code class="language-shell">sudo mknod {{path/to/device_file}} b {{major_device_number}} {{minor_device_number}}
</code></pre>
<p>Create a character device:</p>
<pre><code class="language-shell">sudo mknod {{path/to/device_file}} c {{major_device_number}} {{minor_device_number}}
</code></pre>
<p>Create a FIFO (queue) device:</p>
<pre><code class="language-shell">sudo mknod {{path/to/device_file}} p
</code></pre>
<p>Create a device file with default SELinux security context:</p>
<pre><code class="language-shell">sudo mknod -Z {{path/to/device_file}} {{type}} {{major_device_number}} {{minor_device_number}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="mktemp"><a class="header" href="#mktemp">mktemp</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>mktemp [OPTION]... [TEMPLATE]
</code></pre>
<p>create a temporary file or directory.</p>
<h2 id="options-50"><a class="header" href="#options-50">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--directory</code>, <code>-d</code></dt>
<dd>
<p>Make a directory instead of a file</p>
</dd>
<dt><code>--dry-run</code>, <code>-u</code></dt>
<dd>
<p>do not create anything; merely print a name (unsafe)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>Fail silently if an error occurs.</p>
</dd>
<dt><code>--suffix=&lt;SUFFIX&gt;</code></dt>
<dd>
<p>append SUFFIX to TEMPLATE; SUFFIX must not contain a path separator. This option is implied if TEMPLATE does not end with X.</p>
</dd>
<dt><code>--tmpdir=&lt;DIR&gt;</code>, <code>-p &lt;DIR&gt;</code></dt>
<dd>
<p>interpret TEMPLATE relative to DIR; if DIR is not specified, use $TMPDIR ($TMP on windows) if set, else /tmp. With this option, TEMPLATE must not be an absolute name; unlike with -t, TEMPLATE may contain slashes, but mktemp creates only the final component</p>
</dd>
<dt><code>-t</code></dt>
<dd>
<p>Generate a template (using the supplied prefix and TMPDIR (TMP on windows) if set) to create a filename template [deprecated]</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-47"><a class="header" href="#examples-47">Examples</a></h2>
<p>Create an empty temporary file and print the absolute path to it:</p>
<pre><code class="language-shell">mktemp
</code></pre>
<p>Create an empty temporary file with a given suffix and print the absolute path to file:</p>
<pre><code class="language-shell">mktemp --suffix &quot;{{.ext}}&quot;
</code></pre>
<p>Create a temporary directory and print the absolute path to it:</p>
<pre><code class="language-shell">mktemp -d
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="more"><a class="header" href="#more">more</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>more [OPTIONS] [files]...
</code></pre>
<p>A file perusal filter for CRT viewing.</p>
<h2 id="options-51"><a class="header" href="#options-51">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--silent</code>, <code>-d</code></dt>
<dd>
<p>Display help instead of ringing bell</p>
</dd>
<dt></dt>
<dd>
<p>Path to the files to be read</p>
</dd>
</dl>
<h2 id="examples-48"><a class="header" href="#examples-48">Examples</a></h2>
<p>Open a file:</p>
<pre><code class="language-shell">more {{path/to/file}}
</code></pre>
<p>Open a file displaying from a specific line:</p>
<pre><code class="language-shell">more +{{line_number}} {{path/to/file}}
</code></pre>
<p>Display help:</p>
<pre><code class="language-shell">more --help
</code></pre>
<p>Go to the next page:</p>
<pre><code class="language-shell">&lt;Space&gt;
</code></pre>
<p>Search for a string (press <code>n</code> to go to the next match):</p>
<pre><code class="language-shell">/{{something}}
</code></pre>
<p>Exit:</p>
<pre><code class="language-shell">q
</code></pre>
<p>Display help about interactive commands:</p>
<pre><code class="language-shell">h
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="mv"><a class="header" href="#mv">mv</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>mv [OPTION]... [-T] SOURCE DEST
mv [OPTION]... SOURCE... DIRECTORY
mv [OPTION]... -t DIRECTORY SOURCE...
</code></pre>
<p>Move SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.</p>
<h2 id="options-52"><a class="header" href="#options-52">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--backup=&lt;CONTROL&gt;</code></dt>
<dd>
<p>make a backup of each existing destination file</p>
</dd>
<dt><code>-b</code></dt>
<dd>
<p>like --backup but does not accept an argument</p>
</dd>
<dt><code>--force</code>, <code>-f</code></dt>
<dd>
<p>do not prompt before overwriting</p>
</dd>
<dt><code>--interactive</code>, <code>-i</code></dt>
<dd>
<p>prompt before override</p>
</dd>
<dt><code>--no-clobber</code>, <code>-n</code></dt>
<dd>
<p>do not overwrite an existing file</p>
</dd>
<dt><code>--strip-trailing-slashes</code></dt>
<dd>
<p>remove any trailing slashes from each SOURCE argument</p>
</dd>
<dt><code>--suffix=&lt;SUFFIX&gt;</code>, <code>-S &lt;SUFFIX&gt;</code></dt>
<dd>
<p>override the usual backup suffix</p>
</dd>
<dt><code>--target-directory=&lt;DIRECTORY&gt;</code>, <code>-t &lt;DIRECTORY&gt;</code></dt>
<dd>
<p>move all SOURCE arguments into DIRECTORY</p>
</dd>
<dt><code>--no-target-directory</code>, <code>-T</code></dt>
<dd>
<p>treat DEST as a normal file</p>
</dd>
<dt><code>--update</code>, <code>-u</code></dt>
<dd>
<p>move only when the SOURCE file is newer than the destination file or when the destination file is missing</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>explain what is being done</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-49"><a class="header" href="#examples-49">Examples</a></h2>
<p>Move a file to an arbitrary location:</p>
<pre><code class="language-shell">mv {{source}} {{target}}
</code></pre>
<p>Move files into another directory, keeping the filenames:</p>
<pre><code class="language-shell">mv {{source1}} {{source2}} {{source3}} {{target_directory}}
</code></pre>
<p>Do not prompt for confirmation before overwriting existing files:</p>
<pre><code class="language-shell">mv -f {{source}} {{target}}
</code></pre>
<p>Prompt for confirmation before overwriting existing files, regardless of file permissions:</p>
<pre><code class="language-shell">mv -i {{source}} {{target}}
</code></pre>
<p>Do not overwrite existing files at the target:</p>
<pre><code class="language-shell">mv -n {{source}} {{target}}
</code></pre>
<p>Move files in verbose mode, showing files after they are moved:</p>
<pre><code class="language-shell">mv -v {{source}} {{target}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="nice"><a class="header" href="#nice">nice</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>nice [OPTIONS] [COMMAND [ARGS]]
</code></pre>
<p>Run COMMAND with an adjusted niceness, which affects process scheduling. With no COMMAND, print the current niceness. Niceness values range from at least -20 (most favorable to the process) to 19 (least favorable to the process).</p>
<h2 id="options-53"><a class="header" href="#options-53">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--adjustment</code>, <code>-n</code></dt>
<dd>
<p>add N to the niceness (default is 10)</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-50"><a class="header" href="#examples-50">Examples</a></h2>
<p>Launch a program with altered priority:</p>
<pre><code class="language-shell">nice -n {{niceness_value}} {{command}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="nl"><a class="header" href="#nl">nl</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>nl [OPTION]... [FILE]...
</code></pre>
<h2 id="options-54"><a class="header" href="#options-54">Options</a></h2>
<dl><dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Print help information.</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--body-numbering=&lt;SYNTAX&gt;</code>, <code>-b &lt;SYNTAX&gt;</code></dt>
<dd>
<p>use STYLE for numbering body lines</p>
</dd>
<dt><code>--section-delimiter=&lt;CC&gt;</code>, <code>-d &lt;CC&gt;</code></dt>
<dd>
<p>use CC for separating logical pages</p>
</dd>
<dt><code>--footer-numbering=&lt;STYLE&gt;</code>, <code>-f &lt;STYLE&gt;</code></dt>
<dd>
<p>use STYLE for numbering footer lines</p>
</dd>
<dt><code>--header-numbering=&lt;STYLE&gt;</code>, <code>-h &lt;STYLE&gt;</code></dt>
<dd>
<p>use STYLE for numbering header lines</p>
</dd>
<dt><code>--line-increment=&lt;NUMBER&gt;</code>, <code>-i &lt;NUMBER&gt;</code></dt>
<dd>
<p>line number increment at each line</p>
</dd>
<dt><code>--join-blank-lines=&lt;NUMBER&gt;</code>, <code>-l &lt;NUMBER&gt;</code></dt>
<dd>
<p>group of NUMBER empty lines counted as one</p>
</dd>
<dt><code>--number-format=&lt;FORMAT&gt;</code>, <code>-n &lt;FORMAT&gt;</code></dt>
<dd>
<p>insert line numbers according to FORMAT</p>
</dd>
<dt><code>--no-renumber</code>, <code>-p</code></dt>
<dd>
<p>do not reset line numbers at logical pages</p>
</dd>
<dt><code>--number-separator=&lt;STRING&gt;</code>, <code>-s &lt;STRING&gt;</code></dt>
<dd>
<p>add STRING after (possible) line number</p>
</dd>
<dt><code>--starting-line-number=&lt;NUMBER&gt;</code>, <code>-v &lt;NUMBER&gt;</code></dt>
<dd>
<p>first line number on each logical page</p>
</dd>
<dt><code>--number-width=&lt;NUMBER&gt;</code>, <code>-w &lt;NUMBER&gt;</code></dt>
<dd>
<p>use NUMBER columns for line numbers</p>
</dd>
</dl>
<h2 id="examples-51"><a class="header" href="#examples-51">Examples</a></h2>
<p>Number non-blank lines in a file:</p>
<pre><code class="language-shell">nl {{file}}
</code></pre>
<p>Read from standard output:</p>
<pre><code class="language-shell">cat {{file}} | nl {{options}} -
</code></pre>
<p>Number only the lines with printable text:</p>
<pre><code class="language-shell">nl -t {{file}}
</code></pre>
<p>Number all lines including blank lines:</p>
<pre><code class="language-shell">nl -b a {{file}}
</code></pre>
<p>Number only the body lines that match a basic regular expression (BRE) pattern:</p>
<pre><code class="language-shell">nl -b p'FooBar[0-9]' {{file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="nohup"><a class="header" href="#nohup">nohup</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>nohup COMMAND [ARG]...
nohup FLAG
</code></pre>
<p>Run COMMAND ignoring hangup signals.</p>
<h2 id="options-55"><a class="header" href="#options-55">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-52"><a class="header" href="#examples-52">Examples</a></h2>
<p>Run a process that can live beyond the terminal:</p>
<pre><code class="language-shell">nohup {{command}} {{command_arguments}}
</code></pre>
<p>Launch nohup in background mode:</p>
<pre><code class="language-shell">nohup {{command}} {{command_arguments}} &amp;
</code></pre>
<p>Run a shell script that can live beyond the terminal:</p>
<pre><code class="language-shell">nohup {{path/to/script.sh}} &amp;
</code></pre>
<p>Run a process and write the output to a specific file:</p>
<pre><code class="language-shell">nohup {{command}} {{command_arguments}} &gt; {{path/to/output_file}} &amp;
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="nproc"><a class="header" href="#nproc">nproc</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>nproc [OPTIONS]...
</code></pre>
<p>Print the number of cores available to the current process.
If the OMP_NUM_THREADS or OMP_THREAD_LIMIT environment variables are set, then
they will determine the minimum and maximum returned value respectively.</p>
<h2 id="options-56"><a class="header" href="#options-56">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--all</code></dt>
<dd>
<p>print the number of cores available to the system</p>
</dd>
<dt><code>--ignore</code></dt>
<dd>
<p>ignore up to N cores</p>
</dd>
</dl>
<h2 id="examples-53"><a class="header" href="#examples-53">Examples</a></h2>
<p>Display the number of available processing units:</p>
<pre><code class="language-shell">nproc
</code></pre>
<p>Display the number of installed processing units, including any inactive ones:</p>
<pre><code class="language-shell">nproc --all
</code></pre>
<p>If possible, subtract a given number of units from the returned value:</p>
<pre><code class="language-shell">nproc --ignore {{count}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="numfmt"><a class="header" href="#numfmt">numfmt</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>numfmt [OPTION]... [NUMBER]...
</code></pre>
<p>Convert numbers from/to human-readable strings</p>
<h2 id="options-57"><a class="header" href="#options-57">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--delimiter=&lt;X&gt;</code>, <code>-d &lt;X&gt;</code></dt>
<dd>
<p>use X instead of whitespace for field delimiter</p>
</dd>
<dt><code>--field=&lt;FIELDS&gt;</code></dt>
<dd>
<p>replace the numbers in these input fields (default=1) see FIELDS below</p>
</dd>
<dt><code>--from=&lt;UNIT&gt;</code></dt>
<dd>
<p>auto-scale input numbers to UNITs; see UNIT below</p>
</dd>
<dt><code>--to=&lt;UNIT&gt;</code></dt>
<dd>
<p>auto-scale output numbers to UNITs; see UNIT below</p>
</dd>
<dt><code>--padding=&lt;N&gt;</code></dt>
<dd>
<p>pad the output to N characters; positive N will right-align; negative N will left-align; padding is ignored if the output is wider than N; the default is to automatically pad if a whitespace is found</p>
</dd>
<dt><code>--header=&lt;N&gt;</code></dt>
<dd>
<p>print (without converting) the first N header lines; N defaults to 1 if not specified</p>
</dd>
<dt><code>--round=&lt;METHOD&gt;</code></dt>
<dd>
<p>use METHOD for rounding when scaling; METHOD can be: up,down, from-zero (default), towards-zero, nearest</p>
</dd>
<dt><code>--suffix=&lt;SUFFIX&gt;</code></dt>
<dd>
<p>print SUFFIX after each formatted number, and accept inputs optionally ending with SUFFIX</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-54"><a class="header" href="#examples-54">Examples</a></h2>
<p>Convert 1.5K (SI Units) to 1500:</p>
<pre><code class="language-shell">numfmt --from={{si}} {{1.5K}}
</code></pre>
<p>Convert 5th field (1-indexed) to IEC Units without converting header:</p>
<pre><code class="language-shell">ls -l | numfmt --header={{1}} --field={{5}} --to={{iec}}
</code></pre>
<p>Convert to IEC units, pad with 5 characters, left aligned:</p>
<pre><code class="language-shell">du -s * | numfmt --to={{iec}} --format=&quot;{{%-5f}}&quot;
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="od"><a class="header" href="#od">od</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>od [OPTION]... [--] [FILENAME]...
od [-abcdDefFhHiIlLoOsxX] [FILENAME] [[+][0x]OFFSET[.][b]]
od --traditional [OPTION]... [FILENAME] [[+][0x]OFFSET[.][b] [[+][0x]LABEL[.][b]]]
</code></pre>
<p>dump files in octal and other formats</p>
<h2 id="options-58"><a class="header" href="#options-58">Options</a></h2>
<dl><dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Print help information.</p>
</dd>
<dt><code>--address-radix=&lt;RADIX&gt;</code>, <code>-A &lt;RADIX&gt;</code></dt>
<dd>
<p>Select the base in which file offsets are printed.</p>
</dd>
<dt><code>--skip-bytes=&lt;BYTES&gt;</code>, <code>-j &lt;BYTES&gt;</code></dt>
<dd>
<p>Skip bytes input bytes before formatting and writing.</p>
</dd>
<dt><code>--read-bytes=&lt;BYTES&gt;</code>, <code>-N &lt;BYTES&gt;</code></dt>
<dd>
<p>limit dump to BYTES input bytes</p>
</dd>
<dt><code>--endian=&lt;big|little&gt;</code></dt>
<dd>
<p>byte order to use for multi-byte formats</p>
</dd>
<dt><code>--strings=&lt;BYTES&gt;</code>, <code>-S &lt;BYTES&gt;</code></dt>
<dd>
<p>NotImplemented: output strings of at least BYTES graphic chars. 3 is assumed when BYTES is not specified.</p>
</dd>
<dt><code>-a</code></dt>
<dd>
<p>named characters, ignoring high-order bit</p>
</dd>
<dt><code>-b</code></dt>
<dd>
<p>octal bytes</p>
</dd>
<dt><code>-c</code></dt>
<dd>
<p>ASCII characters or backslash escapes</p>
</dd>
<dt><code>-d</code></dt>
<dd>
<p>unsigned decimal 2-byte units</p>
</dd>
<dt><code>-D</code></dt>
<dd>
<p>unsigned decimal 4-byte units</p>
</dd>
<dt><code>-o</code></dt>
<dd>
<p>octal 2-byte units</p>
</dd>
<dt><code>-I</code></dt>
<dd>
<p>decimal 8-byte units</p>
</dd>
<dt><code>-L</code></dt>
<dd>
<p>decimal 8-byte units</p>
</dd>
<dt><code>-i</code></dt>
<dd>
<p>decimal 4-byte units</p>
</dd>
<dt><code>-l</code></dt>
<dd>
<p>decimal 8-byte units</p>
</dd>
<dt><code>-x</code></dt>
<dd>
<p>hexadecimal 2-byte units</p>
</dd>
<dt><code>-h</code></dt>
<dd>
<p>hexadecimal 2-byte units</p>
</dd>
<dt><code>-O</code></dt>
<dd>
<p>octal 4-byte units</p>
</dd>
<dt><code>-s</code></dt>
<dd>
<p>decimal 2-byte units</p>
</dd>
<dt><code>-X</code></dt>
<dd>
<p>hexadecimal 4-byte units</p>
</dd>
<dt><code>-H</code></dt>
<dd>
<p>hexadecimal 4-byte units</p>
</dd>
<dt><code>-e</code></dt>
<dd>
<p>floating point double precision (64-bit) units</p>
</dd>
<dt><code>-f</code></dt>
<dd>
<p>floating point double precision (32-bit) units</p>
</dd>
<dt><code>-F</code></dt>
<dd>
<p>floating point double precision (64-bit) units</p>
</dd>
<dt><code>--format=&lt;TYPE&gt;</code>, <code>-t &lt;TYPE&gt;</code></dt>
<dd>
<p>select output format or formats</p>
</dd>
<dt><code>--output-duplicates</code>, <code>-v</code></dt>
<dd>
<p>do not use * to mark line suppression</p>
</dd>
<dt><code>--width=&lt;BYTES&gt;</code>, <code>-w &lt;BYTES&gt;</code></dt>
<dd>
<p>output BYTES bytes per output line. 32 is implied when BYTES is not specified.</p>
</dd>
<dt><code>--traditional</code></dt>
<dd>
<p>compatibility mode with one input, offset and label.</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-55"><a class="header" href="#examples-55">Examples</a></h2>
<p>Display file using default settings: octal format, 8 bytes per line, byte offsets in octal, and duplicate lines replaced with <code>*</code>:</p>
<pre><code class="language-shell">od {{path/to/file}}
</code></pre>
<p>Display file in verbose mode, i.e. without replacing duplicate lines with <code>*</code>:</p>
<pre><code class="language-shell">od -v {{path/to/file}}
</code></pre>
<p>Display file in hexadecimal format (2-byte units), with byte offsets in decimal format:</p>
<pre><code class="language-shell">od --format={{x}} --address-radix={{d}} -v {{path/to/file}}
</code></pre>
<p>Display file in hexadecimal format (1-byte units), and 4 bytes per line:</p>
<pre><code class="language-shell">od --format={{x1}} --width={{4}} -v {{path/to/file}}
</code></pre>
<p>Display file in hexadecimal format along with its character representation, and do not print byte offsets:</p>
<pre><code class="language-shell">od --format={{xz}} --address-radix={{n}} -v {{path/to/file}}
</code></pre>
<p>Read only 100 bytes of a file starting from the 500th byte:</p>
<pre><code class="language-shell">od --read-bytes {{100}} --skip-bytes={{500}} -v {{path/to/file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="paste"><a class="header" href="#paste">paste</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>paste [OPTIONS] [FILE]...
</code></pre>
<p>Write lines consisting of the sequentially corresponding lines from each
FILE, separated by TABs, to standard output.</p>
<h2 id="options-59"><a class="header" href="#options-59">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--serial</code>, <code>-s</code></dt>
<dd>
<p>paste one file at a time instead of in parallel</p>
</dd>
<dt><code>--delimiters=&lt;LIST&gt;</code>, <code>-d &lt;LIST&gt;</code></dt>
<dd>
<p>reuse characters from LIST instead of TABs</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-56"><a class="header" href="#examples-56">Examples</a></h2>
<p>Join all the lines into a single line, using TAB as delimiter:</p>
<pre><code class="language-shell">paste -s {{file}}
</code></pre>
<p>Join all the lines into a single line, using the specified delimiter:</p>
<pre><code class="language-shell">paste -s -d {{delimiter}} {{file}}
</code></pre>
<p>Merge two files side by side, each in its column, using TAB as delimiter:</p>
<pre><code class="language-shell">paste {{file1}} {{file2}}
</code></pre>
<p>Merge two files side by side, each in its column, using the specified delimiter:</p>
<pre><code class="language-shell">paste -d {{delimiter}} {{file1}} {{file2}}
</code></pre>
<p>Merge two files, with lines added alternatively:</p>
<pre><code class="language-shell">paste -d '\n' {{file1}} {{file2}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="pathchk"><a class="header" href="#pathchk">pathchk</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>pathchk [OPTION]... NAME...
</code></pre>
<p>Check whether file names are valid or portable</p>
<h2 id="options-60"><a class="header" href="#options-60">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>-p</code></dt>
<dd>
<p>check for most POSIX systems</p>
</dd>
<dt><code>-P</code></dt>
<dd>
<p>check for empty names and leading &quot;-&quot;</p>
</dd>
<dt><code>--portability</code></dt>
<dd>
<p>check for all POSIX systems (equivalent to -p -P)</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-57"><a class="header" href="#examples-57">Examples</a></h2>
<p>Check pathnames for validity in the current system:</p>
<pre><code class="language-shell">pathchk {{path1 path2 …}}
</code></pre>
<p>Check pathnames for validity on a wider range of POSIX compliant systems:</p>
<pre><code class="language-shell">pathchk -p {{path1 path2 …}}
</code></pre>
<p>Check pathnames for validity on all POSIX compliant systems:</p>
<pre><code class="language-shell">pathchk --portability {{path1 path2 …}}
</code></pre>
<p>Only check for empty pathnames or leading dashes (-):</p>
<pre><code class="language-shell">pathchk -P {{path1 path2 …}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="pinky"><a class="header" href="#pinky">pinky</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>pinky [OPTION]... [USER]...
</code></pre>
<p>pinky - lightweight finger</p>
<h2 id="options-61"><a class="header" href="#options-61">Options</a></h2>
<dl><dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>-l</code></dt>
<dd>
<p>produce long format output for the specified USERs</p>
</dd>
<dt><code>-b</code></dt>
<dd>
<p>omit the user's home directory and shell in long format</p>
</dd>
<dt><code>-h</code></dt>
<dd>
<p>omit the user's project file in long format</p>
</dd>
<dt><code>-p</code></dt>
<dd>
<p>omit the user's plan file in long format</p>
</dd>
<dt><code>-s</code></dt>
<dd>
<p>do short format output, this is the default</p>
</dd>
<dt><code>-f</code></dt>
<dd>
<p>omit the line of column headings in short format</p>
</dd>
<dt><code>-w</code></dt>
<dd>
<p>omit the user's full name in short format</p>
</dd>
<dt><code>-i</code></dt>
<dd>
<p>omit the user's full name and remote host in short format</p>
</dd>
<dt><code>-q</code></dt>
<dd>
<p>omit the user's full name, remote host and idle time in short format</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Print help information</p>
</dd>
</dl>
<h2 id="examples-58"><a class="header" href="#examples-58">Examples</a></h2>
<p>Display details about the current user:</p>
<pre><code class="language-shell">pinky
</code></pre>
<p>Display details for a specific user:</p>
<pre><code class="language-shell">pinky {{user}}
</code></pre>
<p>Display details in the long format:</p>
<pre><code class="language-shell">pinky {{user}} -l
</code></pre>
<p>Omit the user's home directory and shell in long format:</p>
<pre><code class="language-shell">pinky {{user}} -lb
</code></pre>
<p>Omit the user's project file in long format:</p>
<pre><code class="language-shell">pinky {{user}} -lh
</code></pre>
<p>Omit the column headings in short format:</p>
<pre><code class="language-shell">pinky {{user}} -f
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="pr"><a class="header" href="#pr">pr</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>pr [OPTIONS] [files]...
</code></pre>
<p>Write content of given file or standard input to standard output with pagination filter</p>
<h2 id="options-62"><a class="header" href="#options-62">Options</a></h2>
<dl><dt><code>--pages=&lt;FIRST_PAGE[:LAST_PAGE]&gt;</code></dt>
<dd>
<p>Begin and stop printing with page FIRST_PAGE[:LAST_PAGE]</p>
</dd>
<dt><code>--header=&lt;STRING&gt;</code>, <code>-h &lt;STRING&gt;</code></dt>
<dd>
<p>Use the string header to replace the file name in the header line.</p>
</dd>
<dt><code>--double-space</code>, <code>-d</code></dt>
<dd>
<p>Produce output that is double spaced. An extra <newline> character is output following every <newline><br /> found in the input.</p>
</dd>
<dt><code>--number-lines=&lt;[char][width]&gt;</code>, <code>-n &lt;[char][width]&gt;</code></dt>
<dd>
<p>Provide width digit line numbering. The default for width, if not specified, is 5. The number occupies<br /> the first width column positions of each text column or each line of -m output. If char (any non-digit<br /> character) is given, it is appended to the line number to separate it from whatever follows. The default<br /> for char is a <tab>. Line numbers longer than width columns are truncated.</p>
</dd>
<dt><code>--first-line-number=&lt;NUMBER&gt;</code>, <code>-N &lt;NUMBER&gt;</code></dt>
<dd>
<p>start counting with NUMBER at 1st line of first page printed</p>
</dd>
<dt><code>--omit-header</code>, <code>-t</code></dt>
<dd>
<p>Write neither the five-line identifying header nor the five-line trailer usually supplied for each page. Quit<br /> writing after the last line of each file without spacing to the end of the page.</p>
</dd>
<dt><code>--length=&lt;PAGE_LENGTH&gt;</code>, <code>-l &lt;PAGE_LENGTH&gt;</code></dt>
<dd>
<p>Override the 66-line default (default number of lines of text 56, and with -F 63) and reset the page length to lines. If lines is not greater than the sum of both<br /> the header and trailer depths (in lines), the pr utility shall suppress both the header and trailer, as if the<br /> -t option were in effect. </p>
</dd>
<dt><code>--no-file-warnings</code>, <code>-r</code></dt>
<dd>
<p>omit warning when a file cannot be opened</p>
</dd>
<dt><code>--form-feed</code>, <code>-F</code></dt>
<dd>
<p>Use a <form-feed> for new pages, instead of the default behavior that uses a sequence of <newline>s.</p>
</dd>
<dt><code>--width=&lt;width&gt;</code>, <code>-w &lt;width&gt;</code></dt>
<dd>
<p>Set the width of the line to width column positions for multiple text-column output only. If the -w option is<br /> not specified and the -s option is not specified, the default width shall be 72. If the -w option is not specified<br /> and the -s option is specified, the default width shall be 512.</p>
</dd>
<dt><code>--page-width=&lt;width&gt;</code>, <code>-W &lt;width&gt;</code></dt>
<dd>
<p>set page width to PAGE_WIDTH (72) characters always,<br /> truncate lines, except -J option is set, no interference<br /> with -S or -s</p>
</dd>
<dt><code>--across</code>, <code>-a</code></dt>
<dd>
<p>Modify the effect of the - column option so that the columns are filled across the page in a round-robin order<br /> (for example, when column is 2, the first input line heads column 1, the second heads column 2, the third is the<br /> second line in column 1, and so on).</p>
</dd>
<dt><code>--column=&lt;column&gt;</code></dt>
<dd>
<p>Produce multi-column output that is arranged in column columns (the default shall be 1) and is written down each<br /> column in the order in which the text is received from the input file. This option should not be used with -m.<br /> The options -e and -i shall be assumed for multiple text-column output. Whether or not text columns are produced<br /> with identical vertical lengths is unspecified, but a text column shall never exceed the length of the<br /> page (see the -l option). When used with -t, use the minimum number of lines to write the output.</p>
</dd>
<dt><code>--separator=&lt;char&gt;</code>, <code>-s &lt;char&gt;</code></dt>
<dd>
<p>Separate text columns by the single character char instead of by the appropriate number of <space>s<br /> (default for char is the <tab> character).</p>
</dd>
<dt><code>--sep-string=&lt;string&gt;</code>, <code>-S &lt;string&gt;</code></dt>
<dd>
<p>separate columns by STRING,<br /> without -S: Default separator <TAB> with -J and <space><br /> otherwise (same as -S&quot; &quot;), no effect on column options</p>
</dd>
<dt><code>--merge</code>, <code>-m</code></dt>
<dd>
<p>Merge files. Standard output shall be formatted so the pr utility writes one line from each file specified by a<br /> file operand, side by side into text columns of equal fixed widths, in terms of the number of column positions.<br /> Implementations shall support merging of at least nine file operands.</p>
</dd>
<dt><code>--indent=&lt;margin&gt;</code>, <code>-o &lt;margin&gt;</code></dt>
<dd>
<p>Each line of output shall be preceded by offset <space>s. If the -o option is not specified, the default offset<br /> shall be zero. The space taken is in addition to the output line width (see the -w option below).</p>
</dd>
<dt><code>-J</code></dt>
<dd>
<p>merge full lines, turns off -W line truncation, no column<br /> alignment, --sep-string[=STRING] sets separators</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Show this help message</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Show version information</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-59"><a class="header" href="#examples-59">Examples</a></h2>
<p>Print multiple files with a default header and footer:</p>
<pre><code class="language-shell">pr {{file1}} {{file2}} {{file3}}
</code></pre>
<p>Print with a custom centered header:</p>
<pre><code class="language-shell">pr -h &quot;{{header}}&quot; {{file1}} {{file2}} {{file3}}
</code></pre>
<p>Print with numbered lines and a custom date format:</p>
<pre><code class="language-shell">pr -n -D &quot;{{format}}&quot; {{file1}} {{file2}} {{file3}}
</code></pre>
<p>Print all files together, one in each column, without a header or footer:</p>
<pre><code class="language-shell">pr -m -T {{file1}} {{file2}} {{file3}}
</code></pre>
<p>Print, beginning at page 2 up to page 5, with a given page length (including header and footer):</p>
<pre><code class="language-shell">pr +{{2}}:{{5}} -l {{page_length}} {{file1}} {{file2}} {{file3}}
</code></pre>
<p>Print with an offset for each line and a truncating custom page width:</p>
<pre><code class="language-shell">pr -o {{offset}} -W {{width}} {{file1}} {{file2}} {{file3}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="printenv"><a class="header" href="#printenv">printenv</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>printenv [VARIABLE]... [OPTION]...
</code></pre>
<p>Display the values of the specified environment VARIABLE(s), or (with no VARIABLE) display name and value pairs for them all.</p>
<h2 id="options-63"><a class="header" href="#options-63">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--null</code>, <code>-0</code></dt>
<dd>
<p>end each output line with 0 byte rather than newline</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-60"><a class="header" href="#examples-60">Examples</a></h2>
<p>Display key-value pairs of all environment variables:</p>
<pre><code class="language-shell">printenv
</code></pre>
<p>Display the value of a specific variable:</p>
<pre><code class="language-shell">printenv {{HOME}}
</code></pre>
<p>Display the value of a variable and end with NUL instead of newline:</p>
<pre><code class="language-shell">printenv --null {{HOME}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="printf"><a class="header" href="#printf">printf</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>printf FORMATSTRING [ARGUMENT]...
</code></pre>
<p>Print output based off of the format string and proceeding arguments.</p>
<h2 id="options-64"><a class="header" href="#options-64">Options</a></h2>
<dl><dt><code>--help</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-61"><a class="header" href="#examples-61">Examples</a></h2>
<p>Print a text message:</p>
<pre><code class="language-shell">printf &quot;{{%s\n}}&quot; &quot;{{Hello world}}&quot;
</code></pre>
<p>Print an integer in bold blue:</p>
<pre><code class="language-shell">printf &quot;{{\e[1;34m%.3d\e[0m\n}}&quot; {{42}}
</code></pre>
<p>Print a float number with the Unicode Euro sign:</p>
<pre><code class="language-shell">printf &quot;{{\u20AC %.2f\n}}&quot; {{123.4}}
</code></pre>
<p>Print a text message composed with environment variables:</p>
<pre><code class="language-shell">printf &quot;{{var1: %s\tvar2: %s\n}}&quot; &quot;{{$VAR1}}&quot; &quot;{{$VAR2}}&quot;
</code></pre>
<p>Store a formatted message in a variable (does not work on zsh):</p>
<pre><code class="language-shell">printf -v {{myvar}} {{&quot;This is %s = %d\n&quot; &quot;a year&quot; 2016}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="ptx"><a class="header" href="#ptx">ptx</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>ptx [OPTION]... [INPUT]...
ptx -G [OPTION]... [INPUT [OUTPUT]]
</code></pre>
<p>Output a permuted index, including context, of the words in the input files. </p>
<p>Mandatory arguments to long options are mandatory for short options too.
With no FILE, or when FILE is -, read standard input. Default is '-F /'.</p>
<h2 id="options-65"><a class="header" href="#options-65">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--auto-reference</code>, <code>-A</code></dt>
<dd>
<p>output automatically generated references</p>
</dd>
<dt><code>--traditional</code>, <code>-G</code></dt>
<dd>
<p>behave more like System V 'ptx'</p>
</dd>
<dt><code>--flag-truncation=&lt;STRING&gt;</code>, <code>-F &lt;STRING&gt;</code></dt>
<dd>
<p>use STRING for flagging line truncations</p>
</dd>
<dt><code>--macro-name=&lt;STRING&gt;</code>, <code>-M &lt;STRING&gt;</code></dt>
<dd>
<p>macro name to use instead of 'xx'</p>
</dd>
<dt><code>--format=roff</code>, <code>-O</code></dt>
<dd>
<p>generate output as roff directives</p>
</dd>
<dt><code>--right-side-refs</code>, <code>-R</code></dt>
<dd>
<p>put references at right, not counted in -w</p>
</dd>
<dt><code>--sentence-regexp=&lt;REGEXP&gt;</code>, <code>-S &lt;REGEXP&gt;</code></dt>
<dd>
<p>for end of lines or end of sentences</p>
</dd>
<dt><code>--format=tex</code>, <code>-T</code></dt>
<dd>
<p>generate output as TeX directives</p>
</dd>
<dt><code>--word-regexp=&lt;REGEXP&gt;</code>, <code>-W &lt;REGEXP&gt;</code></dt>
<dd>
<p>use REGEXP to match each keyword</p>
</dd>
<dt><code>--break-file=&lt;FILE&gt;</code>, <code>-b &lt;FILE&gt;</code></dt>
<dd>
<p>word break characters in this FILE</p>
</dd>
<dt><code>--ignore-case</code>, <code>-f</code></dt>
<dd>
<p>fold lower case to upper case for sorting</p>
</dd>
<dt><code>--gap-size=&lt;NUMBER&gt;</code>, <code>-g &lt;NUMBER&gt;</code></dt>
<dd>
<p>gap size in columns between output fields</p>
</dd>
<dt><code>--ignore-file=&lt;FILE&gt;</code>, <code>-i &lt;FILE&gt;</code></dt>
<dd>
<p>read ignore word list from FILE</p>
</dd>
<dt><code>--only-file=&lt;FILE&gt;</code>, <code>-o &lt;FILE&gt;</code></dt>
<dd>
<p>read only word list from this FILE</p>
</dd>
<dt><code>--references=&lt;FILE&gt;</code>, <code>-r &lt;FILE&gt;</code></dt>
<dd>
<p>first field of each line is a reference</p>
</dd>
<dt><code>--width=&lt;NUMBER&gt;</code>, <code>-w &lt;NUMBER&gt;</code></dt>
<dd>
<p>output width in columns, reference excluded</p>
</dd>
</dl>
<h2 id="examples-62"><a class="header" href="#examples-62">Examples</a></h2>
<p>Generate a permuted index where the first field of each line is an index reference:</p>
<pre><code class="language-shell">ptx --references {{path/to/file}}
</code></pre>
<p>Generate a permuted index with automatically generated index references:</p>
<pre><code class="language-shell">ptx --auto-reference {{path/to/file}}
</code></pre>
<p>Generate a permuted index with a fixed width:</p>
<pre><code class="language-shell">ptx --width={{width_in_columns}} {{path/to/file}}
</code></pre>
<p>Generate a permuted index with a list of filtered words:</p>
<pre><code class="language-shell">ptx --only-file={{path/to/filter}} {{path/to/file}}
</code></pre>
<p>Generate a permuted index with SYSV-style behaviors:</p>
<pre><code class="language-shell">ptx --traditional {{path/to/file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="pwd"><a class="header" href="#pwd">pwd</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>pwd [OPTION]... FILE...
</code></pre>
<p>Display the full filename of the current working directory.</p>
<h2 id="options-66"><a class="header" href="#options-66">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--logical</code>, <code>-L</code></dt>
<dd>
<p>use PWD from environment, even if it contains symlinks</p>
</dd>
<dt><code>--physical</code>, <code>-P</code></dt>
<dd>
<p>avoid all symlinks</p>
</dd>
</dl>
<h2 id="examples-63"><a class="header" href="#examples-63">Examples</a></h2>
<p>Print the current directory:</p>
<pre><code class="language-shell">pwd
</code></pre>
<p>Print the current directory, and resolve all symlinks (i.e. show the &quot;physical&quot; path):</p>
<pre><code class="language-shell">pwd -P
</code></pre>
<p>Print the current logical directory:</p>
<pre><code class="language-shell">pwd -L
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="readlink"><a class="header" href="#readlink">readlink</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>readlink [OPTIONS] [files]...
</code></pre>
<p>Print value of a symbolic link or canonical file name.</p>
<h2 id="options-67"><a class="header" href="#options-67">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--canonicalize</code>, <code>-f</code></dt>
<dd>
<p>canonicalize by following every symlink in every component of the given name recursively; all but the last component must exist</p>
</dd>
<dt><code>--canonicalize-existing</code>, <code>-e</code></dt>
<dd>
<p>canonicalize by following every symlink in every component of the given name recursively, all components must exist</p>
</dd>
<dt><code>--canonicalize-missing</code>, <code>-m</code></dt>
<dd>
<p>canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence</p>
</dd>
<dt><code>--no-newline</code>, <code>-n</code></dt>
<dd>
<p>do not output the trailing delimiter</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>suppress most error messages</p>
</dd>
<dt><code>--silent</code>, <code>-s</code></dt>
<dd>
<p>suppress most error messages</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>report error message</p>
</dd>
<dt><code>--zero</code>, <code>-z</code></dt>
<dd>
<p>separate output with NUL rather than newline</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-64"><a class="header" href="#examples-64">Examples</a></h2>
<p>Get the actual file to which the symlink points:</p>
<pre><code class="language-shell">readlink {{filename}}
</code></pre>
<p>Get the absolute path to a file:</p>
<pre><code class="language-shell">readlink -f {{filename}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="realpath"><a class="header" href="#realpath">realpath</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>realpath [OPTION]... FILE...
</code></pre>
<p>print the resolved path</p>
<h2 id="options-68"><a class="header" href="#options-68">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>Do not print warnings for invalid paths</p>
</dd>
<dt><code>--strip</code>, <code>-s</code></dt>
<dd>
<p>Only strip '.' and '..' components, but don't resolve symbolic links</p>
</dd>
<dt><code>--zero</code>, <code>-z</code></dt>
<dd>
<p>Separate output filenames with \0 rather than newline</p>
</dd>
<dt><code>--logical</code>, <code>-L</code></dt>
<dd>
<p>resolve '..' components before symlinks</p>
</dd>
<dt><code>--physical</code>, <code>-P</code></dt>
<dd>
<p>resolve symlinks as encountered (default)</p>
</dd>
<dt><code>--canonicalize-existing</code>, <code>-e</code></dt>
<dd>
<p>canonicalize by following every symlink in every component of the given name recursively, all components must exist</p>
</dd>
<dt><code>--canonicalize-missing</code>, <code>-m</code></dt>
<dd>
<p>canonicalize by following every symlink in every component of the given name recursively, without requirements on components existence</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-65"><a class="header" href="#examples-65">Examples</a></h2>
<p>Display the absolute path for a file or directory:</p>
<pre><code class="language-shell">realpath {{path/to/file_or_directory}}
</code></pre>
<p>Require all path components to exist:</p>
<pre><code class="language-shell">realpath --canonicalize-existing {{path/to/file_or_directory}}
</code></pre>
<p>Resolve &quot;..&quot; components before symlinks:</p>
<pre><code class="language-shell">realpath --logical {{path/to/file_or_directory}}
</code></pre>
<p>Disable symlink expansion:</p>
<pre><code class="language-shell">realpath --no-symlinks {{path/to/file_or_directory}}
</code></pre>
<p>Suppress error messages:</p>
<pre><code class="language-shell">realpath --quiet {{path/to/file_or_directory}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="relpath"><a class="header" href="#relpath">relpath</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>relpath [-d DIR] TO [FROM]
</code></pre>
<p>Convert TO destination to the relative path from the FROM dir.
If FROM path is omitted, current working dir will be used.</p>
<h2 id="options-69"><a class="header" href="#options-69">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>-d</code></dt>
<dd>
<p>If any of FROM and TO is not subpath of DIR, output absolute path instead of relative</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<div style="break-before: page; page-break-before: always;"></div><h1 id="rm"><a class="header" href="#rm">rm</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>rm [OPTION]... FILE...
</code></pre>
<p>Remove (unlink) the FILE(s)</p>
<h2 id="options-70"><a class="header" href="#options-70">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--force</code>, <code>-f</code></dt>
<dd>
<p>ignore nonexistent files and arguments, never prompt</p>
</dd>
<dt><code>--prompt before every removal</code>, <code>-i</code></dt>
<dd>
</dd>
<dt><code>-I</code></dt>
<dd>
<p>prompt once before removing more than three files, or when removing recursively. Less intrusive than -i, while still giving some protection against most mistakes</p>
</dd>
<dt><code>--interactive=&lt;WHEN&gt;</code></dt>
<dd>
<p>prompt according to WHEN: never, once (-I), or always (-i). Without WHEN, prompts always</p>
</dd>
<dt><code>--one-file-system</code></dt>
<dd>
<p>when removing a hierarchy recursively, skip any directory that is on a file system different from that of the corresponding command line argument (NOT IMPLEMENTED)</p>
</dd>
<dt><code>--no-preserve-root</code></dt>
<dd>
<p>do not treat '/' specially</p>
</dd>
<dt><code>--preserve-root</code></dt>
<dd>
<p>do not remove '/' (default)</p>
</dd>
<dt><code>--recursive</code>, <code>-r</code></dt>
<dd>
<p>remove directories and their contents recursively</p>
</dd>
<dt><code>-R</code></dt>
<dd>
<p>Equivalent to -r</p>
</dd>
<dt><code>--dir</code>, <code>-d</code></dt>
<dd>
<p>remove empty directories</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>explain what is being done</p>
</dd>
<dt><code>--presume-input-tty</code></dt>
<dd>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-66"><a class="header" href="#examples-66">Examples</a></h2>
<p>Remove files from arbitrary locations:</p>
<pre><code class="language-shell">rm {{path/to/file}} {{path/to/another/file}}
</code></pre>
<p>Recursively remove a directory and all its subdirectories:</p>
<pre><code class="language-shell">rm -r {{path/to/directory}}
</code></pre>
<p>Forcibly remove a directory, without prompting for confirmation or showing error messages:</p>
<pre><code class="language-shell">rm -rf {{path/to/directory}}
</code></pre>
<p>Interactively remove multiple files, with a prompt before every removal:</p>
<pre><code class="language-shell">rm -i {{file(s)}}
</code></pre>
<p>Remove files in verbose mode, printing a message for each removed file:</p>
<pre><code class="language-shell">rm -v {{path/to/directory/*}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="rmdir"><a class="header" href="#rmdir">rmdir</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>rmdir [OPTION]... DIRECTORY...
</code></pre>
<p>Remove the DIRECTORY(ies), if they are empty.</p>
<h2 id="options-71"><a class="header" href="#options-71">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--ignore-fail-on-non-empty</code></dt>
<dd>
<p>ignore each failure that is solely because a directory is non-empty</p>
</dd>
<dt><code>--parents</code>, <code>-p</code></dt>
<dd>
<p>remove DIRECTORY and its ancestors; e.g.,<br /> 'rmdir -p a/b/c' is similar to rmdir a/b/c a/b a</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>output a diagnostic for every directory processed</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-67"><a class="header" href="#examples-67">Examples</a></h2>
<p>Remove directory, provided it is empty. Use <code>rm -r</code> to remove non-empty directories:</p>
<pre><code class="language-shell">rmdir {{path/to/directory}}
</code></pre>
<p>Remove the target and its parent directories (useful for nested dirs):</p>
<pre><code class="language-shell">rmdir -p {{path/to/directory}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="runcon"><a class="header" href="#runcon">runcon</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>runcon [CONTEXT COMMAND [ARG...]]
runcon [-c] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [ARG...]
</code></pre>
<p>Run command with specified security context.</p>
<h2 id="options-72"><a class="header" href="#options-72">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--compute</code>, <code>-c</code></dt>
<dd>
<p>Compute process transition context before modifying.</p>
</dd>
<dt><code>--user=&lt;USER&gt;</code>, <code>-u &lt;USER&gt;</code></dt>
<dd>
<p>Set user USER in the target security context.</p>
</dd>
<dt><code>--role=&lt;ROLE&gt;</code>, <code>-r &lt;ROLE&gt;</code></dt>
<dd>
<p>Set role ROLE in the target security context.</p>
</dd>
<dt><code>--type=&lt;TYPE&gt;</code>, <code>-t &lt;TYPE&gt;</code></dt>
<dd>
<p>Set type TYPE in the target security context.</p>
</dd>
<dt><code>--range=&lt;RANGE&gt;</code>, <code>-l &lt;RANGE&gt;</code></dt>
<dd>
<p>Set range RANGE in the target security context.</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-68"><a class="header" href="#examples-68">Examples</a></h2>
<p>Determine the current domain:</p>
<pre><code class="language-shell">runcon
</code></pre>
<p>Specify the domain to run a command in:</p>
<pre><code class="language-shell">runcon -t {{domain}}_t {{command}}
</code></pre>
<p>Specify the context role to run a command with:</p>
<pre><code class="language-shell">runcon -r {{role}}_r {{command}}
</code></pre>
<p>Specify the full context to run a command with:</p>
<pre><code class="language-shell">runcon {{user}}_u:{{role}}_r:{{domain}}_t {{command}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="seq"><a class="header" href="#seq">seq</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>seq [OPTION]... LAST
seq [OPTION]... FIRST LAST
seq [OPTION]... FIRST INCREMENT LAST
</code></pre>
<p>Display numbers from FIRST to LAST, in steps of INCREMENT.</p>
<h2 id="options-73"><a class="header" href="#options-73">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--separator</code>, <code>-s</code></dt>
<dd>
<p>Separator character (defaults to \n)</p>
</dd>
<dt><code>--terminator</code>, <code>-t</code></dt>
<dd>
<p>Terminator character (defaults to \n)</p>
</dd>
<dt><code>--widths</code>, <code>-w</code></dt>
<dd>
<p>Equalize widths of all numbers by padding with zeros</p>
</dd>
<dt><code>--format</code>, <code>-f</code></dt>
<dd>
<p>use printf style floating-point FORMAT</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-69"><a class="header" href="#examples-69">Examples</a></h2>
<p>Sequence from 1 to 10:</p>
<pre><code class="language-shell">seq 10
</code></pre>
<p>Every 3rd number from 5 to 20:</p>
<pre><code class="language-shell">seq 5 3 20
</code></pre>
<p>Separate the output with a space instead of a newline:</p>
<pre><code class="language-shell">seq -s &quot; &quot; 5 3 20
</code></pre>
<p>Format output width to a minimum of 4 digits padding with zeros as necessary:</p>
<pre><code class="language-shell">seq -f &quot;%04g&quot; 5 3 20
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sha1sum"><a class="header" href="#sha1sum">sha1sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sha1sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-74"><a class="header" href="#options-74">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-70"><a class="header" href="#examples-70">Examples</a></h2>
<p>Calculate the SHA1 checksum for a file:</p>
<pre><code class="language-shell">sha1sum {{path/to/file}}
</code></pre>
<p>Calculate SHA1 checksums for multiple files:</p>
<pre><code class="language-shell">sha1sum {{path/to/file1}} {{path/to/file2}}
</code></pre>
<p>Calculate and save the list of SHA1 checksums to a file:</p>
<pre><code class="language-shell">sha1sum {{path/to/file1}} {{path/to/file2}} &gt; {{path/to/file.sha1}}
</code></pre>
<p>Read a file of SHA1 sums and verify all files have matching checksums:</p>
<pre><code class="language-shell">sha1sum --check {{path/to/file.sha1}}
</code></pre>
<p>Only show a message for missing files or when verification fails:</p>
<pre><code class="language-shell">sha1sum --check --quiet {{path/to/file.sha1}}
</code></pre>
<p>Only show a message for files for which verification fails, ignoring missing files:</p>
<pre><code class="language-shell">sha1sum --ignore-missing --check --quiet {{path/to/file.sha1}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sha224sum"><a class="header" href="#sha224sum">sha224sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sha224sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-75"><a class="header" href="#options-75">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-71"><a class="header" href="#examples-71">Examples</a></h2>
<p>Calculate the SHA224 checksum for a file:</p>
<pre><code class="language-shell">sha224sum {{path/to/file}}
</code></pre>
<p>Calculate SHA224 checksums for multiple files:</p>
<pre><code class="language-shell">sha224sum {{path/to/file1}} {{path/to/file2}}
</code></pre>
<p>Calculate and save the list of SHA224 checksums to a file:</p>
<pre><code class="language-shell">sha224sum {{path/to/file1}} {{path/to/file2}} &gt; {{path/to/file.sha224}}
</code></pre>
<p>Read a file of SHA224 sums and verify all files have matching checksums:</p>
<pre><code class="language-shell">sha224sum --check {{path/to/file.sha224}}
</code></pre>
<p>Only show a message for missing files or when verification fails:</p>
<pre><code class="language-shell">sha224sum --check --quiet {{path/to/file.sha224}}
</code></pre>
<p>Only show a message for files for which verification fails, ignoring missing files:</p>
<pre><code class="language-shell">sha224sum --ignore-missing --check --quiet {{path/to/file.sha224}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sha256sum"><a class="header" href="#sha256sum">sha256sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sha256sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-76"><a class="header" href="#options-76">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-72"><a class="header" href="#examples-72">Examples</a></h2>
<p>Calculate the SHA256 checksum for a file:</p>
<pre><code class="language-shell">sha256sum {{path/to/file}}
</code></pre>
<p>Calculate SHA256 checksums for multiple files:</p>
<pre><code class="language-shell">sha256sum {{path/to/file1}} {{path/to/file2}}
</code></pre>
<p>Calculate and save the list of SHA256 checksums to a file:</p>
<pre><code class="language-shell">sha256sum {{path/to/file1}} {{path/to/file2}} &gt; {{path/to/file.sha256}}
</code></pre>
<p>Read a file of SHA256 sums and verify all files have matching checksums:</p>
<pre><code class="language-shell">sha256sum --check {{path/to/file.sha256}}
</code></pre>
<p>Only show a message for missing files or when verification fails:</p>
<pre><code class="language-shell">sha256sum --check --quiet {{path/to/file.sha256}}
</code></pre>
<p>Only show a message for files for which verification fails, ignoring missing files:</p>
<pre><code class="language-shell">sha256sum --ignore-missing --check --quiet {{path/to/file.sha256}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sha3-224sum"><a class="header" href="#sha3-224sum">sha3-224sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sha3-224sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-77"><a class="header" href="#options-77">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sha3-256sum"><a class="header" href="#sha3-256sum">sha3-256sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sha3-256sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-78"><a class="header" href="#options-78">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sha3-384sum"><a class="header" href="#sha3-384sum">sha3-384sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sha3-384sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-79"><a class="header" href="#options-79">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sha3-512sum"><a class="header" href="#sha3-512sum">sha3-512sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sha3-512sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-80"><a class="header" href="#options-80">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sha384sum"><a class="header" href="#sha384sum">sha384sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sha384sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-81"><a class="header" href="#options-81">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-73"><a class="header" href="#examples-73">Examples</a></h2>
<p>Calculate the SHA384 checksum for a file:</p>
<pre><code class="language-shell">sha384sum {{path/to/file}}
</code></pre>
<p>Calculate SHA384 checksums for multiple files:</p>
<pre><code class="language-shell">sha384sum {{path/to/file1}} {{path/to/file2}}
</code></pre>
<p>Calculate and save the list of SHA384 checksums to a file:</p>
<pre><code class="language-shell">sha384sum {{path/to/file1}} {{path/to/file2}} &gt; {{path/to/file.sha384}}
</code></pre>
<p>Read a file of SHA384 sums and verify all files have matching checksums:</p>
<pre><code class="language-shell">sha384sum --check {{path/to/file.sha384}}
</code></pre>
<p>Only show a message for missing files or when verification fails:</p>
<pre><code class="language-shell">sha384sum --check --quiet {{path/to/file.sha384}}
</code></pre>
<p>Only show a message for files for which verification fails, ignoring missing files:</p>
<pre><code class="language-shell">sha384sum --ignore-missing --check --quiet {{path/to/file.sha384}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sha3sum"><a class="header" href="#sha3sum">sha3sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sha3sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-82"><a class="header" href="#options-82">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--bits=&lt;BITS&gt;</code></dt>
<dd>
<p>set the size of the output (only for SHAKE)</p>
</dd>
</dl>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sha512sum"><a class="header" href="#sha512sum">sha512sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sha512sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-83"><a class="header" href="#options-83">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-74"><a class="header" href="#examples-74">Examples</a></h2>
<p>Calculate the SHA512 checksum for a file:</p>
<pre><code class="language-shell">sha512sum {{path/to/file}}
</code></pre>
<p>Calculate SHA512 checksums for multiple files:</p>
<pre><code class="language-shell">sha512sum {{path/to/file1}} {{path/to/file2}}
</code></pre>
<p>Calculate and save the list of SHA512 checksums to a file:</p>
<pre><code class="language-shell">sha512sum {{path/to/file1}} {{path/to/file2}} &gt; {{path/to/file.sha512}}
</code></pre>
<p>Read a file of SHA512 sums and verify all files have matching checksums:</p>
<pre><code class="language-shell">sha512sum --check {{path/to/file.sha512}}
</code></pre>
<p>Only show a message for missing files or when verification fails:</p>
<pre><code class="language-shell">sha512sum --check --quiet {{path/to/file.sha512}}
</code></pre>
<p>Only show a message for files for which verification fails, ignoring missing files:</p>
<pre><code class="language-shell">sha512sum --ignore-missing --check --quiet {{path/to/file.sha512}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="shake128sum"><a class="header" href="#shake128sum">shake128sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>shake128sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-84"><a class="header" href="#options-84">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--bits=&lt;BITS&gt;</code></dt>
<dd>
<p>set the size of the output (only for SHAKE)</p>
</dd>
</dl>
<div style="break-before: page; page-break-before: always;"></div><h1 id="shake256sum"><a class="header" href="#shake256sum">shake256sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>shake256sum [OPTIONS] [FILE]...
</code></pre>
<p>Compute and check message digests.</p>
<h2 id="options-85"><a class="header" href="#options-85">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--binary</code>, <code>-b</code></dt>
<dd>
<p>read in binary mode</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>read hashsums from the FILEs and check them</p>
</dd>
<dt><code>--tag</code></dt>
<dd>
<p>create a BSD-style checksum</p>
</dd>
<dt><code>--text</code>, <code>-t</code></dt>
<dd>
<p>read in text mode (default)</p>
</dd>
<dt><code>--quiet</code>, <code>-q</code></dt>
<dd>
<p>don't print OK for each successfully verified file</p>
</dd>
<dt><code>--status</code>, <code>-s</code></dt>
<dd>
<p>don't output anything, status code shows success</p>
</dd>
<dt><code>--strict</code></dt>
<dd>
<p>exit non-zero for improperly formatted checksum lines</p>
</dd>
<dt><code>--warn</code>, <code>-w</code></dt>
<dd>
<p>warn about improperly formatted checksum lines</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--bits=&lt;BITS&gt;</code></dt>
<dd>
<p>set the size of the output (only for SHAKE)</p>
</dd>
</dl>
<div style="break-before: page; page-break-before: always;"></div><h1 id="shred"><a class="header" href="#shred">shred</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>shred [OPTION]... FILE...
</code></pre>
<p>Overwrite the specified FILE(s) repeatedly, in order to make it harder
for even very expensive hardware probing to recover the data.</p>
<h2 id="options-86"><a class="header" href="#options-86">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--force</code>, <code>-f</code></dt>
<dd>
<p>change permissions to allow writing if necessary</p>
</dd>
<dt><code>--iterations=&lt;NUMBER&gt;</code>, <code>-n &lt;NUMBER&gt;</code></dt>
<dd>
<p>overwrite N times instead of the default (3)</p>
</dd>
<dt><code>--size=&lt;N&gt;</code>, <code>-s &lt;N&gt;</code></dt>
<dd>
<p>shred this many bytes (suffixes like K, M, G accepted)</p>
</dd>
<dt><code>--remove</code>, <code>-u</code></dt>
<dd>
<p>truncate and remove file after overwriting; See below</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>show progress</p>
</dd>
<dt><code>--exact</code>, <code>-x</code></dt>
<dd>
<p>do not round file sizes up to the next full block;<br />this is the default for non-regular files</p>
</dd>
<dt><code>--zero</code>, <code>-z</code></dt>
<dd>
<p>add a final overwrite with zeros to hide shredding</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-75"><a class="header" href="#examples-75">Examples</a></h2>
<p>Overwrite a file:</p>
<pre><code class="language-shell">shred {{file}}
</code></pre>
<p>Overwrite a file, leaving zeroes instead of random data:</p>
<pre><code class="language-shell">shred --zero {{file}}
</code></pre>
<p>Overwrite a file 25 times:</p>
<pre><code class="language-shell">shred -n25 {{file}}
</code></pre>
<p>Overwrite a file and remove it:</p>
<pre><code class="language-shell">shred --remove {{file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="shuf"><a class="header" href="#shuf">shuf</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>shuf [OPTION]... [FILE]
shuf -e [OPTION]... [ARG]...
shuf -i LO-HI [OPTION]...
</code></pre>
<p>Shuffle the input by outputting a random permutation of input lines.Each output permutation is equally likely.With no FILE, or when FILE is -, read standard input.</p>
<h2 id="options-87"><a class="header" href="#options-87">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--echo=&lt;ARG&gt;</code>, <code>-e &lt;ARG&gt;</code></dt>
<dd>
<p>treat each ARG as an input line</p>
</dd>
<dt><code>--input-range=&lt;LO-HI&gt;</code>, <code>-i &lt;LO-HI&gt;</code></dt>
<dd>
<p>treat each number LO through HI as an input line</p>
</dd>
<dt><code>--head-count=&lt;COUNT&gt;</code>, <code>-n &lt;COUNT&gt;</code></dt>
<dd>
<p>output at most COUNT lines</p>
</dd>
<dt><code>--output=&lt;FILE&gt;</code>, <code>-o &lt;FILE&gt;</code></dt>
<dd>
<p>write result to FILE instead of standard output</p>
</dd>
<dt><code>--random-source=&lt;FILE&gt;</code></dt>
<dd>
<p>get random bytes from FILE</p>
</dd>
<dt><code>--repeat</code>, <code>-r</code></dt>
<dd>
<p>output lines can be repeated</p>
</dd>
<dt><code>--zero-terminated</code>, <code>-z</code></dt>
<dd>
<p>line delimiter is NUL, not newline</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-76"><a class="header" href="#examples-76">Examples</a></h2>
<p>Randomize the order of lines in a file and output the result:</p>
<pre><code class="language-shell">shuf {{filename}}
</code></pre>
<p>Only output the first 5 entries of the result:</p>
<pre><code class="language-shell">shuf --head-count={{5}} {{filename}}
</code></pre>
<p>Write the output to another file:</p>
<pre><code class="language-shell">shuf {{filename}} --output={{output_filename}}
</code></pre>
<p>Generate 3 random numbers in the range 1-10 (inclusive):</p>
<pre><code class="language-shell">shuf --head-count={{3}} --input-range={{1-10}} --repeat
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sleep"><a class="header" href="#sleep">sleep</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sleep NUMBER[SUFFIX]...
sleep OPTION
</code></pre>
<p>Pause for NUMBER seconds.</p>
<h2 id="options-88"><a class="header" href="#options-88">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
<p>pause for NUMBER seconds</p>
</dd>
</dl>
<h2 id="examples-77"><a class="header" href="#examples-77">Examples</a></h2>
<p>Delay in seconds:</p>
<pre><code class="language-shell">sleep {{seconds}}
</code></pre>
<p>Delay in minutes:</p>
<pre><code class="language-shell">sleep {{minutes}}m
</code></pre>
<p>Delay in hours:</p>
<pre><code class="language-shell">sleep {{hours}}h
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sort"><a class="header" href="#sort">sort</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sort [OPTION]... [FILE]...
</code></pre>
<p>Display sorted concatenation of all FILE(s). With no FILE, or when FILE is -, read standard input.</p>
<h2 id="options-89"><a class="header" href="#options-89">Options</a></h2>
<dl><dt><code>--version</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Print help information.</p>
</dd>
<dt><code>--sort</code></dt>
<dd>
</dd>
<dt><code>--human-numeric-sort</code>, <code>-h</code></dt>
<dd>
<p>compare according to human readable sizes, eg 1M &gt; 100k</p>
</dd>
<dt><code>--month-sort</code>, <code>-M</code></dt>
<dd>
<p>compare according to month name abbreviation</p>
</dd>
<dt><code>--numeric-sort</code>, <code>-n</code></dt>
<dd>
<p>compare according to string numerical value</p>
</dd>
<dt><code>--general-numeric-sort</code>, <code>-g</code></dt>
<dd>
<p>compare according to string general numerical value</p>
</dd>
<dt><code>--version-sort</code>, <code>-V</code></dt>
<dd>
<p>Sort by SemVer version number, eg 1.12.2 &gt; 1.1.2</p>
</dd>
<dt><code>--random-sort</code>, <code>-R</code></dt>
<dd>
<p>shuffle in random order</p>
</dd>
<dt><code>--dictionary-order</code>, <code>-d</code></dt>
<dd>
<p>consider only blanks and alphanumeric characters</p>
</dd>
<dt><code>--merge</code>, <code>-m</code></dt>
<dd>
<p>merge already sorted files; do not sort</p>
</dd>
<dt><code>--check</code>, <code>-c</code></dt>
<dd>
<p>check for sorted input; do not sort</p>
</dd>
<dt><code>--check-silent</code>, <code>-C</code></dt>
<dd>
<p>exit successfully if the given file is already sorted, and exit with status 1 otherwise.</p>
</dd>
<dt><code>--ignore-case</code>, <code>-f</code></dt>
<dd>
<p>fold lower case to upper case characters</p>
</dd>
<dt><code>--ignore-nonprinting</code>, <code>-i</code></dt>
<dd>
<p>ignore nonprinting characters</p>
</dd>
<dt><code>--ignore-leading-blanks</code>, <code>-b</code></dt>
<dd>
<p>ignore leading blanks when finding sort keys in each line</p>
</dd>
<dt><code>--output=&lt;FILENAME&gt;</code>, <code>-o &lt;FILENAME&gt;</code></dt>
<dd>
<p>write output to FILENAME instead of stdout</p>
</dd>
<dt><code>--reverse</code>, <code>-r</code></dt>
<dd>
<p>reverse the output</p>
</dd>
<dt><code>--stable</code>, <code>-s</code></dt>
<dd>
<p>stabilize sort by disabling last-resort comparison</p>
</dd>
<dt><code>--unique</code>, <code>-u</code></dt>
<dd>
<p>output only the first of an equal run</p>
</dd>
<dt><code>--key</code>, <code>-k</code></dt>
<dd>
<p>sort by a key</p>
</dd>
<dt><code>--field-separator</code>, <code>-t</code></dt>
<dd>
<p>custom separator for -k</p>
</dd>
<dt><code>--zero-terminated</code>, <code>-z</code></dt>
<dd>
<p>line delimiter is NUL, not newline</p>
</dd>
<dt><code>--parallel=&lt;NUM_THREADS&gt;</code></dt>
<dd>
<p>change the number of threads running concurrently to NUM_THREADS</p>
</dd>
<dt><code>--buffer-size=&lt;SIZE&gt;</code>, <code>-S &lt;SIZE&gt;</code></dt>
<dd>
<p>sets the maximum SIZE of each segment in number of sorted items</p>
</dd>
<dt><code>--temporary-directory=&lt;DIR&gt;</code>, <code>-T &lt;DIR&gt;</code></dt>
<dd>
<p>use DIR for temporaries, not $TMPDIR or /tmp</p>
</dd>
<dt><code>--compress-program=&lt;PROG&gt;</code></dt>
<dd>
<p>compress temporary files with PROG, decompress with PROG -d; PROG has to take input from stdin and output to stdout</p>
</dd>
<dt><code>--batch-size=&lt;N_MERGE&gt;</code></dt>
<dd>
<p>Merge at most N_MERGE inputs at once.</p>
</dd>
<dt><code>--files0-from=&lt;NUL_FILES&gt;</code></dt>
<dd>
<p>read input from the files specified by NUL-terminated NUL_FILES</p>
</dd>
<dt><code>--debug</code></dt>
<dd>
<p>underline the parts of the line that are actually used for sorting</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-78"><a class="header" href="#examples-78">Examples</a></h2>
<p>Sort a file in ascending order:</p>
<pre><code class="language-shell">sort {{path/to/file}}
</code></pre>
<p>Sort a file in descending order:</p>
<pre><code class="language-shell">sort --reverse {{path/to/file}}
</code></pre>
<p>Sort a file in case-insensitive way:</p>
<pre><code class="language-shell">sort --ignore-case {{path/to/file}}
</code></pre>
<p>Sort a file using numeric rather than alphabetic order:</p>
<pre><code class="language-shell">sort --numeric-sort {{path/to/file}}
</code></pre>
<p>Sort <code>/etc/passwd</code> by the 3rd field of each line numerically, using &quot;:&quot; as a field separator:</p>
<pre><code class="language-shell">sort --field-separator={{:}} --key={{3n}} {{/etc/passwd}}
</code></pre>
<p>Sort a file preserving only unique lines:</p>
<pre><code class="language-shell">sort --unique {{path/to/file}}
</code></pre>
<p>Sort a file, printing the output to the specified output file (can be used to sort a file in-place):</p>
<pre><code class="language-shell">sort --output={{path/to/file}} {{path/to/file}}
</code></pre>
<p>Sort numbers with exponents:</p>
<pre><code class="language-shell">sort --general-numeric-sort {{path/to/file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="split"><a class="header" href="#split">split</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>split [OPTION]... [INPUT [PREFIX]]
</code></pre>
<p>Create output files containing consecutive or interleaved sections of input</p>
<h2 id="options-90"><a class="header" href="#options-90">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--bytes=&lt;SIZE&gt;</code>, <code>-b &lt;SIZE&gt;</code></dt>
<dd>
<p>put SIZE bytes per output file</p>
</dd>
<dt><code>--line-bytes=&lt;SIZE&gt;</code>, <code>-C &lt;SIZE&gt;</code></dt>
<dd>
<p>put at most SIZE bytes of lines per output file</p>
</dd>
<dt><code>--lines=&lt;NUMBER&gt;</code>, <code>-l &lt;NUMBER&gt;</code></dt>
<dd>
<p>put NUMBER lines/records per output file</p>
</dd>
<dt><code>--number=&lt;CHUNKS&gt;</code>, <code>-n &lt;CHUNKS&gt;</code></dt>
<dd>
<p>generate CHUNKS output files; see explanation below</p>
</dd>
<dt><code>--additional-suffix=&lt;SUFFIX&gt;</code></dt>
<dd>
<p>additional SUFFIX to append to output file names</p>
</dd>
<dt><code>--filter=&lt;COMMAND&gt;</code></dt>
<dd>
<p>write to shell COMMAND; file name is $FILE (Currently not implemented for Windows)</p>
</dd>
<dt><code>--elide-empty-files</code>, <code>-e</code></dt>
<dd>
<p>do not generate empty output files with '-n'</p>
</dd>
<dt><code>--numeric-suffixes</code>, <code>-d</code></dt>
<dd>
<p>use numeric suffixes instead of alphabetic</p>
</dd>
<dt><code>--suffix-length=&lt;N&gt;</code>, <code>-a &lt;N&gt;</code></dt>
<dd>
<p>use suffixes of length N (default 2)</p>
</dd>
<dt><code>--hex-suffixes</code>, <code>-x</code></dt>
<dd>
<p>use hex suffixes instead of alphabetic</p>
</dd>
<dt><code>--verbose</code></dt>
<dd>
<p>print a diagnostic just before each output file is opened</p>
</dd>
<dt><code>--io-blksize</code></dt>
<dd>
</dd>
<dt></dt>
<dd>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-79"><a class="header" href="#examples-79">Examples</a></h2>
<p>Split a file, each split having 10 lines (except the last split):</p>
<pre><code class="language-shell">split -l {{10}} {{filename}}
</code></pre>
<p>Split a file into 5 files. File is split such that each split has same size (except the last split):</p>
<pre><code class="language-shell">split -n {{5}} {{filename}}
</code></pre>
<p>Split a file with 512 bytes in each split (except the last split; use 512k for kilobytes and 512m for megabytes):</p>
<pre><code class="language-shell">split -b {{512}} {{filename}}
</code></pre>
<p>Split a file with at most 512 bytes in each split without breaking lines:</p>
<pre><code class="language-shell">split -C {{512}} {{filename}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="stat"><a class="header" href="#stat">stat</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>stat [OPTION]... FILE...
</code></pre>
<p>Display file or file system status.</p>
<h2 id="options-91"><a class="header" href="#options-91">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--dereference</code>, <code>-L</code></dt>
<dd>
<p>follow links</p>
</dd>
<dt><code>--file-system</code>, <code>-f</code></dt>
<dd>
<p>display file system status instead of file status</p>
</dd>
<dt><code>--terse</code>, <code>-t</code></dt>
<dd>
<p>print the information in terse form</p>
</dd>
<dt><code>--format=&lt;FORMAT&gt;</code>, <code>-c &lt;FORMAT&gt;</code></dt>
<dd>
<p>use the specified FORMAT instead of the default;<br /> output a newline after each use of FORMAT</p>
</dd>
<dt><code>--printf=&lt;FORMAT&gt;</code></dt>
<dd>
<p>like --format, but interpret backslash escapes,<br /> and do not output a mandatory trailing newline;<br /> if you want a newline, include <br /> in FORMAT</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-80"><a class="header" href="#examples-80">Examples</a></h2>
<p>Show file properties such as size, permissions, creation and access dates among others:</p>
<pre><code class="language-shell">stat {{file}}
</code></pre>
<p>Same as above but in a more concise way:</p>
<pre><code class="language-shell">stat -t {{file}}
</code></pre>
<p>Show filesystem information:</p>
<pre><code class="language-shell">stat -f {{file}}
</code></pre>
<p>Show only octal file permissions:</p>
<pre><code class="language-shell">stat -c &quot;%a %n&quot; {{file}}
</code></pre>
<p>Show owner and group of the file:</p>
<pre><code class="language-shell">stat -c &quot;%U %G&quot; {{file}}
</code></pre>
<p>Show the size of the file in bytes:</p>
<pre><code class="language-shell">stat -c &quot;%s %n&quot; {{file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="stdbuf"><a class="header" href="#stdbuf">stdbuf</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>stdbuf OPTION... COMMAND
</code></pre>
<p>Run COMMAND, with modified buffering operations for its standard streams.</p>
<p>Mandatory arguments to long options are mandatory for short options too.</p>
<h2 id="options-92"><a class="header" href="#options-92">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--input=&lt;MODE&gt;</code>, <code>-i &lt;MODE&gt;</code></dt>
<dd>
<p>adjust standard input stream buffering</p>
</dd>
<dt><code>--output=&lt;MODE&gt;</code>, <code>-o &lt;MODE&gt;</code></dt>
<dd>
<p>adjust standard output stream buffering</p>
</dd>
<dt><code>--error=&lt;MODE&gt;</code>, <code>-e &lt;MODE&gt;</code></dt>
<dd>
<p>adjust standard error stream buffering</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-81"><a class="header" href="#examples-81">Examples</a></h2>
<p>Change the standard input buffer size to 512 KiB:</p>
<pre><code class="language-shell">stdbuf --input={{512K}} {{command}}
</code></pre>
<p>Change the standard output buffer to line-buffered:</p>
<pre><code class="language-shell">stdbuf --output={{L}} {{command}}
</code></pre>
<p>Change the standard error buffer to unbuffered:</p>
<pre><code class="language-shell">stdbuf --error={{0}} {{command}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sum"><a class="header" href="#sum">sum</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sum [OPTION]... [FILE]...
</code></pre>
<p>Checksum and count the blocks in a file.
With no FILE, or when FILE is -, read standard input.</p>
<h2 id="options-93"><a class="header" href="#options-93">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>-r</code></dt>
<dd>
<p>use the BSD sum algorithm, use 1K blocks (default)</p>
</dd>
<dt><code>--sysv</code>, <code>-s</code></dt>
<dd>
<p>use System V sum algorithm, use 512 bytes blocks</p>
</dd>
</dl>
<h2 id="examples-82"><a class="header" href="#examples-82">Examples</a></h2>
<p>Compute a checksum with BSD-compatible algorithm and 1024-byte blocks:</p>
<pre><code class="language-shell">sum {{file}}
</code></pre>
<p>Compute a checksum with System V-compatible algorithm and 512-byte blocks:</p>
<pre><code class="language-shell">sum --sysv {{file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="sync"><a class="header" href="#sync">sync</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>sync [OPTION]... FILE...
</code></pre>
<p>Synchronize cached writes to persistent storage</p>
<h2 id="options-94"><a class="header" href="#options-94">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--file-system</code>, <code>-f</code></dt>
<dd>
<p>sync the file systems that contain the files (Linux and Windows only)</p>
</dd>
<dt><code>--data</code>, <code>-d</code></dt>
<dd>
<p>sync only file data, no unneeded metadata (Linux only)</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-83"><a class="header" href="#examples-83">Examples</a></h2>
<p>Flush all pending write operations on all disks:</p>
<pre><code class="language-shell">sync
</code></pre>
<p>Flush all pending write operations on a single file to disk:</p>
<pre><code class="language-shell">sync {{path/to/file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="tac"><a class="header" href="#tac">tac</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>tac [OPTION]... [FILE]...
</code></pre>
<p>Write each file to standard output, last line first.</p>
<h2 id="options-95"><a class="header" href="#options-95">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--before</code>, <code>-b</code></dt>
<dd>
<p>attach the separator before instead of after</p>
</dd>
<dt><code>--regex</code>, <code>-r</code></dt>
<dd>
<p>interpret the sequence as a regular expression</p>
</dd>
<dt><code>--separator</code>, <code>-s</code></dt>
<dd>
<p>use STRING as the separator instead of newline</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-84"><a class="header" href="#examples-84">Examples</a></h2>
<p>Concatenate specific files in reversed order:</p>
<pre><code class="language-shell">tac {{path/to/file1 path/to/file2 ...}}
</code></pre>
<p>Display <code>stdin</code> in reversed order:</p>
<pre><code class="language-shell">{{cat path/to/file}} | tac
</code></pre>
<p>Use a specific [s]eparator:</p>
<pre><code class="language-shell">tac -s {{separator}} {{path/to/file1 path/to/file2 ...}}
</code></pre>
<p>Use a specific [r]egex as a [s]eparator:</p>
<pre><code class="language-shell">tac -r -s {{separator}} {{path/to/file1 path/to/file2 ...}}
</code></pre>
<p>Use a separator [b]efore each file:</p>
<pre><code class="language-shell">tac -b {{path/to/file1 path/to/file2 ...}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="tail"><a class="header" href="#tail">tail</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>tail [FLAG]... [FILE]...
</code></pre>
<p>Print the last 10 lines of each FILE to standard output.
With more than one FILE, precede each with a header giving the file name.
With no FILE, or when FILE is -, read standard input.</p>
<p>Mandatory arguments to long flags are mandatory for short flags too.</p>
<h2 id="options-96"><a class="header" href="#options-96">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--bytes</code>, <code>-c</code></dt>
<dd>
<p>Number of bytes to print</p>
</dd>
<dt><code>--follow</code>, <code>-f</code></dt>
<dd>
<p>Print the file as it grows</p>
</dd>
<dt><code>--lines</code>, <code>-n</code></dt>
<dd>
<p>Number of lines to print</p>
</dd>
<dt><code>--pid</code></dt>
<dd>
<p>With -f, terminate after process ID, PID dies</p>
</dd>
<dt><code>--quiet</code>, <code>--silent</code>, <code>-q</code></dt>
<dd>
<p>Never output headers giving file names</p>
</dd>
<dt><code>--sleep-interval</code>, <code>-s</code></dt>
<dd>
<p>Number of seconds to sleep between polling the file when running with -f</p>
</dd>
<dt><code>--max-unchanged-stats</code></dt>
<dd>
<p>Reopen a FILE which has not changed size after N (default 5) iterations to see if it has been unlinked or renamed (this is the usual case of rotated log files); This option is meaningful only when polling (i.e., with --use-polling) and when --follow=name</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>Always output headers giving file names</p>
</dd>
<dt><code>--zero-terminated</code>, <code>-z</code></dt>
<dd>
<p>Line delimiter is NUL, not newline</p>
</dd>
<dt><code>--use-polling</code></dt>
<dd>
<p>Disable 'inotify' support and use polling instead</p>
</dd>
<dt><code>--retry</code></dt>
<dd>
<p>Keep trying to open a file if it is inaccessible</p>
</dd>
<dt><code>-F</code></dt>
<dd>
<p>Same as --follow=name --retry</p>
</dd>
<dt><code>--presume-input-pipe</code></dt>
<dd>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-85"><a class="header" href="#examples-85">Examples</a></h2>
<p>Show last 'count' lines in file:</p>
<pre><code class="language-shell">tail --lines {{count}} {{path/to/file}}
</code></pre>
<p>Print a file from a specific line number:</p>
<pre><code class="language-shell">tail --lines +{{count}} {{path/to/file}}
</code></pre>
<p>Print a specific count of bytes from the end of a given file:</p>
<pre><code class="language-shell">tail --bytes {{count}} {{path/to/file}}
</code></pre>
<p>Print the last lines of a given file and keep reading file until <code>Ctrl + C</code>:</p>
<pre><code class="language-shell">tail --follow {{path/to/file}}
</code></pre>
<p>Keep reading file until <code>Ctrl + C</code>, even if the file is inaccessible:</p>
<pre><code class="language-shell">tail --retry --follow {{path/to/file}}
</code></pre>
<p>Show last 'num' lines in 'file' and refresh every 'n' seconds:</p>
<pre><code class="language-shell">tail --lines {{count}} --sleep-interval {{seconds}} --follow {{path/to/file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="tee"><a class="header" href="#tee">tee</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>tee [OPTION]... [FILE]...
</code></pre>
<p>Copy standard input to each FILE, and also to standard output.</p>
<h2 id="options-97"><a class="header" href="#options-97">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--append</code>, <code>-a</code></dt>
<dd>
<p>append to the given FILEs, do not overwrite</p>
</dd>
<dt><code>--ignore-interrupts</code>, <code>-i</code></dt>
<dd>
<p>ignore interrupt signals (ignored on non-Unix platforms)</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-86"><a class="header" href="#examples-86">Examples</a></h2>
<p>Copy standard input to each file, and also to standard output:</p>
<pre><code class="language-shell">echo &quot;example&quot; | tee {{path/to/file}}
</code></pre>
<p>Append to the given files, do not overwrite:</p>
<pre><code class="language-shell">echo &quot;example&quot; | tee -a {{path/to/file}}
</code></pre>
<p>Print standard input to the terminal, and also pipe it into another program for further processing:</p>
<pre><code class="language-shell">echo &quot;example&quot; | tee {{/dev/tty}} | {{xargs printf &quot;[%s]&quot;}}
</code></pre>
<p>Create a directory called &quot;example&quot;, count the number of characters in &quot;example&quot; and write &quot;example&quot; to the terminal:</p>
<pre><code class="language-shell">echo &quot;example&quot; | tee &gt;(xargs mkdir) &gt;(wc -c)
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="test"><a class="header" href="#test">test</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>test EXPRESSION
test
[ EXPRESSION ]
[ ]
[ OPTION
</code></pre>
<p>Check file types and compare values.</p>
<h2 id="options-98"><a class="header" href="#options-98">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
</dl>
<h2 id="examples-87"><a class="header" href="#examples-87">Examples</a></h2>
<p>Test if a given variable is equal to a given string:</p>
<pre><code class="language-shell">test &quot;{{$MY_VAR}}&quot; == &quot;{{/bin/zsh}}&quot;
</code></pre>
<p>Test if a given variable is empty:</p>
<pre><code class="language-shell">test -z &quot;{{$GIT_BRANCH}}&quot;
</code></pre>
<p>Test if a file exists:</p>
<pre><code class="language-shell">test -f &quot;{{path/to/file_or_directory}}&quot;
</code></pre>
<p>Test if a directory does not exist:</p>
<pre><code class="language-shell">test ! -d &quot;{{path/to/directory}}&quot;
</code></pre>
<p>If-else statement:</p>
<pre><code class="language-shell">test {{condition}} &amp;&amp; {{echo &quot;true&quot;}} || {{echo &quot;false&quot;}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="timeout"><a class="header" href="#timeout">timeout</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>timeout [OPTION] DURATION COMMAND...
</code></pre>
<p>Start COMMAND, and kill it if still running after DURATION.</p>
<h2 id="options-99"><a class="header" href="#options-99">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--foreground</code></dt>
<dd>
<p>when not running timeout directly from a shell prompt, allow COMMAND to read from the TTY and get TTY signals; in this mode, children of COMMAND will not be timed out</p>
</dd>
<dt><code>--kill-after</code>, <code>-k</code></dt>
<dd>
<p>also send a KILL signal if COMMAND is still running this long after the initial signal was sent</p>
</dd>
<dt><code>--preserve-status</code></dt>
<dd>
<p>exit with the same status as COMMAND, even when the command times out</p>
</dd>
<dt><code>--signal</code>, <code>-s</code></dt>
<dd>
<p>specify the signal to be sent on timeout; SIGNAL may be a name like 'HUP' or a number; see 'kill -l' for a list of signals</p>
</dd>
<dt><code>--verbose</code>, <code>-v</code></dt>
<dd>
<p>diagnose to stderr any signal sent upon timeout</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-88"><a class="header" href="#examples-88">Examples</a></h2>
<p>Run <code>sleep 10</code> and terminate it, if it runs for more than 3 seconds:</p>
<pre><code class="language-shell">timeout {{3s}} {{sleep 10}}
</code></pre>
<p>Specify the signal to be sent to the command after the time limit expires. (By default, TERM is sent):</p>
<pre><code class="language-shell">timeout --signal {{INT}} {{5s}} {{sleep 10}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="touch"><a class="header" href="#touch">touch</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>touch [OPTION]... [USER]
</code></pre>
<p>Update the access and modification times of each FILE to the current time.</p>
<h2 id="options-100"><a class="header" href="#options-100">Options</a></h2>
<dl><dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--help</code></dt>
<dd>
<p>Print help information.</p>
</dd>
<dt><code>-a</code></dt>
<dd>
<p>change only the access time</p>
</dd>
<dt><code>-t &lt;STAMP&gt;</code></dt>
<dd>
<p>use [[CC]YY]MMDDhhmm[.ss] instead of the current time</p>
</dd>
<dt><code>--date=&lt;STRING&gt;</code>, <code>-d &lt;STRING&gt;</code></dt>
<dd>
<p>parse argument and use it instead of current time</p>
</dd>
<dt><code>-m</code></dt>
<dd>
<p>change only the modification time</p>
</dd>
<dt><code>--no-create</code>, <code>-c</code></dt>
<dd>
<p>do not create any files</p>
</dd>
<dt><code>--no-dereference</code>, <code>-h</code></dt>
<dd>
<p>affect each symbolic link instead of any referenced file (only for systems that can change the timestamps of a symlink)</p>
</dd>
<dt><code>--reference=&lt;FILE&gt;</code>, <code>-r &lt;FILE&gt;</code></dt>
<dd>
<p>use this file's times instead of the current time</p>
</dd>
<dt><code>--time=&lt;WORD&gt;</code></dt>
<dd>
<p>change only the specified time: &quot;access&quot;, &quot;atime&quot;, or &quot;use&quot; are equivalent to -a; &quot;modify&quot; or &quot;mtime&quot; are equivalent to -m</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-89"><a class="header" href="#examples-89">Examples</a></h2>
<p>Create a new empty file(s) or change the times for existing file(s) to current time:</p>
<pre><code class="language-shell">touch {{path/to/file}}
</code></pre>
<p>Set the times on a file to a specific date and time:</p>
<pre><code class="language-shell">touch -t {{YYYYMMDDHHMM.SS}} {{path/to/file}}
</code></pre>
<p>Set the time on a file to one hour in the past:</p>
<pre><code class="language-shell">touch -d &quot;{{-1 hour}}&quot; {{path/to/file}}
</code></pre>
<p>Use the times from a file to set the times on a second file:</p>
<pre><code class="language-shell">touch -r {{path/to/file1}} {{path/to/file2}}
</code></pre>
<p>Create multiple files:</p>
<pre><code class="language-shell">touch {{path/to/file{1,2,3}.txt}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="tr"><a class="header" href="#tr">tr</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>tr [OPTION]... SET1 [SET2]
</code></pre>
<p>translate or delete characters</p>
<h2 id="options-101"><a class="header" href="#options-101">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--complement</code>, <code>-c</code>, <code>-C</code></dt>
<dd>
<p>use the complement of SET1</p>
</dd>
<dt><code>--delete</code>, <code>-d</code></dt>
<dd>
<p>delete characters in SET1, do not translate</p>
</dd>
<dt><code>--squeeze-repeats</code>, <code>-s</code></dt>
<dd>
<p>replace each sequence of a repeated character that is listed in the last specified SET, with a single occurrence of that character</p>
</dd>
<dt><code>--truncate-set1</code>, <code>-t</code></dt>
<dd>
<p>first truncate SET1 to length of SET2</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-90"><a class="header" href="#examples-90">Examples</a></h2>
<p>Replace all occurrences of a character in a file, and print the result:</p>
<pre><code class="language-shell">tr {{find_character}} {{replace_character}} &lt; {{filename}}
</code></pre>
<p>Replace all occurrences of a character from another command's output:</p>
<pre><code class="language-shell">echo {{text}} | tr {{find_character}} {{replace_character}}
</code></pre>
<p>Map each character of the first set to the corresponding character of the second set:</p>
<pre><code class="language-shell">tr '{{abcd}}' '{{jkmn}}' &lt; {{filename}}
</code></pre>
<p>Delete all occurrences of the specified set of characters from the input:</p>
<pre><code class="language-shell">tr -d '{{input_characters}}' &lt; {{filename}}
</code></pre>
<p>Compress a series of identical characters to a single character:</p>
<pre><code class="language-shell">tr -s '{{input_characters}}' &lt; {{filename}}
</code></pre>
<p>Translate the contents of a file to upper-case:</p>
<pre><code class="language-shell">tr &quot;[:lower:]&quot; &quot;[:upper:]&quot; &lt; {{filename}}
</code></pre>
<p>Strip out non-printable characters from a file:</p>
<pre><code class="language-shell">tr -cd &quot;[:print:]&quot; &lt; {{filename}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="true"><a class="header" href="#true">true</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>true
</code></pre>
<p>Returns true, a successful exit status.</p>
<p>Immediately returns with the exit status <code>0</code>, except when invoked with one of the recognized
options. In those cases it will try to write the help or version text. Any IO error during this
operation causes the program to return <code>1</code> instead.</p>
<h2 id="options-102"><a class="header" href="#options-102">Options</a></h2>
<dl><dt><code>--help</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code></dt>
<dd>
<p>Print version information</p>
</dd>
</dl>
<h2 id="examples-91"><a class="header" href="#examples-91">Examples</a></h2>
<p>Return a successful exit code:</p>
<pre><code class="language-shell">true
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="truncate"><a class="header" href="#truncate">truncate</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>truncate [OPTION]... [FILE]...
</code></pre>
<p>Shrink or extend the size of each file to the specified size.</p>
<h2 id="options-103"><a class="header" href="#options-103">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--io-blocks</code>, <code>-o</code></dt>
<dd>
<p>treat SIZE as the number of I/O blocks of the file rather than bytes (NOT IMPLEMENTED)</p>
</dd>
<dt><code>--no-create</code>, <code>-c</code></dt>
<dd>
<p>do not create files that do not exist</p>
</dd>
<dt><code>--reference=&lt;RFILE&gt;</code>, <code>-r &lt;RFILE&gt;</code></dt>
<dd>
<p>base the size of each file on the size of RFILE</p>
</dd>
<dt><code>--size=&lt;SIZE&gt;</code>, <code>-s &lt;SIZE&gt;</code></dt>
<dd>
<p>set or adjust the size of each file according to SIZE, which is in bytes unless --io-blocks is specified</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-92"><a class="header" href="#examples-92">Examples</a></h2>
<p>Set a size of 10 GB to an existing file, or create a new file with the specified size:</p>
<pre><code class="language-shell">truncate --size {{10G}} {{filename}}
</code></pre>
<p>Extend the file size by 50 MiB, fill with holes (which reads as zero bytes):</p>
<pre><code class="language-shell">truncate --size +{{50M}} {{filename}}
</code></pre>
<p>Shrink the file by 2 GiB, by removing data from the end of file:</p>
<pre><code class="language-shell">truncate --size -{{2G}} {{filename}}
</code></pre>
<p>Empty the file's content:</p>
<pre><code class="language-shell">truncate --size 0 {{filename}}
</code></pre>
<p>Empty the file's content, but do not create the file if it does not exist:</p>
<pre><code class="language-shell">truncate --no-create --size 0 {{filename}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="tsort"><a class="header" href="#tsort">tsort</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>tsort [OPTIONS] FILE
</code></pre>
<p>Topological sort the strings in FILE.
Strings are defined as any sequence of tokens separated by whitespace (tab, space, or newline).
If FILE is not passed in, stdin is used instead.</p>
<h2 id="options-104"><a class="header" href="#options-104">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-93"><a class="header" href="#examples-93">Examples</a></h2>
<p>Perform a topological sort consistent with a partial sort per line of input separated by blanks:</p>
<pre><code class="language-shell">tsort {{file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="tty"><a class="header" href="#tty">tty</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>tty [OPTION]...
</code></pre>
<p>Print the file name of the terminal connected to standard input.</p>
<h2 id="options-105"><a class="header" href="#options-105">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--silent</code>, <code>--quiet</code>, <code>-s</code></dt>
<dd>
<p>print nothing, only return an exit status</p>
</dd>
</dl>
<h2 id="examples-94"><a class="header" href="#examples-94">Examples</a></h2>
<p>Print the file name of this terminal:</p>
<pre><code class="language-shell">tty
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="uname"><a class="header" href="#uname">uname</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>uname [OPTION]...
</code></pre>
<p>Print certain system information. With no OPTION, same as -s.</p>
<h2 id="options-106"><a class="header" href="#options-106">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--all</code>, <code>-a</code></dt>
<dd>
<p>Behave as though all of the options -mnrsv were specified.</p>
</dd>
<dt><code>--kernel-name</code>, <code>-s</code></dt>
<dd>
<p>print the kernel name.</p>
</dd>
<dt><code>--nodename</code>, <code>-n</code></dt>
<dd>
<p>print the nodename (the nodename may be a name that the system is known by to a communications network).</p>
</dd>
<dt><code>--kernel-release</code>, <code>-r</code></dt>
<dd>
<p>print the operating system release.</p>
</dd>
<dt><code>--kernel-version</code>, <code>-v</code></dt>
<dd>
<p>print the operating system version.</p>
</dd>
<dt><code>--machine</code>, <code>-m</code></dt>
<dd>
<p>print the machine hardware name.</p>
</dd>
<dt><code>--operating-system</code>, <code>-o</code></dt>
<dd>
<p>print the operating system name.</p>
</dd>
<dt><code>--processor</code>, <code>-p</code></dt>
<dd>
<p>print the processor type (non-portable)</p>
</dd>
<dt><code>--hardware-platform</code>, <code>-i</code></dt>
<dd>
<p>print the hardware platform (non-portable)</p>
</dd>
</dl>
<h2 id="examples-95"><a class="header" href="#examples-95">Examples</a></h2>
<p>Print kernel name:</p>
<pre><code class="language-shell">uname
</code></pre>
<p>Print system architecture and processor information:</p>
<pre><code class="language-shell">uname --machine --processor
</code></pre>
<p>Print kernel name, kernel release and kernel version:</p>
<pre><code class="language-shell">uname --kernel-name --kernel-release --kernel-version
</code></pre>
<p>Print system hostname:</p>
<pre><code class="language-shell">uname --nodename
</code></pre>
<p>Print all available system information:</p>
<pre><code class="language-shell">uname --all
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="unexpand"><a class="header" href="#unexpand">unexpand</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>unexpand [OPTION]... [FILE]...
</code></pre>
<p>Convert blanks in each FILE to tabs, writing to standard output.
With no FILE, or when FILE is -, read standard input.</p>
<h2 id="options-107"><a class="header" href="#options-107">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
<dt><code>--all</code>, <code>-a</code></dt>
<dd>
<p>convert all blanks, instead of just initial blanks</p>
</dd>
<dt><code>--first-only</code></dt>
<dd>
<p>convert only leading sequences of blanks (overrides -a)</p>
</dd>
<dt><code>--tabs=&lt;N, LIST&gt;</code>, <code>-t &lt;N, LIST&gt;</code></dt>
<dd>
<p>use comma separated LIST of tab positions or have tabs N characters apart instead of 8 (enables -a)</p>
</dd>
<dt><code>--no-utf8</code>, <code>-U</code></dt>
<dd>
<p>interpret input file as 8-bit ASCII rather than UTF-8</p>
</dd>
</dl>
<h2 id="examples-96"><a class="header" href="#examples-96">Examples</a></h2>
<p>Convert blanks in each file to tabs, writing to standard output:</p>
<pre><code class="language-shell">unexpand {{file}}
</code></pre>
<p>Convert blanks to tabs, reading from standard output:</p>
<pre><code class="language-shell">unexpand
</code></pre>
<p>Convert all blanks, instead of just initial blanks:</p>
<pre><code class="language-shell">unexpand -a {{file}}
</code></pre>
<p>Convert only leading sequences of blanks (overrides -a):</p>
<pre><code class="language-shell">unexpand --first-only {{file}}
</code></pre>
<p>Have tabs a certain number of characters apart, not 8 (enables -a):</p>
<pre><code class="language-shell">unexpand -t {{number}} {{file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="uniq"><a class="header" href="#uniq">uniq</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>uniq [OPTION]... [INPUT [OUTPUT]]...
</code></pre>
<p>Report or omit repeated lines.</p>
<h2 id="options-108"><a class="header" href="#options-108">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--all-repeated=&lt;delimit-method&gt;</code>, <code>-D &lt;delimit-method&gt;</code></dt>
<dd>
<p>print all duplicate lines. Delimiting is done with blank lines. [default: none]</p>
</dd>
<dt><code>--group=&lt;group-method&gt;</code></dt>
<dd>
<p>show all items, separating groups with an empty line. [default: separate]</p>
</dd>
<dt><code>--check-chars=&lt;N&gt;</code>, <code>-w &lt;N&gt;</code></dt>
<dd>
<p>compare no more than N characters in lines</p>
</dd>
<dt><code>--count</code>, <code>-c</code></dt>
<dd>
<p>prefix lines by the number of occurrences</p>
</dd>
<dt><code>--ignore-case</code>, <code>-i</code></dt>
<dd>
<p>ignore differences in case when comparing</p>
</dd>
<dt><code>--repeated</code>, <code>-d</code></dt>
<dd>
<p>only print duplicate lines</p>
</dd>
<dt><code>--skip-chars=&lt;N&gt;</code>, <code>-s &lt;N&gt;</code></dt>
<dd>
<p>avoid comparing the first N characters</p>
</dd>
<dt><code>--skip-fields=&lt;N&gt;</code>, <code>-f &lt;N&gt;</code></dt>
<dd>
<p>avoid comparing the first N fields</p>
</dd>
<dt><code>--unique</code>, <code>-u</code></dt>
<dd>
<p>only print unique lines</p>
</dd>
<dt><code>--zero-terminated</code>, <code>-z</code></dt>
<dd>
<p>end lines with 0 byte, not newline</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-97"><a class="header" href="#examples-97">Examples</a></h2>
<p>Display each line once:</p>
<pre><code class="language-shell">sort {{file}} | uniq
</code></pre>
<p>Display only unique lines:</p>
<pre><code class="language-shell">sort {{file}} | uniq -u
</code></pre>
<p>Display only duplicate lines:</p>
<pre><code class="language-shell">sort {{file}} | uniq -d
</code></pre>
<p>Display number of occurrences of each line along with that line:</p>
<pre><code class="language-shell">sort {{file}} | uniq -c
</code></pre>
<p>Display number of occurrences of each line, sorted by the most frequent:</p>
<pre><code class="language-shell">sort {{file}} | uniq -c | sort -nr
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="unlink"><a class="header" href="#unlink">unlink</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>unlink &lt;FILE&gt;
</code></pre>
<p>Unlink the file at FILE.</p>
<h2 id="options-109"><a class="header" href="#options-109">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-98"><a class="header" href="#examples-98">Examples</a></h2>
<p>Remove the specified file if it is the last link:</p>
<pre><code class="language-shell">unlink {{path/to/file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="uptime"><a class="header" href="#uptime">uptime</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>uptime [OPTION]...
</code></pre>
<p>Display the current time, the length of time the system has been up,
the number of users on the system, and the average number of jobs
in the run queue over the last 1, 5 and 15 minutes.</p>
<h2 id="options-110"><a class="header" href="#options-110">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--since</code>, <code>-s</code></dt>
<dd>
<p>system up since</p>
</dd>
</dl>
<h2 id="examples-99"><a class="header" href="#examples-99">Examples</a></h2>
<p>Print current time, uptime, number of logged-in users and other information:</p>
<pre><code class="language-shell">uptime
</code></pre>
<p>Show only the amount of time the system has been booted for:</p>
<pre><code class="language-shell">uptime --pretty
</code></pre>
<p>Print the date and time the system booted up at:</p>
<pre><code class="language-shell">uptime --since
</code></pre>
<p>Show version information:</p>
<pre><code class="language-shell">uptime --version
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="users"><a class="header" href="#users">users</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>users [FILE]
</code></pre>
<p>Print the user names of users currently logged in to the current host</p>
<h2 id="options-111"><a class="header" href="#options-111">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-100"><a class="header" href="#examples-100">Examples</a></h2>
<p>Print logged in usernames:</p>
<pre><code class="language-shell">users
</code></pre>
<p>Print logged in usernames according to a given file:</p>
<pre><code class="language-shell">users {{/var/log/wmtp}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="vdir"><a class="header" href="#vdir">vdir</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v
</div>
</div>
<pre><code>vdir
</code></pre>
<h2 id="options-112"><a class="header" href="#options-112">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
</dl>
<h2 id="examples-101"><a class="header" href="#examples-101">Examples</a></h2>
<p>List files and directories in the current directory, one per line, with details:</p>
<pre><code class="language-shell">vdir
</code></pre>
<p>List with sizes displayed in human-readable units (KB, MB, GB):</p>
<pre><code class="language-shell">vdir -h
</code></pre>
<p>List including hidden files (starting with a dot):</p>
<pre><code class="language-shell">vdir -a
</code></pre>
<p>List files and directories sorting entries by size (largest first):</p>
<pre><code class="language-shell">vdir -S
</code></pre>
<p>List files and directories sorting entries by modification time (newest first):</p>
<pre><code class="language-shell">vdir -t
</code></pre>
<p>List grouping directories first:</p>
<pre><code class="language-shell">vdir --group-directories-first
</code></pre>
<p>Recursively list all files and directories in a specific directory:</p>
<pre><code class="language-shell">vdir --recursive {{path/to/directory}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="wc"><a class="header" href="#wc">wc</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>wc [OPTION]... [FILE]...
</code></pre>
<p>Display newline, word, and byte counts for each FILE, and a total line if
more than one FILE is specified. With no FILE, or when FILE is -, read standard input.</p>
<h2 id="options-113"><a class="header" href="#options-113">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--bytes</code>, <code>-c</code></dt>
<dd>
<p>print the byte counts</p>
</dd>
<dt><code>--chars</code>, <code>-m</code></dt>
<dd>
<p>print the character counts</p>
</dd>
<dt><code>--files0-from=&lt;F&gt;</code></dt>
<dd>
<p>read input from the files specified by<br /> NUL-terminated names in file F;<br /> If F is - then read names from standard input</p>
</dd>
<dt><code>--lines</code>, <code>-l</code></dt>
<dd>
<p>print the newline counts</p>
</dd>
<dt><code>--max-line-length</code>, <code>-L</code></dt>
<dd>
<p>print the length of the longest line</p>
</dd>
<dt><code>--words</code>, <code>-w</code></dt>
<dd>
<p>print the word counts</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-102"><a class="header" href="#examples-102">Examples</a></h2>
<p>Count all lines in a file:</p>
<pre><code class="language-shell">wc --lines {{path/to/file}}
</code></pre>
<p>Count all words in a file:</p>
<pre><code class="language-shell">wc --words {{path/to/file}}
</code></pre>
<p>Count all bytes in a file:</p>
<pre><code class="language-shell">wc --bytes {{path/to/file}}
</code></pre>
<p>Count all characters in a file (taking multi-byte characters into account):</p>
<pre><code class="language-shell">wc --chars {{path/to/file}}
</code></pre>
<p>Count all lines, words and bytes from <code>stdin</code>:</p>
<pre><code class="language-shell">{{find .}} | wc
</code></pre>
<p>Count the length of the longest line in number of characters:</p>
<pre><code class="language-shell">wc --max-line-length {{path/to/file}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="who"><a class="header" href="#who">who</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>who [OPTION]... [ FILE | ARG1 ARG2 ]
</code></pre>
<p>Print information about users who are currently logged in.</p>
<h2 id="options-114"><a class="header" href="#options-114">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt><code>--all</code>, <code>-a</code></dt>
<dd>
<p>same as -b -d --login -p -r -t -T -u</p>
</dd>
<dt><code>--boot</code>, <code>-b</code></dt>
<dd>
<p>time of last system boot</p>
</dd>
<dt><code>--dead</code>, <code>-d</code></dt>
<dd>
<p>print dead processes</p>
</dd>
<dt><code>--heading</code>, <code>-H</code></dt>
<dd>
<p>print line of column headings</p>
</dd>
<dt><code>--login</code>, <code>-l</code></dt>
<dd>
<p>print system login processes</p>
</dd>
<dt><code>--lookup</code></dt>
<dd>
<p>attempt to canonicalize hostnames via DNS</p>
</dd>
<dt><code>-m</code></dt>
<dd>
<p>only hostname and user associated with stdin</p>
</dd>
<dt><code>--process</code>, <code>-p</code></dt>
<dd>
<p>print active processes spawned by init</p>
</dd>
<dt><code>--count</code>, <code>-q</code></dt>
<dd>
<p>all login names and number of users logged on</p>
</dd>
<dt><code>--runlevel</code>, <code>-r</code></dt>
<dd>
<p>print current runlevel</p>
</dd>
<dt><code>--short</code>, <code>-s</code></dt>
<dd>
<p>print only name, line, and time (default)</p>
</dd>
<dt><code>--time</code>, <code>-t</code></dt>
<dd>
<p>print last system clock change</p>
</dd>
<dt><code>--users</code>, <code>-u</code></dt>
<dd>
<p>list users logged in</p>
</dd>
<dt><code>--mesg</code>, <code>--message</code>, <code>--writable</code>, <code>-T</code></dt>
<dd>
<p>add user's message status as +, - or ?</p>
</dd>
<dt><code>-w</code></dt>
<dd>
<p>same as -T</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-103"><a class="header" href="#examples-103">Examples</a></h2>
<p>Display the username, line, and time of all currently logged-in sessions:</p>
<pre><code class="language-shell">who
</code></pre>
<p>Display information only for the current terminal session:</p>
<pre><code class="language-shell">who am i
</code></pre>
<p>Display all available information:</p>
<pre><code class="language-shell">who -a
</code></pre>
<p>Display all available information with table headers:</p>
<pre><code class="language-shell">who -a -H
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="whoami"><a class="header" href="#whoami">whoami</a></h1>
<div class="additional">
<div class="platforms">
<i class="fa fa-brands fa-linux"></i>
<i class="fa fa-brands fa-apple"></i>
<i class="fa fa-brands fa-windows"></i>
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>whoami
</code></pre>
<p>Print the current username.</p>
<h2 id="options-115"><a class="header" href="#options-115">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
</dl>
<h2 id="examples-104"><a class="header" href="#examples-104">Examples</a></h2>
<p>Display currently logged username:</p>
<pre><code class="language-shell">whoami
</code></pre>
<p>Display the username after a change in the user ID:</p>
<pre><code class="language-shell">sudo whoami
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
<div style="break-before: page; page-break-before: always;"></div><h1 id="yes"><a class="header" href="#yes">yes</a></h1>
<div class="additional">
<div class="platforms">
</div>
<div class="version">v0.0.14
</div>
</div>
<pre><code>yes [STRING]...
</code></pre>
<p>yes ~ (uutils) repeatedly display a line with STRING (or 'y')</p>
<h2 id="options-116"><a class="header" href="#options-116">Options</a></h2>
<dl><dt><code>--help</code>, <code>-h</code></dt>
<dd>
<p>Print help information</p>
</dd>
<dt><code>--version</code>, <code>-V</code></dt>
<dd>
<p>Print version information</p>
</dd>
<dt></dt>
<dd>
</dd>
</dl>
<h2 id="examples-105"><a class="header" href="#examples-105">Examples</a></h2>
<p>Repeatedly output &quot;message&quot;:</p>
<pre><code class="language-shell">yes {{message}}
</code></pre>
<p>Repeatedly output &quot;y&quot;:</p>
<pre><code class="language-shell">yes
</code></pre>
<p>Accept everything prompted by the <code>apt-get</code> command:</p>
<pre><code class="language-shell">yes | sudo apt-get install {{program}}
</code></pre>
<blockquote>
<p>The examples are provided by the <a href="https://tldr.sh">tldr-pages project</a> under the <a href="https://github.com/tldr-pages/tldr/blob/main/LICENSE.md">CC BY 4.0 License</a>.</p>
<p>Please note that, as uutils is a work in progress, some examples might fail.</p>
</blockquote>
</main>
<nav class="nav-wrapper" aria-label="Page navigation">
<!-- Mobile navigation buttons -->
<div style="clear: both"></div>
</nav>
</div>
</div>
<nav class="nav-wide-wrapper" aria-label="Page navigation">
</nav>
</div>
<script type="text/javascript">
window.playground_copyable = true;
</script>
<script src="elasticlunr.min.js" type="text/javascript" charset="utf-8"></script>
<script src="mark.min.js" type="text/javascript" charset="utf-8"></script>
<script src="searcher.js" type="text/javascript" charset="utf-8"></script>
<script src="clipboard.min.js" type="text/javascript" charset="utf-8"></script>
<script src="highlight.js" type="text/javascript" charset="utf-8"></script>
<script src="book.js" type="text/javascript" charset="utf-8"></script>
<!-- Custom JS scripts -->
<script type="text/javascript">
window.addEventListener('load', function() {
window.setTimeout(window.print, 100);
});
</script>
</body>
</html>