# Baeldung - Linux

Learn about Linux in practice

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Linux File Viewing Series

DevFeed: [Linux File Viewing Series](<https://devfeed.tech/articles/linux-file-viewing-series-4523.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/952800815/0/baeldung/linux~Linux-File-Viewing-Series>)

Author: baeldung

Published: 2026-04-01T15:45:15Z

Content type: article

Language: en

Sources: [Baeldung - Linux](<https://devfeed.tech/sources/baeldung-linux.md>)

Topics: [Linux](<https://devfeed.tech/topics/linux.md>), [Shell](<https://devfeed.tech/topics/shell.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Vim](<https://devfeed.tech/topics/vim.md>), [pdf](<https://devfeed.tech/topics/pdf.md>)

Tags: [command-line](<https://devfeed.tech/tags/command-line.md>), [comparison](<https://devfeed.tech/tags/comparison.md>), [file-viewing](<https://devfeed.tech/tags/file-viewing.md>), [file-viewing-series](<https://devfeed.tech/tags/file-viewing-series.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [linux](<https://devfeed.tech/tags/linux.md>), [pdf](<https://devfeed.tech/tags/pdf.md>), [series](<https://devfeed.tech/tags/series.md>), [techniques](<https://devfeed.tech/tags/techniques.md>), [tools](<https://devfeed.tech/tags/tools.md>)

### AI overview

A Linux command-line guide to viewing and inspecting file content, covering pagers, text searching, Vim navigation, file comparison, and tools for opening specialized formats such as PDF.

### Source excerpt

This guide covers the essential techniques for viewing files in Linux. The post Linux File Viewing Series first appeared on Baeldung on Linux. Related Stories How To Open Visio Files in Linux Linux File Editing Series How to View Font Files in Linux

## How Can I Swap Colors With GIMP?

DevFeed: [How Can I Swap Colors With GIMP?](<https://devfeed.tech/articles/how-can-i-swap-colors-with-gimp-4522.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/922051058/0/baeldung/linux~How-Can-I-Swap-Colors-With-GIMP>)

Author: Haroon Javed

Published: 2025-07-23T03:46:22Z

Content type: tutorial

Language: en

Sources: [Baeldung - Linux](<https://devfeed.tech/sources/baeldung-linux.md>)

Topics: [App](<https://devfeed.tech/topics/app.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [GUI](<https://devfeed.tech/topics/gui.md>)

Tags: [file-editing](<https://devfeed.tech/tags/file-editing.md>), [file-editing-image-processing](<https://devfeed.tech/tags/file-editing-image-processing.md>), [graphics](<https://devfeed.tech/tags/graphics.md>), [gui](<https://devfeed.tech/tags/gui.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [image-processing](<https://devfeed.tech/tags/image-processing.md>), [images](<https://devfeed.tech/tags/images.md>), [learn](<https://devfeed.tech/tags/learn.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

A tutorial explaining how to swap colors in GIMP using the Color Exchange tool and the By Color Select tool. It covers choosing replacement colors, adjusting RGB threshold values, and the strengths and limitations of each method.

### Source excerpt

Learn how to swap colors using GIMP. The post How Can I Swap Colors With GIMP? first appeared on Baeldung on Linux. Related Stories Linux File Editing Series How to Start an Application on a Specific Workspace in i3 Compare Two Images in Linux

## How to Identify the Package Manager of a Linux System

DevFeed: [How to Identify the Package Manager of a Linux System](<https://devfeed.tech/articles/how-to-identify-the-package-manager-of-a-linux-system-4521.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/921621143/0/baeldung/linux~How-to-Identify-the-Package-Manager-of-a-Linux-System>)

Author: Umara Mushtaq

Published: 2025-07-14T02:13:11Z

Content type: tutorial

Language: en

Sources: [Baeldung - Linux](<https://devfeed.tech/sources/baeldung-linux.md>)

Topics: [Package Management](<https://devfeed.tech/topics/package-management.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [apt](<https://devfeed.tech/topics/apt.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [Scripting, bash](<https://devfeed.tech/topics/scripting-bash.md>), [Ubuntu](<https://devfeed.tech/topics/ubuntu.md>), [Automation](<https://devfeed.tech/topics/automation.md>), [Debian](<https://devfeed.tech/topics/debian.md>), [Arch Linux](<https://devfeed.tech/topics/archlinux.md>), [dnf](<https://devfeed.tech/topics/dnf.md>), [Fedora](<https://devfeed.tech/topics/fedora.md>), [pacman](<https://devfeed.tech/topics/pacman.md>)

Tags: [apt](<https://devfeed.tech/tags/apt.md>), [automation](<https://devfeed.tech/tags/automation.md>), [bash](<https://devfeed.tech/tags/bash.md>), [debian](<https://devfeed.tech/tags/debian.md>), [dependency](<https://devfeed.tech/tags/dependency.md>), [dnf](<https://devfeed.tech/tags/dnf.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [errors](<https://devfeed.tech/tags/errors.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [installation](<https://devfeed.tech/tags/installation.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-how-to](<https://devfeed.tech/tags/linux-how-to.md>), [package-management](<https://devfeed.tech/tags/package-management.md>), [package-management-scripting-apt-dnf-pacman-snap-yum](<https://devfeed.tech/tags/package-management-scripting-apt-dnf-pacman-snap-yum.md>), [pacman](<https://devfeed.tech/tags/pacman.md>), [scripting](<https://devfeed.tech/tags/scripting.md>), [snap](<https://devfeed.tech/tags/snap.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>)

### AI overview

This tutorial explains how to identify the package manager used by a Linux system. It covers inferring the manager from the distribution, checking distribution metadata with /etc/os-release or lsb_release, verifying an installed manager with which, and using Bash scripts to detect package managers in automated or multi-distribution environments.

### Source excerpt

Learn different ways to guess or identify the default package manager of a Linux system. The post How to Identify the Package Manager of a Linux System first appeared on Baeldung on Linux. Related Stories How to Check for Available Package Updates in Linux How to Properly Install Valgrind? Background Jobs in a Loop in Bash

## Background Jobs in a Loop in Bash

DevFeed: [Background Jobs in a Loop in Bash](<https://devfeed.tech/articles/background-jobs-in-a-loop-in-bash-4520.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/920673941/0/baeldung/linux~Background-Jobs-in-a-Loop-in-Bash>)

Author: Sourov Jajodia

Published: 2025-06-24T11:47:03Z

Content type: tutorial

Language: en

Sources: [Baeldung - Linux](<https://devfeed.tech/sources/baeldung-linux.md>)

Topics: [Processes](<https://devfeed.tech/topics/processes.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [jobs](<https://devfeed.tech/tags/jobs.md>), [linux](<https://devfeed.tech/tags/linux.md>), [loops](<https://devfeed.tech/tags/loops.md>), [processes](<https://devfeed.tech/tags/processes.md>), [resource](<https://devfeed.tech/tags/resource.md>), [scripting](<https://devfeed.tech/tags/scripting.md>), [scripting-bash](<https://devfeed.tech/tags/scripting-bash.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

A Bash tutorial on running loop iterations as background jobs, waiting for completion, and avoiding excessive parallel work.

### Source excerpt

Learn several patterns to run background jobs in a loop in Bash. The post Background Jobs in a Loop in Bash first appeared on Baeldung on Linux. Related Stories Why the Value of a Variable Modified in a while Loop Is Not Remembered Outside? Executing Commands in Gnuplot through Shell Script Converting Output to String in Linux

## Redirecting Standard Output in C With the dup2() Function

DevFeed: [Redirecting Standard Output in C With the dup2() Function](<https://devfeed.tech/articles/redirecting-standard-output-in-c-with-the-dup2-function-4519.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/920203664/0/baeldung/linux~Redirecting-Standard-Output-in-C-With-the-dup-Function>)

Author: Marcin Buczkowski

Published: 2025-06-14T07:02:25Z

Content type: tutorial

Language: en

Sources: [Baeldung - Linux](<https://devfeed.tech/sources/baeldung-linux.md>)

Topics: [C](<https://devfeed.tech/topics/c.md>), [Redirection](<https://devfeed.tech/topics/redirection.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Streams](<https://devfeed.tech/topics/streams.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [c](<https://devfeed.tech/tags/c.md>), [code](<https://devfeed.tech/tags/code.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [gcc](<https://devfeed.tech/tags/gcc.md>), [linux](<https://devfeed.tech/tags/linux.md>), [processes](<https://devfeed.tech/tags/processes.md>), [processes-gcc-redirection-streams](<https://devfeed.tech/tags/processes-gcc-redirection-streams.md>), [redirection](<https://devfeed.tech/tags/redirection.md>), [streams](<https://devfeed.tech/tags/streams.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

This tutorial explains how standard input and output redirection works in Linux and how to implement it in C. It introduces file descriptors and standard streams, then shows how dup2() duplicates a descriptor so program output can be redirected to a file without changing the code that writes to STDOUT.

### Source excerpt

Learn how redirection works and the way the dup2() function achieves it in C. The post Redirecting Standard Output in C With the dup2() Function first appeared on Baeldung on Linux. Related Stories How to Find the SCHED_RR Scheduling Policy's Time Slice How Can I Swap Colors With GIMP? How to Identify the Package Manager of a Linux System

## Linux Emergency Recovery With init=/bin/bash

DevFeed: [Linux Emergency Recovery With init=/bin/bash](<https://devfeed.tech/articles/linux-emergency-recovery-with-init-bin-bash-4518.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/920030138/0/baeldung/linux~Linux-Emergency-Recovery-With-initbinbash>)

Author: Francesco Galgani

Published: 2025-06-10T19:40:59Z

Content type: tutorial

Language: en

Sources: [Baeldung - Linux](<https://devfeed.tech/sources/baeldung-linux.md>)

Topics: [Linux](<https://devfeed.tech/topics/linux.md>), [Boot Process](<https://devfeed.tech/topics/boot-process.md>), [systemd](<https://devfeed.tech/topics/systemd.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>), [passwords](<https://devfeed.tech/topics/passwords.md>), [Filesystems](<https://devfeed.tech/topics/filesystems.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [boot](<https://devfeed.tech/tags/boot.md>), [boot-process](<https://devfeed.tech/tags/boot-process.md>), [boot-process-passwd-systemd](<https://devfeed.tech/tags/boot-process-passwd-systemd.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [passwd](<https://devfeed.tech/tags/passwd.md>), [password](<https://devfeed.tech/tags/password.md>), [recovery](<https://devfeed.tech/tags/recovery.md>), [root](<https://devfeed.tech/tags/root.md>), [systemd](<https://devfeed.tech/tags/systemd.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

This tutorial explains how to recover an unbootable Linux system by adding init=/bin/bash to the kernel parameters. It covers entering a root Bash shell as PID 1, working with encrypted LVM and LUKS installations, resetting passwords, remounting the filesystem as read/write, and forcing a reboot when normal shutdown commands are unavailable. The method is presented as an emergency measure because an improper forced reboot can cause data loss or corruption.

### Source excerpt

Learn to use the init=/bin/bash kernel parameter to access a minimalist root shell on systems that wouldn't otherwise boot. The post Linux Emergency Recovery With init=/bin/bash first appeared on Baeldung on Linux. Click the icon below to watch. Related Stories Linux Emergency Recovery With init=/bin/bash - Enclosure How to Restore Systemd After Deleting It Accidentally How to Dual Boot Windows and Linux

## What Is SELinux?

DevFeed: [What Is SELinux?](<https://devfeed.tech/articles/what-is-selinux-4516.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/919939004/0/baeldung/linux~What-Is-SELinux>)

Author: Zachary Bouhannana

Published: 2025-06-09T04:53:08Z

Content type: tutorial

Language: en

Sources: [Baeldung - Linux](<https://devfeed.tech/sources/baeldung-linux.md>)

Topics: [SELinux](<https://devfeed.tech/topics/selinux.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Security](<https://devfeed.tech/topics/security.md>), [Processes](<https://devfeed.tech/topics/processes.md>), [Operating system](<https://devfeed.tech/topics/operating-system.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [administration](<https://devfeed.tech/tags/administration.md>), [administration-security-chmod-ls-selinux](<https://devfeed.tech/tags/administration-security-chmod-ls-selinux.md>), [chmod](<https://devfeed.tech/tags/chmod.md>), [linux](<https://devfeed.tech/tags/linux.md>), [ls](<https://devfeed.tech/tags/ls.md>), [processes](<https://devfeed.tech/tags/processes.md>), [security](<https://devfeed.tech/tags/security.md>), [selinux](<https://devfeed.tech/tags/selinux.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

This tutorial explains SELinux, a security module built into the Linux kernel that adds mandatory access control beyond traditional Unix-style permissions. It describes how SELinux policies govern interactions between processes, users, and system resources, including limiting actions by root, and contrasts this model with discretionary access control.

### Source excerpt

Learn what SELinux is, how it works, and the way it can provide better security when paired with the common discretionary access control. The post What Is SELinux? first appeared on Baeldung on Linux. Related Stories Sending a Password via SSH or SCP Using subprocess.Popen in Linux Resolving the Reverse Tunnel Remote port forwarding failed for listen port SSH Error How to Fix USB Sticks Mounted as Read-Only

## Resolving the Reverse Tunnel Remote port forwarding failed for listen port SSH Error

DevFeed: [Resolving the Reverse Tunnel Remote port forwarding failed for listen port SSH Error](<https://devfeed.tech/articles/resolving-the-reverse-tunnel-remote-port-forwarding-failed-for-listen-port-ssh-error-4517.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/919939007/0/baeldung/linux~Resolving-the-Reverse-Tunnel-Remote-port-forwarding-failed-for-listen-port-SSH-Error>)

Author: Hiks Gerganov

Published: 2025-06-09T04:49:53Z

Content type: tutorial

Language: en

Sources: [Baeldung - Linux](<https://devfeed.tech/sources/baeldung-linux.md>)

Topics: [ssh](<https://devfeed.tech/topics/ssh.md>), [OpenSSH](<https://devfeed.tech/topics/openssh.md>), [Network](<https://devfeed.tech/topics/network.md>), [Firewall](<https://devfeed.tech/topics/firewall.md>), [Virtual Private Network](<https://devfeed.tech/topics/vpn.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [Debian](<https://devfeed.tech/topics/debian.md>), [Server](<https://devfeed.tech/topics/server.md>), [client](<https://devfeed.tech/topics/client.md>), [Protocol (disambiguation)](<https://devfeed.tech/topics/protocol.md>), [systems](<https://devfeed.tech/topics/systems.md>), [aio](<https://devfeed.tech/topics/aio.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [debian](<https://devfeed.tech/tags/debian.md>), [firewall](<https://devfeed.tech/tags/firewall.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [learn](<https://devfeed.tech/tags/learn.md>), [linux](<https://devfeed.tech/tags/linux.md>), [network](<https://devfeed.tech/tags/network.md>), [network-configuration](<https://devfeed.tech/tags/network-configuration.md>), [network-configuration-network-monitoring-security-ssh](<https://devfeed.tech/tags/network-configuration-network-monitoring-security-ssh.md>), [remote](<https://devfeed.tech/tags/remote.md>), [security](<https://devfeed.tech/tags/security.md>), [server](<https://devfeed.tech/tags/server.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [vpn](<https://devfeed.tech/tags/vpn.md>)

### AI overview

This tutorial explains reverse SSH tunnels, also called SSH remote port forwarding. It covers how they allow a protected client behind NAT, a firewall, a router, or a VPN to expose local services to a remote server, along with prerequisites and common connection problems.

### Source excerpt

Learn about reverse SSH tunnels, i.e., SSH port forwarding, and issues that you might encounter when trying to use them. The post Resolving the Reverse Tunnel Remote port forwarding failed for listen port SSH Error first appeared on Baeldung on Linux. Related Stories Sending a Password via SSH or SCP Using subprocess.Popen in Linux What Is SELinux? How To Automatically Connect to a VPN in Linux

## Using if-else Conditionals in a Makefile

DevFeed: [Using if-else Conditionals in a Makefile](<https://devfeed.tech/articles/using-if-else-conditionals-in-a-makefile-4515.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/919796387/0/baeldung/linux~Using-ifelse-Conditionals-in-a-Makefile>)

Author: baeldung

Published: 2025-06-06T09:36:00Z

Content type: tutorial

Language: en

Sources: [Baeldung - Linux](<https://devfeed.tech/sources/baeldung-linux.md>)

Topics: [make](<https://devfeed.tech/topics/make.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Operating system](<https://devfeed.tech/topics/operating-system.md>), [gcc](<https://devfeed.tech/topics/gcc.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [building](<https://devfeed.tech/tags/building.md>), [building-make-popular](<https://devfeed.tech/tags/building-make-popular.md>), [code](<https://devfeed.tech/tags/code.md>), [examples](<https://devfeed.tech/tags/examples.md>), [gcc](<https://devfeed.tech/tags/gcc.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [learn](<https://devfeed.tech/tags/learn.md>), [linux](<https://devfeed.tech/tags/linux.md>), [make](<https://devfeed.tech/tags/make.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [os](<https://devfeed.tech/tags/os.md>), [popular](<https://devfeed.tech/tags/popular.md>), [programming](<https://devfeed.tech/tags/programming.md>), [scripting](<https://devfeed.tech/tags/scripting.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

A tutorial explaining how to use if-else conditional directives in Makefiles. It covers ifeq, ifneq, ifdef, and ifndef, with examples for selecting compiler flags, handling operating-system differences, and assigning default variable values.

### Source excerpt

Learn how to use if-else conditional statements inside of Makefiles. The post Using if-else Conditionals in a Makefile first appeared on Baeldung on Linux. Related Stories How to Identify the Package Manager of a Linux System Background Jobs in a Loop in Bash Executing Commands in Gnuplot through Shell Script

## How to Fix USB Sticks Mounted as Read-Only

DevFeed: [How to Fix USB Sticks Mounted as Read-Only](<https://devfeed.tech/articles/how-to-fix-usb-sticks-mounted-as-read-only-4514.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/919792943/0/baeldung/linux~How-to-Fix-USB-Sticks-Mounted-as-ReadOnly>)

Author: Samuel Njuguna Karanja

Published: 2025-06-06T07:56:19Z

Content type: tutorial

Language: en

Sources: [Baeldung - Linux](<https://devfeed.tech/sources/baeldung-linux.md>)

Topics: [USB](<https://devfeed.tech/topics/usb.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [mount](<https://devfeed.tech/topics/mount.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>)

Tags: [administration](<https://devfeed.tech/tags/administration.md>), [administration-filesystems-hardware-mount-usb](<https://devfeed.tech/tags/administration-filesystems-hardware-mount-usb.md>), [errors](<https://devfeed.tech/tags/errors.md>), [filesystem](<https://devfeed.tech/tags/filesystem.md>), [filesystems](<https://devfeed.tech/tags/filesystems.md>), [flash](<https://devfeed.tech/tags/flash.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mount](<https://devfeed.tech/tags/mount.md>), [storage](<https://devfeed.tech/tags/storage.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [usb](<https://devfeed.tech/tags/usb.md>)

### AI overview

This Linux tutorial explains why USB flash drives may be mounted as read-only, including filesystem errors, read-only mount options, physical write protection, and failing flash storage. It also introduces checking the current mount mode with the mount command.

### Source excerpt

Learn how to identify and diagnose undesired USB flash drive read-only mounts. The post How to Fix USB Sticks Mounted as Read-Only first appeared on Baeldung on Linux. Related Stories SMB mount Security Modes and Fixing mount error(13): Permission denied in Linux What Is SELinux? Removing Log Files with a Cron Job in Linux