detach(1)

πŸ“¦ version 0.2.3, in nixos 26.05, nixpkgs unstable

🌸 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 β€” connect file to 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 β€” connect file to the standard input of the command. feed it directly, periodt.
  • -o file β€” connect file to the standard output of the command. stdout is moving in ✨
  • -p file β€” write the pid of the detached process to file. screenshot the process ID for later πŸ“Έ
  • -- β€” the special option that signals the rest of the arguments are the command and args to 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