{"id":28190,"date":"2018-09-18T03:27:32","date_gmt":"2018-09-18T08:27:32","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=28190"},"modified":"2023-04-05T02:15:05","modified_gmt":"2023-04-05T07:15:05","slug":"how-to-run-commands-simultaneously-in-linux","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-run-commands-simultaneously-in-linux\/","title":{"rendered":"How to Run Commands Simultaneously in Linux"},"content":{"rendered":"
<\/div>

\"How<\/p>\n

Let’s say you’re editing a configuration file in the Linux “vi” editor, and suddenly need to look up some data in another file? On a regular GUI system, this wouldn’t be a problem. You just open the second file, check when you need, and then switch back to the first program. On a command line, it isn’t that simple. Executing a process via the CLI blocks further input on any other program. Take this sleep command, for example,:<\/p>\n

\"Mutliple<\/p>\n

While it’s running for 30 minutes, we can’t do anything else. However, we can still manually manage processes and run command simultaneously in Linux using the “bg” and “fg” commands. Here’s how it works.<\/p>\n

\n

Table of Contents<\/p>\n