Skip to content

Tag: cli

All the articles with the tag "cli".

Socat: The Swiss Army Knife of Networking

Socat: The Swiss Army Knife of Networking

· Updated:

socat wires TCP, UDP, Unix sockets, files, and serial ports together. Port forwarding, OpenSSL tunnels, traffic capture — this is netcat with superpowers.

ss Is the New netstat (And It's Better)

ss Is the New netstat (And It's Better)

· Updated:

ss replaces netstat on modern Linux: faster, shows more socket detail, and reads from the kernel. Every netstat command you rely on, rewritten for ss.

Understanding printf vs echo in Bash

Understanding printf vs echo in Bash

· Updated:

echo is convenient but inconsistent across systems; printf is portable and precise — know when to use each and avoid the gotchas.

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.

Linux su with custom shell

Linux su with custom shell

· Updated:

Use su with a specific shell to switch users without the default login shell — useful when /etc/passwd points to something unexpected.

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.

Bulk rename files in bash

Bulk rename files in bash

· Updated:

Remove spaces and special characters from filenames using bash loops, rename, find, and parameter expansion tricks.

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.