Articles by Dejan Panovski
Nginx Server Blocks on Ubuntu: Host Multiple Websites
Set up Nginx server blocks on Ubuntu to host multiple websites on a single server, each with its own document root, logs, and configuration.

sed Delete Lines: Remove Lines by Number, Pattern, or Range
Remove lines from files with sed using line numbers, patterns, ranges, and regular expressions. Covers preview mode, in-place editing, and common recipes.

w Command in Linux: Show Logged-In Users and Activity
Learn how to use the w command in Linux to see logged-in users, idle time, load averages, and what each user is doing.

sysctl Command in Linux: View and Change Kernel Parameters
Learn how to use the sysctl command to view, set, and persist Linux kernel parameters, with practical examples for common settings.

Install xrdp on Raspberry Pi: Remote Desktop Setup Guide
Set up xrdp on Raspberry Pi OS and connect over Remote Desktop from Windows, macOS, or Linux. Includes desktop install steps and first login.

How to Set Up a Firewall with UFW on Ubuntu 24.04
Step-by-step instructions for configuring and managing a UFW firewall on Ubuntu 24.04. UFW is a user-friendly front-end for managing iptables firewall rules.

How to Remove Docker Images, Containers, Volumes, and Networks
Remove unused Docker containers, images, volumes, and networks to free disk space. Covers docker system prune, selective removal, filters, and force options.

Configuring the Nginx Error and Access Logs
This guide explains how to configure Nginx access and error logs, define custom log_format directives, and inspect log entries on Linux.

whereis Command in Linux: Find Binary, Source, and Man Pages
The Linux whereis command locates the binary, source, and manual page files for a given command. This guide covers all options with practical examples.

git clone: Clone a Repository
How to use git clone to copy a remote or local repository, clone a specific branch, and create shallow clones, with examples for HTTPS and SSH.

How to Copy Files and Directories in Linux
Step-by-step guide to copying files and directories in Linux with the cp and rsync commands. Covers recursive copies, preserving permissions, and common examples.

Docker Compose: Define and Run Multi-Container Apps
A complete guide to Docker Compose V2 — define multi-container apps with a YAML file, run a SvelteKit and PostgreSQL development environment, and learn the most common Compose directives and commands.

How to Use SSHFS to Mount Remote Directories over SSH
SSHFS lets you mount a remote directory over SSH and browse it like a local filesystem. This guide covers installation on Linux, macOS, and Windows, mounting with options, persistent fstab mounts, and troubleshooting.

Bash printf Command
A practical guide to printf in Bash: formatting numbers, strings, and alignment.

dmesg Command in Linux: Read and Filter Kernel Messages
How to use the dmesg command in Linux to read kernel ring buffer messages, filter by log level and facility, display human-readable timestamps, and watch for new events in real time.

paste Command in Linux: Merge Lines from Files
Use the paste command in Linux to merge lines from multiple files side by side, change delimiters, and serialize output with practical examples.

rpm Command in Linux: Install, Query, and Verify Packages
Use the rpm command in Linux to install, upgrade, remove, query, and verify RPM packages on Fedora, RHEL, AlmaLinux, Rocky Linux, and other RPM-based distributions.

How to Transfer Files with Rsync over SSH
Use rsync over SSH to copy and synchronize files and directories between local and remote systems, with examples for custom ports, dry runs, compression, and progress display.

pstree Command in Linux: View the Process Tree
Use the pstree command in Linux to display running processes as a tree, show PIDs and PGIDs, trace parent processes, and highlight specific branches.

Python if, elif, and else Statements
Learn how to use Python if, elif, and else statements to control program flow, test conditions, and handle multiple branches with practical examples.

