If you want to run a bash command in the background you can append a & (ampersand) sign at the end of the command.
Syntax:
<command> &
Example:
% sleep 50 &
[1] 38841
%
[1] + done sleep 5
As you can see, I ran the sleep command for 50 seconds with a & sign, this causes the command to run in the background of the Terminal and the prompt is returned where you can run other commands.
As soon as the background task is completed, you get the details that the command is completed.
[1] + done sleep 5
[1] 38841 indicates that the background job has been started and its job number is [1] and a process ID (PID) 38841.

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Bash,
- Bash Hello World! Script Tutorial
- How to run bash command in background
- How to create new user account in Windows bash
- How to Compare Strings in Bash
- Bash: Allow Command to Fail without exiting Script
- Fix bash: script.sh: Permission denied Error
- Bash getopts Command Example
- How to fix bash ping command not found error
- How to add NewLine Character in Bash Script String
- How to Echo Bash Command to a File
- Bash Command to Find String in a File
- How to open new Terminal using Bash Command
- Bash How to Save Output of a Command to a Variable
- Download a SSL Certificate from a URL in Terminal
- Bash Command to Check IP Address
- Know Bash shell version command
- Bash Command To Check If File Exists
- How to run a Command in Bash Script
- How to Compare two Files in Bash Shell
- How to check if a variable is set in Bash Script or Not
- Convert String from uppercase to lowercase in Bash
- How to see Created Accessed Modified and Changed dates of a file using bash terminal command
- Bash Command To Get Current Time
- Bash command to List Files
- Fix: bash: syntax error near unexpected token
More Posts:
- How to Rename a Git Local Branch Using the --move Option - Git
- java.lang.ClassNotFoundException android.support.v7.widget.Toolbar [Fix] - Android
- How to open CMD for current file/folder location in Notepad++ - NotepadPlusPlus
- How to install iTerm2 Mac Terminal Alternative - MacOS
- 10 Must Know CSS Border Styles with Examples - CSS
- The Zsh Shell - Mac Tutorial - MacOS
- Android : Remove ListView Separator/divider programmatically or using xml property - Android
- 10 Beginners Commands for macOS Terminal Usage - MacOS