EN
Bash - shell sh script with do not close terminal which works like windows bat pause
7
points
Bash - shell sh script with pause
We can use linux read command to pause bash script.
read
Working example:
#!/bin/sh
# print to console
echo 'Hello World'
echo 'Will wait until user press Enter'
# will wait until user press Enter
read
Filename:
pause_bash_sh_script.sh
NOTE about linux read command
read - Read a line from the standard input and split it into fields.