sleep command
- It is a delay for a specified amount of time
- The time is specified in seconds
Example
# The following command will make the prompt sleep for 5 seconds
sleep 5
Coprocess
- The shell command:
coproc
- A Coprocess is executed asynchronously in a subshell
- In simple words, this command is used to run a process without actually losing control of the prompt
- As we don’t lose prompt access, we can execute other commands
Usage
coproc sleep 20
- When the above mentioned process is completed, the prompt will output a message saying
Done
- We can run the
ps command to view the running status of the aforementioned command
<aside>
💡 Help me!
- Note that man only works for commands related to linux OS
- For getting information about shell commands, use help
- Get the type of command using
type <command name>
</aside>
kill