How to protect the exit from user space in terminal mode
How to protect the exit from user space in terminal mode
To reedit up to date.
Last edited by postfs1 on Mon 28 Mar 2016, 00:00, edited 9 times in total.
better avoid, could buggy sed/cat combination empty the target file (sometimes )cat /etc/inittab | sed -e '2,2d' > /etc/inittab
would better use
sed -i "STRING" /path/to_file
or
cat /file |sed "WHATEVER" >/tmp/file
mv -i /tmp/file /file
*
BTW what exit do you mean ? Exit to prompt from Xorg or exit the shell in console mode ?