fold Command on Linux: Wrap Long Lines to a Fixed Width
Use fold on Linux to break long lines: fold -w width, fold -s break at spaces, wrap logs…
Read tutorial →Browse step-by-step tutorials in this topic.
Use fold on Linux to break long lines: fold -w width, fold -s break at spaces, wrap logs…
Read tutorial →
Use timeout on Linux to cap command duration: timeout 30s backup, timeout -k SIGKILL, timeout in cron, exit…
Read tutorial →
Use mktemp on Linux for safe temp files in scripts: mktemp, mktemp -d directory, mktemp --tmpdir, trap cleanup…
Read tutorial →
Use basename and dirname on Linux in shell scripts: extract filename from path, get parent directory, basename -s…
Read tutorial →
Use seq on Linux: seq 1 10, seq with step, seq for loops, padded width with -f, and…
Read tutorial →
Use comm on Linux on sorted files: lines only in file1, only in file2, common lines, suppress columns…
Read tutorial →
Use base64 on Linux to encode binary for JSON or email, decode secrets in CI, base64 -w0 no…
Read tutorial →
Use readlink on Linux: readlink -f canonical path, follow symlinks, debug broken links, compare with ls -l and…
Read tutorial →
Use which and whereis on Linux to locate binaries: which python3, whereis nginx, type -a for all paths,…
Read tutorial →
Use stat on Linux: stat file shows inode, mode, uid gid, size, atime mtime ctime, stat -c format…
Read tutorial →