# Redirection

Shell redirection is a command-language feature that redirects command input and output and manages file descriptors.

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

## LHB Linux Digest #26.11: New Free Course, Named Pipes, Multi-kernel and More

DevFeed: [LHB Linux Digest #26.11: New Free Course, Named Pipes, Multi-kernel and More](<https://devfeed.tech/articles/lhb-linux-digest-26-11-new-free-course-named-pipes-multi-kernel-and-more-48070.md>)

Original publisher: [Read original article](<https://linuxhandbook.com/newsletter/26-11/>)

Author: Abhishek Prakash

Published: 2026-09-04T13:30:39Z

Content type: article

Language: en

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

Topics: [Linux](<https://devfeed.tech/topics/linux.md>), [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [Redirection](<https://devfeed.tech/topics/redirection.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [ssh](<https://devfeed.tech/topics/ssh.md>), [PostgreSQL](<https://devfeed.tech/topics/postgresql.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-kernel](<https://devfeed.tech/tags/linux-kernel.md>), [newsletter](<https://devfeed.tech/tags/newsletter.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [redirection](<https://devfeed.tech/tags/redirection.md>)

### AI overview

A Linux digest covering a free Tmux fundamentals course, named pipes and shell redirection, Linux kernel training, Bash pipeline exit-status handling, and Listmonk, a self-hosted newsletter manager built with Go and PostgreSQL.

### Source excerpt

Enjoy the new course

## LHB Linux Digest #26.10: systemd Playbook, Redirection, "forgit" and More

DevFeed: [LHB Linux Digest #26.10: systemd Playbook, Redirection, "forgit" and More](<https://devfeed.tech/articles/lhb-linux-digest-26-10-systemd-playbook-redirection-forgit-and-more-48069.md>)

Original publisher: [Read original article](<https://linuxhandbook.com/newsletter/26-10/>)

Author: Abhishek Prakash

Published: 2026-08-21T12:41:17Z

Content type: article

Language: en

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

Topics: [systemd](<https://devfeed.tech/topics/systemd.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Redirection](<https://devfeed.tech/topics/redirection.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [Code review](<https://devfeed.tech/topics/code-review.md>), [Model Context Protocol](<https://devfeed.tech/topics/model-context-protocol.md>), [DevOps](<https://devfeed.tech/topics/devops.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [Text-based user interface](<https://devfeed.tech/topics/tui.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [code-review](<https://devfeed.tech/tags/code-review.md>), [devops](<https://devfeed.tech/tags/devops.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [newsletter](<https://devfeed.tech/tags/newsletter.md>), [redirection](<https://devfeed.tech/tags/redirection.md>), [systemd](<https://devfeed.tech/tags/systemd.md>)

### AI overview

A Linux Handbook digest covering systemd courses and automation, essential Linux redirection concepts, an MCP and AI-agent event in Japan, Bash path autocompletion, and tuicr, an open-source Rust terminal utility for code review.

### Source excerpt

Time to explore systemd

## Avoid automatic IP-based language redirects

DevFeed: [Avoid automatic IP-based language redirects](<https://devfeed.tech/articles/avoid-automatic-ip-based-language-redirects-89109.md>)

Original publisher: [Read original article](<https://specification.website/spec/i18n/avoid-auto-geo-redirects/>)

Author: Joost de Valk

Published: 2026-05-29T18:54:03Z

Content type: tutorial

Language: en

Sources: [The Website Specification](<https://devfeed.tech/sources/the-website-specification.md>)

Topics: [Redirection](<https://devfeed.tech/topics/redirection.md>), [Search engine optimization (SEO)](<https://devfeed.tech/topics/seo.md>)

Tags: [avoid](<https://devfeed.tech/tags/avoid.md>), [i18n](<https://devfeed.tech/tags/i18n.md>)

### AI overview

Automatic IP or Accept-Language redirects can trap visitors in the wrong locale, prevent search engines from reaching translated pages, and break shared links. The article recommends letting users choose, keeping localized URLs stable, and using a non-blocking suggestion when appropriate. It also provides checks for verifying locale behavior.

### Source excerpt

Automatically redirecting visitors to a locale based on IP geolocation or Accept-Language is an anti-pattern. It traps users in the wrong language, breaks search crawlers, and breaks shared links. Let users choose.

## Redirects (301/302/308)

DevFeed: [Redirects (301/302/308)](<https://devfeed.tech/articles/redirects-301-302-308-89193.md>)

Original publisher: [Read original article](<https://specification.website/spec/seo/redirects/>)

Author: Joost de Valk

Published: 2026-05-29T09:13:20Z

Content type: tutorial

Language: en

Sources: [The Website Specification](<https://devfeed.tech/sources/the-website-specification.md>)

Topics: [Redirection](<https://devfeed.tech/topics/redirection.md>), [Website](<https://devfeed.tech/topics/website.md>), [Google Search](<https://devfeed.tech/topics/google-search.md>)

Tags: [curl](<https://devfeed.tech/tags/curl.md>), [google-search](<https://devfeed.tech/tags/google-search.md>), [http](<https://devfeed.tech/tags/http.md>), [latency](<https://devfeed.tech/tags/latency.md>), [required](<https://devfeed.tech/tags/required.md>), [seo](<https://devfeed.tech/tags/seo.md>), [url](<https://devfeed.tech/tags/url.md>)

### AI overview

HTTP redirects send clients to another URL. Use 301 or 308 for permanent moves and 302 or 307 for temporary ones, preserve methods when needed, and keep redirect chains short.

### Source excerpt

HTTP redirects send a client from one URL to another. Use 301 or 308 for permanent moves, 302 or 307 for temporary ones, and never chain more than necessary.

## Using Coolify for subdomain direct redirect without a app resource

DevFeed: [Using Coolify for subdomain direct redirect without a app resource](<https://devfeed.tech/articles/using-coolify-for-subdomain-direct-redirect-without-a-app-resource-38832.md>)

Original publisher: [Read original article](<https://lengrand.fr/using-coolify-for-subdomain-direct-redirect-without-a-app-resource/>)

Author: Julien

Published: 2025-09-14T19:07:33Z

Content type: tutorial

Language: en

Sources: [Thoughts, stories and ideas.](<https://devfeed.tech/sources/thoughts-stories-and-ideas.md>)

Topics: [proxy](<https://devfeed.tech/topics/proxy.md>), [Redirection](<https://devfeed.tech/topics/redirection.md>), [YAML](<https://devfeed.tech/topics/yaml.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [TLS (Transport Layer Security)](<https://devfeed.tech/topics/tls.md>), [interface](<https://devfeed.tech/topics/interface.md>)

Tags: [coolify](<https://devfeed.tech/tags/coolify.md>), [devops](<https://devfeed.tech/tags/devops.md>), [dns](<https://devfeed.tech/tags/dns.md>), [habits](<https://devfeed.tech/tags/habits.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [ssl](<https://devfeed.tech/tags/ssl.md>), [tls](<https://devfeed.tech/tags/tls.md>), [traefik](<https://devfeed.tech/tags/traefik.md>), [yaml](<https://devfeed.tech/tags/yaml.md>)

### AI overview

A tutorial showing how to use Coolify's dynamic proxy configuration to redirect a subdomain to an external URL without creating a full application resource. It uses a YAML configuration with Traefik to define the redirect, router, TLS handling, and required dummy service.

### Source excerpt

Coolify's dynamic proxy configuration lets you redirect subdomains to external URLs without creating full resources. Using a simple YAML file with Traefik configuration, you can set up SSL-enabled redirects directly through Coolify's interface.

## 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: [Redirection](<https://devfeed.tech/topics/redirection.md>), [IO](<https://devfeed.tech/topics/io.md>), [Process](<https://devfeed.tech/topics/process.md>)

Tags: [c](<https://devfeed.tech/tags/c.md>), [command](<https://devfeed.tech/tags/command.md>), [examples](<https://devfeed.tech/tags/examples.md>), [file](<https://devfeed.tech/tags/file.md>), [flow](<https://devfeed.tech/tags/flow.md>), [fork](<https://devfeed.tech/tags/fork.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>)

### AI overview

In C, `dup2(oldfd, 1)` makes standard output refer to the file or device open on `oldfd`, so existing code that writes to stdout can be redirected without modification. The examples open a file for output, then use `dup2()` to redirect either `printf()` output or an `uname` command launched with `execvp()`. Since `execvp()` replaces the current process, a separate example uses `fork()` so only the child's redirection affects stdout; the parent waits and continues writing to the terminal. To restore stdout, the article duplicates the original descriptor with `dup()` before redirecting, then copies it back with `dup2()`. It notes that `dup2()` returns the new descriptor on success and `-1` on failure; the examples omit error checking.

### 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

## Concealing payloads in URL credentials

DevFeed: [Concealing payloads in URL credentials](<https://devfeed.tech/articles/concealing-payloads-in-url-credentials-7671.md>)

Original publisher: [Read original article](<https://portswigger.net/research/concealing-payloads-in-url-credentials>)

Author: Gareth Heyes

Published: 2024-10-23T12:59:05Z

Content type: article

Language: en

Sources: [PortSwigger Research](<https://devfeed.tech/sources/portswigger-research.md>)

Topics: [payload](<https://devfeed.tech/topics/payload.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Firefox](<https://devfeed.tech/topics/firefox.md>), [Google Chrome](<https://devfeed.tech/topics/google-chrome.md>), [Document Object Model (DOM)](<https://devfeed.tech/topics/dom.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [Fuzzing/Fuzz testing](<https://devfeed.tech/topics/fuzzing.md>), [Redirection](<https://devfeed.tech/topics/redirection.md>)

Tags: [browsers](<https://devfeed.tech/tags/browsers.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [fuzzing](<https://devfeed.tech/tags/fuzzing.md>), [payload](<https://devfeed.tech/tags/payload.md>), [redirection](<https://devfeed.tech/tags/redirection.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

This article explains how payloads can be concealed in the credentials portion of URLs while remaining hidden from the address bars of Chrome and Firefox. It examines differences between document.URL and location, Firefox's handling of single quotes, and applications to DOM XSS, anchor credentials, redirection, and DOM clobbering. Safari discards URL credentials, so the described examples work only in Chrome and Firefox.

### Source excerpt

Last year Johan Carlsson discovered you could conceal payloads inside the credentials part of the URL . This was fascinating to me especially because the payload is not actually visible in the URL in

## Analyzing a Malicious Advanced IP Scanner Google Ad Redirection | Huntress

DevFeed: [Analyzing a Malicious Advanced IP Scanner Google Ad Redirection | Huntress](<https://devfeed.tech/articles/analyzing-a-malicious-advanced-ip-scanner-google-ad-redirection-huntress-54199.md>)

Original publisher: [Read original article](<https://www.huntress.com/blog/analyzing-a-malicious-advanced-ip-scanner-google-ad-redirection>)

Author: Izzy Spering

Published: 2024-04-01T00:00:00Z

Content type: article

Language: en

Sources: [Huntress Blog](<https://devfeed.tech/sources/huntress-blog.md>)

Topics: [Malware](<https://devfeed.tech/topics/malware.md>), [Redirection](<https://devfeed.tech/topics/redirection.md>), [C2](<https://devfeed.tech/topics/c2.md>)

Tags: [analyze](<https://devfeed.tech/tags/analyze.md>), [c2](<https://devfeed.tech/tags/c2.md>), [code](<https://devfeed.tech/tags/code.md>), [command-and-control](<https://devfeed.tech/tags/command-and-control.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [google](<https://devfeed.tech/tags/google.md>), [redirection](<https://devfeed.tech/tags/redirection.md>), [scanner](<https://devfeed.tech/tags/scanner.md>)

### AI overview

The article analyzes malicious versions of Advanced IP Scanner distributed through Google malvertising. It describes redirects to the legitimate site and the analyst's goal of examining the downloaded file for command-and-control communication, persistence, and credential theft.

### Source excerpt

Threat actors have been using malicious versions of Advanced IP Scanner to compromise their targets via malvertising campaigns. Let's analyze one.

## What does $0=$2 in awk do? learn awk

DevFeed: [What does $0=$2 in awk do? learn awk](<https://devfeed.tech/articles/what-does-0-2-in-awk-do-learn-awk-25222.md>)

Original publisher: [Read original article](<https://kau.sh/blog/awk-1-oneliner-dollar-explanation/>)

Author: Kaushik Gopal

Published: 2022-09-24T07:22:16Z

Content type: article

Language: en

Sources: [Kaushik Gopal's Site](<https://devfeed.tech/sources/kaushik-gopal-s-site.md>)

Topics: [Redirection](<https://devfeed.tech/topics/redirection.md>)

Tags: [awk](<https://devfeed.tech/tags/awk.md>), [basics](<https://devfeed.tech/tags/basics.md>), [commands](<https://devfeed.tech/tags/commands.md>), [syntax](<https://devfeed.tech/tags/syntax.md>)

### AI overview

With `-F'"'`, awk splits each input line at double quotes, so `$2` holds the quoted version number in the shown Gradle example. In awk, `$0` is the whole line, and a bare pattern with no action uses the default action of printing the line when the pattern is true. The expression `$0=$2` assigns that field back to the current line; the assigned value determines whether the condition is true, and a nonempty version string is printed. This extracts every matching version line; the excerpt then uses `head -n 1` to keep only the first. The supplied text cuts off during its explanation of reassignment, so it does not show the promised pure-awk method for selecting just the first match.

### Source excerpt

The trick to understanding awk in all its terse glory is to understand its defaults. I made a screencast explaining how awk works by deconstructing a script I'd previously written for this blog .1 In this post we'll look at deconstructing awk's defaults so we can understand all those one-liner scripts stack overflow solutions throw your way. The example # I have a file that contains the version info for my apps and I'd like to extract the first version number in there: // appVersion.gradle def baseCode = 30001 def appVersion = [ product-1 : [ name: "21.091.420", code: baseCode ], product-2: [ name: "20.090.300", code: baseCode ], //... // I want to pluck 21.091.420 from this file The first solution (meh) # Some quick googling revealed this stack overflow solution which gets us close: gawk -F'"' '$0=$2' appVersion.gradle # -- output -- # 21.091.420 # 20.090.300 I only require the first number though so a quick way2 to do this would just be: gawk -F'"' '$0=$2' appVersion.gradle | head -n 1 # -- output -- # 21.091.420 The problem with solution 1 # awk is powerful and to reach out to head for that last teeny tiny mile seemed sacrilegious. I want this solution to be pure awk. What the heck does that incantation gawk '$0=$2' do? 3 The basics # Let's try to take that script apart piece by piece: default input field delimiter ## gawk -F'"' '$0=$2' appVersion.gradle # ↑ # input field delimiter If you don't specify the input field delimiter, awk sensibly defaults to the space character. Let's try some examples: echo "Hello kind world" | gawk '{print $2}' echo "Hello kind world" | gawk -F" " '{print $2}' # -- output -- # kind echo "Hello kind world" | gawk -F"," '{print $2}' # -- no output -- Notice how the line is split into numbered "segments" where $1, $2, $3 hold the first three words in our example respectively. $0 represent the entire line. default syntax ## If you watched my screencast you'll remember that awk's general syntax is as follows: awk ' BEGIN { a1; a2; a3; }

## Git.io deprecation

DevFeed: [Git.io deprecation](<https://devfeed.tech/articles/git-io-deprecation-74080.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2022-04-25-git-io-deprecation>)

Author: Sidi Merzouk

Published: 2022-04-25T22:32:21Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [deprecated](<https://devfeed.tech/topics/deprecated.md>), [Redirection](<https://devfeed.tech/topics/redirection.md>), [Cybersecurity](<https://devfeed.tech/topics/cybersecurity.md>)

Tags: [2022](<https://devfeed.tech/tags/2022.md>), [academic](<https://devfeed.tech/tags/academic.md>), [accelerate](<https://devfeed.tech/tags/accelerate.md>), [all](<https://devfeed.tech/tags/all.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [archive](<https://devfeed.tech/tags/archive.md>), [community](<https://devfeed.tech/tags/community.md>), [created](<https://devfeed.tech/tags/created.md>), [deprecate](<https://devfeed.tech/tags/deprecate.md>), [deprecation](<https://devfeed.tech/tags/deprecation.md>), [developers](<https://devfeed.tech/tags/developers.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [domains](<https://devfeed.tech/tags/domains.md>), [effective](<https://devfeed.tech/tags/effective.md>), [existing](<https://devfeed.tech/tags/existing.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [redirection](<https://devfeed.tech/tags/redirection.md>), [service](<https://devfeed.tech/tags/service.md>), [update](<https://devfeed.tech/tags/update.md>), [url](<https://devfeed.tech/tags/url.md>)

### AI overview

GitHub accelerated git.io's deprecation over security concerns: all existing redirects were to stop working on April 29, 2022. After feedback from developers and academic researchers, GitHub said it would preserve current links in a separate read-only archive for longer-term redirects, while potentially removing links pointing to spam, malicious content, or 404s. GitHub Support cannot edit archived redirects. Users were urged to update existing git.io links and use another shortening service.

### Source excerpt

2022-04-27 Update: While the git.io url redirection service is read-only and use of the service is limited, we have received feedback from developers and academic researchers who have published git.io...

## Message Sequence Charts

DevFeed: [Message Sequence Charts](<https://devfeed.tech/articles/message-sequence-charts-36886.md>)

Original publisher: [Read original article](<https://shostack.org/blog/message-sequence-charts/>)

Author: Adam

Published: 2019-11-06T00:00:00Z

Content type: article

Language: en

Sources: [Shostack & Friends Blog](<https://devfeed.tech/sources/shostack-friends-blog.md>)

Topics: [browser](<https://devfeed.tech/topics/browser.md>), [Server](<https://devfeed.tech/topics/server.md>), [Redirection](<https://devfeed.tech/topics/redirection.md>)

Tags: [comparisons](<https://devfeed.tech/tags/comparisons.md>), [formalized](<https://devfeed.tech/tags/formalized.md>), [owasp](<https://devfeed.tech/tags/owasp.md>), [redirection](<https://devfeed.tech/tags/redirection.md>), [sequence](<https://devfeed.tech/tags/sequence.md>), [state](<https://devfeed.tech/tags/state.md>), [use-case](<https://devfeed.tech/tags/use-case.md>)

### AI overview

An article explains how formalized Message Sequence Charts relate to swim lane diagrams and UML diagrams. It highlights their usefulness for examining assumptions in system flows, including browser redirections and state-machine transitions, with a reference to OWASP threat modeling.

### Source excerpt

Swim lane diagrams have been formalized in message sequence charts - what that means.