Articles by Dejan Panovski
stat Command in Linux: Display File and Filesystem Information
The stat command displays detailed file and filesystem information in Linux, including size, permissions, inode number, and timestamps. This guide covers all major stat options with examples.

How to Create Groups in Linux: groupadd Command
This guide explains how to create groups in Linux using the groupadd command, including how to set a custom GID, create system groups, and manage group options.

touch Command in Linux: Create Files and Update Timestamps
The touch command creates empty files and updates file timestamps in Linux. This guide covers access time, modification time, custom timestamps, and reference file usage.

Bash Arrays
A complete guide to Bash arrays: create indexed and associative arrays, access elements, loop, slice, add and remove items, and check array length.

Rsync Command in Linux with Examples
Learn how to use the rsync command to sync files and directories locally and remotely. Covers common options, remote transfers, dry run, exclusions, and troubleshooting.

Linux patch Command: Apply Diff Files
The patch command applies diff files to original files in Linux. This guide covers basic usage, strip paths, dry run, backup, and reversing patches with examples.

Timeout Command in Linux
The timeout command runs a specified command and terminates it after a given time limit. This guide covers syntax, signal handling, exit codes, and practical examples for scripts and pipelines.

How to Compare Strings in Bash
Bash string comparison using equal, not equal, regex, and pattern matching operators. Includes examples for empty strings, case-insensitive matching, and substrings.

How to Check the MySQL Version
Several ways to check which MySQL or MariaDB version is running on your system, including the command line, MySQL shell, and PHP.

How to Delete a MySQL Database on Linux via Command Line
The DROP DATABASE command permanently removes a MySQL or MariaDB database and all its tables. This guide covers the syntax, safe deletion with IF EXISTS, and using mysqladmin.

How to Manage MySQL Databases and Users from the Command Line
A practical reference for managing MySQL databases and user accounts from the command line, covering CREATE, DROP, GRANT, REVOKE, and password changes.

How to Show a List of All Databases in MySQL
Step-by-step guide to listing databases in MySQL and MariaDB using SHOW DATABASES, SHOW SCHEMAS, and the information_schema, with filtering and command-line examples.

How to Create and List Local and Remote Git Branches
Create and list Git branches with git branch and git switch, including remote branches, creating from a commit, pushing to remote, and branch filtering.

How to Change a Git Remote's URL
Change a Git remote URL with git remote set-url, switch between HTTPS and SSH, set separate push and fetch URLs, and verify the change.

How to Remove Untracked Files in Git
Step-by-step guide to removing untracked files and directories in Git using git clean, with dry run, interactive mode, and ignored file cleanup.

How to Remove a Git Remote
Remove a Git remote with git remote rm, verify the change, and understand what happens to tracking branches and the .git/config file.

How to Set or Change Timezone on Debian 13
Learn how to check and change the system time zone on Debian 13 Trixie using the timedatectl command.

Rmmod Command in Linux
Learn how to use the rmmod command to remove kernel modules in Linux, including options, troubleshooting, and best practices.

Python Switch Case Statement (match-case)
Learn how to use Python's match-case statement (structural pattern matching) as a switch-case equivalent. Covers if-elif-else, dictionary lookup, and match-case with examples.

How to Extract (Unzip) Tar Bz2 File
Extract tar.bz2 and .tbz2 files in Linux with the tar command. Includes examples for unpacking to another directory, listing contents, extracting specific files, and reading archives from stdin.

