Articles by Dejan Panovski
ufw Command in Linux: Uncomplicated Firewall Reference
Reference for the ufw command on Linux, with examples for enabling the firewall, allowing and denying traffic, deleting rules, and managing application profiles.

who Command in Bash: List Logged-In Users
The who command lists currently logged-in users, along with their terminal, login time, and remote host. Use it to see active sessions, system boot time, and the current runlevel.

How to Change MySQL User Password
Change a MySQL or MariaDB user password from the mysql shell using ALTER USER. Includes the modern syntax for MySQL 8.0, notes on FLUSH PRIVILEGES, and troubleshooting common errors.

How To Create a Sudo User on Ubuntu
Create a new user on Ubuntu with a home directory and grant sudo privileges using adduser and usermod, so you can run administrative commands without logging in as root.

How to Show/List Users in MySQL
Query the mysql.user table to list all MySQL user accounts, check their privileges with SHOW GRANTS, and see who is currently connected to the server.

How to Check the Kernel Version in Linux
Three quick ways to find the Linux kernel version from the command line: uname, hostnamectl, and /proc/version.

How To Delete a Local and Remote Git Branch
Git branches pile up fast after merging. This guide shows you how to delete local and remote branches, clean up stale tracking references, and recover a branch you removed by mistake.

How to Run Sudo Command Without Password
Configure the sudoers file or a drop-in file in /etc/sudoers.d to let a user or group run sudo commands without a password prompt.

How to Force HTTPS using .htaccess
Redirect all HTTP traffic to HTTPS using Apache .htaccess rewrite rules, with examples for www and non-www domain handling.

Docker Run Command with Examples
Practical examples of docker run covering detached mode, port publishing, volumes, environment variables, restart policies, and interactive shells.

file Command in Linux: Determine File Types
Identify file types from the command line using the Linux file command. Covers basic usage, MIME types, compressed files, symlinks, and the magic database.

Chattr Command in Linux (File Attributes)
How to use chattr and lsattr to set and view file attributes in Linux, including immutable files, append-only logs, and recursive protection.

Apache Commands: Manage and Troubleshoot Your Web Server
Quick reference for essential Apache commands on Linux. Covers service control, configuration testing, modules, virtual hosts, version info, and log files.

env Command in Linux: Show and Set Environment Variables
The env command prints environment variables and runs programs with a modified environment. This guide covers env syntax, running commands with custom variables, clean environments, and portable shebangs.

503 Service Unavailable Error: Causes and How to Fix It
The 503 Service Unavailable error means the server cannot handle your request. This guide explains what causes it and how to fix it on Nginx and Apache.

Bash Functions
How to define and use Bash functions, pass arguments, return values, and apply best practices for writing cleaner and more maintainable scripts.

Create a Linux Swap File
How to create and enable a swap file on Linux, configure swappiness, resize an existing swap file, and remove it when no longer needed.

How to Upgrade Debian 12 to Debian 13 Trixie
Step-by-step instructions for upgrading Debian 12 Bookworm to Debian 13 Trixie, including sources.list changes, package upgrades, and post-upgrade verification.

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.

nmap Command in Linux with Practical Examples
Use the nmap command in Linux to discover hosts, scan ports, detect services, and understand common scan options such as -sn, -Pn, and -sV.

