someone help me understand that Ctrl-Z is to send the nc connection in the background without killing it (this is where i was getting confused). then “fg” command brings it forward …
Hope this helps to users like me…
Type your comment> @deeptestpilot said:
Hi guys, need help… script below is not working for me.
SHELL=/bin/bash script -q /dev/null
Ctrl-Z
stty raw -echo
fg
reset
xtermthis is what happening
www-data@oopsie:/$ SHELL=/bin/bash script -q /dev/null
Ctrl-Z
stty raw -echo
fg
reset
xtermSHELL=/bin/bash script -q /dev/null
www-data@oopsie:/$ Ctrl-Z
Ctrl-Z: command not found
www-data@oopsie:/$ stty raw -echo
www-data@oopsie:/$ bash: fg: current: no such job
www-data@oopsie:/$ reset: unknown terminal type unknown
Terminal type?help me understand what is happening here?