Skip to content

Tag: cli

All the articles with the tag "cli".

Linux distribution info & kernel info

Linux distribution info & kernel info

· Updated:

Find your Linux distro version, kernel version, and architecture with uname, lsb_release, /etc/os-release, and hostnamectl.

Bulk rename files in bash

Bulk rename files in bash

· Updated:

Bulk rename files from bash: strip spaces and special characters with loops, parameter expansion, rename, and perl patterns. Test before you touch anything.

MySQL CLI: From Connection to Maintenance

MySQL CLI: From Connection to Maintenance

· Updated:

Master MySQL from the command line: connect, query databases, manage users, repair tables, optimize, everything you keep Googling, one reference.

Recursively delete all empty subdirectories

Recursively delete all empty subdirectories

· Updated:

Empty directories pile up after file migrations. Prune them with find and rmdir, dry-run first, use find -delete, and handle hidden dirs without surprises.

Directory FileCount

Directory FileCount

· Updated:

Count files in a directory (recursively or not) with find, ls, and tree, quick one-liners for when du just isn't telling you enough.

Sed 101

Sed 101

· Updated:

sed is the stream editor for making text substitutions, deletions, and insertions in files, the patterns you'll use 90% of the time.