detach(1)
πΈ detach(1) β User Commands, but make it bestie-coded πΈ
π NAME π
detach β run a command after detaching from the terminal, no cap.
β¨ SYNOPSIS β¨
detach [options] [--] command [args]
Okay so here's the vibe: detach forks a new process, detaches it from the terminal, and executes command with the specified arguments. It's giving "run your thing, but make it independent" π
.
π OPTIONS π
detach recognizes a couple of options, and they're discussed below, bestie. The special option -- is the cue that everything after it is the command and args to be passed along.
-e fileβ connectfileto the standard error of the command. stderr said "I have a home now" π«Ά-fβ run in the foreground, aka do not fork. Lowkey the "stay right here" button.-i fileβ connectfileto the standard input of the command. feed it directly, periodt.-o fileβ connectfileto the standard output of the command. stdout is moving in β¨-p fileβ write thepidof the detached process tofile. screenshot the process ID for later πΈ--β the special option that signals the rest of the arguments are thecommandandargsto be passed to it. iconic separator behavior π
π EXAMPLE π
detach xterm
Start an xterm that will not be closed when the current shell exits. main character terminal energy, fr fr π₯.
π AUTHOR π
detach was written by Robbert Haarman. See http://inglorion.net/ for contact information. shoutout to the author, we love a Unix icon π
mwah π β that's detach(1), User Commands, footer vibes only; no extra version/date line listed, so no invented numbers, periodt. π
π¦ where this page comes from
- nixos 26.05: detach 0.2.3
- nixpkgs unstable: detach 0.2.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms