Tag: cli
All the articles with the tag "cli".
-
Preserving Bash History in Multiple Terminal Windows
By default bash history is lost across multiple terminal sessions. Fix it with HISTAPPEND and PROMPT_COMMAND so nothing gets overwritten.
-
Understanding printf vs echo in Bash
echo is convenient but inconsistent across systems; printf is portable and precise — know when to use each and avoid the gotchas.
-
Understanding Grep: A Comprehensive Guide
grep is more powerful than you think — regex patterns, context flags, recursive search, and piping tricks that save hours of log digging.
-
Essential Linux Commands for Daily Use
The Linux commands every sysadmin reaches for daily — file ops, process management, networking, and text manipulation you can't live without.
-
How to Transfer docker Images Without a Repository
Move Docker images between hosts without a registry using docker save and docker load — air-gapped deployments made simple.
-
Copying Files Between Docker Containers and Host Machines
Use docker cp to move files between running containers and your host machine — no volumes needed for one-off file transfers.
-
Multiple Actions with a Single docker exec Call
Run multiple commands in one docker exec call using sh -c — pipe commands, chain with && or ;, and avoid repeated container roundtrips.
-
Mastering xargs in Linux
xargs turns stdin into arguments — build complex pipelines, run parallel jobs, and handle filenames with spaces without breaking everything.
-
Executing Commands with Asterisks in Docker
Shell globbing breaks inside docker exec because of how args are parsed — here's how to pass wildcards and asterisks correctly.
-
Mastering Vim: Essential Commands and Tips
vim survival guide — modes, motions, search and replace, macros, splits, and the config tweaks that make it actually enjoyable to use.
-
Tmux for Streamlining Dev Workflow
tmux sessions, windows, and panes for developers — layouts, plugins, and the .tmux.conf that makes it feel like a proper IDE.
-
Socat: The Swiss Army Knife of Networking
socat relays data between almost any two endpoints — TCP, UDP, Unix sockets, files, and serial ports. The netcat you didn't know you needed.