All Articles
Browse all Linuxize tutorials, guides, and references.
which Command in Linux: Find Executable Locations
The which command locates executables by searching the directories in your PATH. This guide covers syntax, options, and how which compares to type, whereis, and command -v.

PHP Error Reporting: Enable, Display, and Log Errors
Step-by-step instructions for configuring PHP error reporting. Covers error levels, display_errors, error_log, php.ini settings, and runtime configuration with error_reporting().

How to Create a tar.gz File in Linux
Step-by-step instructions for creating tar.gz files in Linux using the tar command. Covers single files, directories, wildcards, and excluding files.

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.

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.
