{
  "id": 10162042,
  "title": "Suspend, Background, Disown",
  "url": "https://urgent.news/2026/09/27/suspend-background-disown",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-09-27T07:10:34.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/jantolentino/suspend-background-disown-3hj1"
  },
  "original_language": "en",
  "account": "Recently, while working on a hobby project involving media files, the writer encountered large files that needed preprocessing. To manage these files, the writer created simple scripts to handle them individually. As the data volume grew, the scripts began to take a long time to run on the writer's mini-server, leading to the need for background processes. Previously, the writer relied on nohup or tmux for this purpose. However, today, the writer remembered a trick they had recently learned.\n\nTo suspend a process that's already running, the writer presses CTRL + Z. After suspending the process, the writer can resume it in the background by typing bg and hitting enter. The script or command will then run in the background, confirmed by a message ending with an ampersand (&). The crucial part of this trick is disowning the process. To do this, the writer enters disown -h %1, where %1 represents the job number. By disowning the process, it becomes completely independent of the current shell session.\n\nWhile nohup still serves its purpose, the writer finds this method advantageous, particularly when working on a server without tmux or permission to install it. The writer concludes that this method is particularly useful for simple tasks, especially in such server environments.",
  "summary": "I'm currently working on a hobby project, using crawlers to download media files for a dataset. Some of these are large files that also need preprocessing. Instead of building a whole system to manage this, I'm just creating simple scripts to handle them one at a time. Given the volume of data I'm working with, I realized the scripts were going to take a long time to run on my mini-server. So, I…",
  "key_points": [
    "Press CTRL + Z to suspend a running process.",
    "Resume suspended process in background with 'bg'.",
    "Disown process using 'disown -h %1' for independence."
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}