All Articles
Browse all Linuxize tutorials, guides, and references.
Linux basename Command: Strip Directory and Suffix from File Names
The basename command strips the directory path and optional suffix from a file name. This guide covers all basename options with practical examples.

Linux uname Command: Print System Information
The uname command prints kernel name, version, architecture, and hostname. This guide covers all uname options with examples and practical scripting uses.

.bashrc vs .bash_profile: What is the Difference?
Understand the difference between .bashrc and .bash_profile, when each file is loaded, and where to put aliases, PATH changes, and environment variables.

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.

500 Internal Server Error: What It Means & How to Fix It
A 500 Internal Server Error means the server encountered an unexpected condition. This guide explains common causes, how to diagnose the problem using log files, and steps to fix it.

Understanding the /etc/shadow File in Linux
The /etc/shadow file stores hashed passwords and password aging data for each user on a Linux system. This guide explains the file format, hash types, field meanings, and how to query password information safely.

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 Parse Command-Line Options in Bash with getopts
This guide explains how to parse command-line options in Bash with getopts, including option strings, OPTARG and OPTIND, error handling, and practical script 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.
