All Articles
Browse all Linuxize tutorials, guides, and references.
whoami Command in Linux: Display the Current User Name
The whoami command shows the current effective username on Linux. This guide explains syntax, practical examples, shell script usage, and how it compares to id -un and $USER.

How to Connect to a Docker Container
This guide explains how to connect to a running Docker container using docker exec and docker attach, with examples for getting a shell, running commands, and viewing logs.

How to Copy Files and Directories in Linux
Step-by-step guide to copying files and directories in Linux with the cp and rsync commands. Covers recursive copies, preserving permissions, and common examples.

How to Enable and Disable Root User Account in Ubuntu
This guide explains how to enable and disable the root user account in Ubuntu using the passwd command, and covers safer alternatives like sudo -i and su -.

jobs Command in Linux: List and Manage Background Jobs
The jobs command lists background and suspended processes in the current shell session. This guide covers syntax, options, job specifications, and practical examples.

Docker Compose: Define and Run Multi-Container Apps
A complete guide to Docker Compose V2 — define multi-container apps with a YAML file, run a SvelteKit and PostgreSQL development environment, and learn the most common Compose directives and commands.

pushd and popd Commands in Linux: Navigate Directories with a Stack
The pushd and popd commands let you save directories to a stack and jump between them instantly. This guide covers syntax, the dirs command, stack rotation, and practical workflow examples.

How to Use SSHFS to Mount Remote Directories over SSH
SSHFS lets you mount a remote directory over SSH and browse it like a local filesystem. This guide covers installation on Linux, macOS, and Windows, mounting with options, persistent fstab mounts, and troubleshooting.

How to Mount exFAT Drives on Ubuntu 24.04 and 22.04
Mount exFAT USB drives and SD cards on Ubuntu 24.04, 22.04, and older releases. This guide covers automatic and manual mounting, exFAT utilities, fstab entries, and fixes for common errors.

Bash printf Command
A practical guide to printf in Bash: formatting numbers, strings, and alignment.

Redirect HTTP to HTTPS in Nginx
How to redirect HTTP to HTTPS in Nginx using a separate server block with a 301 redirect — for a single site or all sites on the server.

Bash Comparison Operators
Learn how to use comparison operators in Bash to compare integers and strings in your shell scripts.

shutdown Command in Linux: Power Off, Reboot, and Schedule
How to use the shutdown command in Linux to power off, halt, or reboot the system immediately or at a scheduled time, with examples of all common options.

git diff Command: Show Changes Between Commits
How to use git diff to compare working directory changes, staged files, commits, and branches — with practical examples and common options explained.

How to Build Docker Images with Dockerfile
How to write a Dockerfile, build a Docker image with docker build, and run a container — with a practical Ubuntu 24.04 example and common Dockerfile instructions explained.

git log Command: View Commit History
How to use git log to browse commit history, filter by author, date, and keyword, view changed files, display branch graphs, and format output for scripts and terminals.

dmesg Command in Linux: Read and Filter Kernel Messages
How to use the dmesg command in Linux to read kernel ring buffer messages, filter by log level and facility, display human-readable timestamps, and watch for new events in real time.

How to Create a sudo User on Debian
Create a sudo user on Debian 11, 12, and 13 by adding a new account and granting sudo privileges through the sudo group or the sudoers file.

paste Command in Linux: Merge Lines from Files
Use the paste command in Linux to merge lines from multiple files side by side, change delimiters, and serialize output with practical examples.

git stash: Save and Restore Uncommitted Changes
How to use git stash to temporarily save uncommitted changes, switch branches, and restore your work — with examples for stashing untracked files, named stashes, and partial stashes.
