4 ms·
If you're particularly worried about this sort of thing, you can wrap your prompt in : and ; i.e. : user@host $ ; Source is http://www.faqs.org/docs/Linux-HOWT
by whimsy 17y ago
If you're particularly worried about this sort of thing, you can wrap your prompt in : and ;
i.e.
: user@host $ ;
Source is http://www.faqs.org/docs/Linux-HOWTO/Bash-Prompt-HOWTO.html#AEN784 http://www.faqs.org/docs/Linux-HOWTO/Bash-Prompt-HOWTO.html#...
- there 17y agoor use something like 'set noclobber' (at least in tcsh) jcs@smug:~% echo asdf > file jcs@smug:~% echo fdsa > file file: File exists. jcs@smug:~% echo fdsa >! file jcs@smug:~% this has saved me quite a few times when accidently typing > instead of >> or similar.