Articles by Dejan Panovski
How to Rename a Git Branch: Local and Remote
This guide shows how to rename a Git branch locally and on the remote using git branch -m, then push the new name and delete the old remote branch.

ripgrep Command in Linux: Fast Recursive Search
The ripgrep command searches directories recursively while respecting ignore files. This guide explains rg syntax, file type filters, context lines, replacement previews, and config defaults.

nslookup Command in Linux: Query DNS Records
The nslookup command queries DNS servers for domain records. This guide covers A, MX, NS, TXT, and AAAA lookups, reverse DNS, interactive mode, and choosing a specific name server.

How to Run Linux Commands in the Background
Run Linux commands in the background using &, disown, and nohup. This guide explains how to start background processes, move foreground jobs to the background, and keep processes running after the shell exits.

dig Command in Linux: DNS Lookup
The dig command is a DNS lookup tool for querying name servers. This guide covers querying record types, reverse lookups, tracing resolution paths, and verifying DNSSEC.

How to Add a Directory to PATH in Linux
How to add a directory to the PATH variable in Linux for the current session or permanently, covering user-level and system-wide methods.

whois Command in Linux: Query Domain Registration Info
The whois command looks up domain registration, registrar, name server, expiry, IP allocation, and AS number details from Linux.

Bash Append to File: >>, tee, and Heredoc Examples
Append text to a file in Bash using the >> operator, tee -a, and heredoc syntax. Includes examples for scripts, multiple files, and root-owned files.

How to Revert a Commit in Git
Use git revert to safely undo changes from a previous commit by adding a new commit that reverses them, without rewriting pushed history.

How to Install and Use Zsh on Ubuntu
Install Zsh on Ubuntu, set it as the default shell, configure ~/.zshrc, and add Oh My Zsh themes and plugins for daily terminal work.

Linux cp Command: Copy Files and Directories
The cp command copies files and directories in Linux. This guide covers recursive and archive copies, overwrite controls, preserving attributes, and practical examples.

Bash Arithmetic: Integer and Floating-Point Math
How to do arithmetic in Bash with the (( )) operator, $(( )) expansion, the let builtin, and bc or awk for floating-point math the shell cannot do natively.

Sudo Command in Linux: Run Commands as Root
A complete guide to the Linux sudo command. Learn how to run commands as root, manage sudoers, open a root shell, list privileges, set timeouts, and more.

How to Format USB Drives and SD Cards on Linux
Step-by-step instructions for formatting USB drives and SD cards on Linux using parted and mkfs. Covers FAT32, exFAT, EXT4, and NTFS filesystems with partition table setup and verification.

MySQL SHOW TABLES: List Tables in a Database
Use SHOW TABLES to list tables in a MySQL or MariaDB database. This guide covers filtering with LIKE and WHERE, SHOW TABLE STATUS, and querying information_schema.

How to Use sed to Find and Replace Strings in Files
Replace strings in files with sed: run sed -i 's/old/new/g' file. Covers global, case-insensitive, word-boundary, regex, line-range, and recursive replace.

dnf Command in Linux: Install, Update, and Manage Packages
Common dnf commands for installing, updating, removing, searching, and managing packages on Fedora, RHEL, Rocky Linux, AlmaLinux, and other RPM-based systems.

rsync Exclude Patterns: Skip Files and Directories
Exclude files and directories from an rsync transfer with --exclude and --exclude-from, glob patterns, and dry-run previews, with copy-paste examples.

Docker Networking: Connect Containers
Docker networking controls how containers communicate. This guide covers bridge, host, and none networks, port publishing, container DNS, isolation, and Compose networking.

How to Use the kill Command in Linux
Learn how to use the kill command in Linux to terminate processes, send signals, and reload services with practical examples.

