Situation: there is a script or command is running, but we need to close current box/windows to do other things. Below ways are available.
1. Ctrl+Z: Stop the current process
e.g.
+ /usr/lib/oracle/11.2/client64/bin/sqlplus -L -S sys AS SYSDBA @*.sql
^Z
[1]+ Stopped sh -x ./dropIDCSStaleSchema -pdh [dbhostname] -pdp 1521 -pds [dbservice] -tdh [tdbHostname] -tdp 1521 -tds [tdbService]
2. bg: Change the stopped current process to background running
[oracle@***]$ bg
[1]+ sh -x ./dropIDCSStaleSchema -pdh [dbhostname] -pdp 1521 -pds [dbservice] -tdh [tdbHostname] -tdp 1521 [tdbService] &
3. Jobs: Scan the bk process
[oracle@***]$ jobs
[1]+ Running sh -x ./dropIDCSStaleSchema -pdh [dbhostname] -pdp 1521 -pds [dbservice] -tdh [tdbHostname] -tdp 1521 -tds [tdbService]