All Articles
Browse all Linuxize tutorials, guides, and references.
How to Count Files in a Directory in Linux
Several ways to count files in a directory in Linux using the ls, find, and tree commands, with examples for counting files recursively.

Basic Linux Commands Every User Should Know
The basic Linux commands you need for file management, navigation, permissions, networking, and package management, with practical examples for beginners and system administrators.

Bash Heredoc: Complete Guide with Examples
Bash heredoc lets you pass multi-line text directly to a command inside a shell script. This guide covers syntax, variable expansion, indentation with <<-, SSH usage, and common mistakes.

apt Command in Linux
The apt command manages packages on Ubuntu, Debian, and related distributions. This guide covers the essential commands for installing, upgrading, removing, and searching packages.

Tcpdump Command in Linux
tcpdump is the standard command-line packet analyzer for Linux. This guide covers capturing traffic, filtering by host and port, reading output, and saving captures to a file.

How to Use the gunzip Command in Linux
The gunzip command decompresses .gz files on Linux. This guide covers the most common options with practical examples.

How to Check the PostgreSQL Version
Check the PostgreSQL server version from the command line with postgres --version, or from within a database session using SELECT version() or SHOW server_version. You can also check the psql client version separately.

git fetch vs git pull: What Is the Difference?
git fetch and git pull both download changes from a remote repository, but only one updates your current branch. This guide explains the difference, when to use each command, and how to avoid merge surprises.

How to Use the Export Command in Linux
The export command in Bash marks variables to be inherited by child processes. This guide explains what export does, how to use it, and when to make variables persistent.

How to Install Docker on Ubuntu 24.04
Install Docker on Ubuntu 24.04 from the official Docker repository. Covers repository setup, verification, running without sudo, updates, and uninstall steps.

sha256sum and md5sum Commands: Verify File Integrity in Linux
How to use sha256sum and md5sum to generate and verify checksums for files, validate ISO downloads, and detect tampering on Linux systems.

How to Check the PHP Version
Two ways to check which PHP version is running on your server: the phpinfo() function from the browser, and the php --version command from the terminal.

How to Run a Python Script in Linux
Running a Python script in Linux usually means using `python3 script.py` or making the file executable with a shebang. This guide covers both methods, passing arguments, running modules, and common errors.

PostgreSQL User Management: Create Users and Grant Privileges
Step-by-step instructions for creating PostgreSQL users (roles), setting passwords, and granting or revoking privileges on databases, schemas, and tables.

How to Create MySQL User Accounts and Grant Privileges
Create MySQL user accounts, grant or revoke privileges, and manage access on MySQL 8 and MariaDB with the commands in this guide.

How to Change the SSH Port in Linux
Change the default SSH port 22 by editing sshd_config, adjusting the firewall, and reloading the SSH service on Linux.

How to List PostgreSQL Databases and Tables using psql
List PostgreSQL databases and tables from the psql shell using meta-commands and SQL queries.

SSH Tunnel: Local, Remote, and Dynamic Port Forwarding
SSH tunneling (port forwarding) encrypts and relays TCP traffic through a secure SSH connection. This guide covers local, remote, and dynamic port forwarding with practical examples.

git cherry-pick Command: Apply Commits from Another Branch
How to use git cherry-pick to apply commits from one branch to another, including single commits, ranges, conflict handling, backports, and merge commits.

How to Set Environment Variables in Linux
Set, list, and make environment variables permanent in Linux. Covers shell vs environment variables, export, printenv, and persistent config in ~/.bashrc and /etc/profile.
