Hi guys.
I had the dreaded ctrl Z typo when editing a Shorewall rules file with Nano. I am aware that this accidental keystroke combo is not that uncommon and pushes the process into the background, but I find that all the usual command solutions of fg or % or jobs etc. just advise there is no process. However, if I try to edit the rules file again, I see the usual warning that the file is being edited by root and does show the PID of Nano. Question: is there a simple way to get back to the running Nano process, or if I try to just kill the process is that risky? FYI - I had accidentally pasted an IP address into the file when I when trying to copy it out of the console (not my best work), so there are no changes or edits that I need to keep, I just need to exit Nano without corrupting the file. Any advice or guidance would be very much appreciated. Thanks, Garry.
I had the dreaded ctrl Z typo when editing a Shorewall rules file with Nano. I am aware that this accidental keystroke combo is not that uncommon and pushes the process into the background, but I find that all the usual command solutions of fg or % or jobs etc. just advise there is no process. However, if I try to edit the rules file again, I see the usual warning that the file is being edited by root and does show the PID of Nano. Question: is there a simple way to get back to the running Nano process, or if I try to just kill the process is that risky? FYI - I had accidentally pasted an IP address into the file when I when trying to copy it out of the console (not my best work), so there are no changes or edits that I need to keep, I just need to exit Nano without corrupting the file. Any advice or guidance would be very much appreciated. Thanks, Garry.