Articles by Dejan Panovski
unlink Command in Linux: Remove a Single File
The unlink command removes a single file by deleting its directory entry. This guide explains how to use unlink, how it differs from rm, and what to expect when removing files and symbolic links.

How to Change the SFTP Port
SFTP runs on SSH port 22 by default. This guide explains how to change the SFTP port on Linux, configure your firewall for the new port, and connect using the updated port number.

uniq Command in Linux: Remove and Count Duplicate Lines
The uniq command removes or counts duplicate adjacent lines in a file. This guide explains how to filter duplicates, count occurrences, and use uniq with sort in pipelines.

How to Install Git on Raspberry Pi
Install and configure Git on Raspberry Pi OS using apt or build the latest version from source. Includes configuration steps, troubleshooting, and FAQ.

Using curl to Make REST API Requests
Use curl to test and interact with REST APIs from the command line. Covers GET, POST, PUT, PATCH, DELETE, authentication, and response inspection with examples.

How to Start, Stop, and Restart Apache on Linux
Manage the Apache web server with systemctl on Ubuntu, Debian, Fedora, and RHEL. Covers start, stop, restart, reload, status, enable on boot, and config testing.

pwd Command in Linux: Print the Current Working Directory
The pwd command prints the current working directory in Linux. This guide covers pwd syntax, the -L and -P options, the $PWD variable, and how symlinks affect the output.

How to Install TeamViewer on Ubuntu 24.04
Step-by-step instructions for installing TeamViewer on Ubuntu 24.04. Covers downloading the .deb package, launching the application, keeping it up to date, and removing it.

Check Open Ports in Linux: nmap, netcat, and Bash
Three ways to check which ports are open on a Linux system from the command line: nmap, netcat, and the Bash /dev/tcp pseudo-device.

ifconfig Command in Linux: Configure Network Interfaces
Configure and view network interfaces in Linux using ifconfig. Covers IP assignment, enabling and disabling interfaces, MTU, MAC address changes, and modern ip command equivalents.

Bash For Loop: Syntax and Examples
A complete guide to the Bash for loop: standard syntax, C-style loops, arrays, ranges, break and continue, and real-world scripting examples.

groupdel Command in Linux: Delete a Group
Learn how to delete a Linux group using the groupdel command. Covers syntax, verification, handling primary group errors, and what happens to files owned by the deleted group.

top Command in Linux: Monitor Processes in Real Time
The top command displays running processes and system resource usage in real time. This guide covers sorting, filtering, load metrics, and key interactive controls.

usermod Command in Linux: Modify User Accounts and Groups
The usermod command modifies user account attributes such as groups, shell, home directory, username, and expiry date. This guide covers all common options with examples.

How to Get and Change the Current Working Directory in Python
Use os.getcwd() to get the current working directory in Python, and os.chdir(path) to change it. This guide covers both the os and pathlib approaches with examples.

How to Start, Stop, or Restart Nginx
Learn how to start, stop, restart, and reload Nginx using systemctl on Linux. Includes the reload vs restart difference, configuration testing, and autostart setup.

sort Command in Linux: Sort Lines of Text
The sort command sorts lines of text files alphabetically or numerically. This guide covers sorting by column, reverse order, unique lines, and combining sort with other commands.

wall Command in Linux: Broadcast Messages to Logged-In Users
The wall command broadcasts a message to the terminals of all logged-in users in Linux. This guide covers sending messages from arguments, files, and pipes, with group targeting and banner control.

How to Increment and Decrement a Variable in Bash: Counter Examples
Bash provides several ways to increment and decrement a counter variable in scripts. This guide covers the +/- operators, += and -= assignment operators, and the ++ and -- shorthand with practical examples.

journalctl Command in Linux: Query and Filter System Logs
journalctl queries the systemd journal and lets you filter logs by unit, time, priority, boot, and process. This guide covers the most useful journalctl options with practical examples.

