Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Recover from a 'disappearing' pico/nano' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Recover from a 'disappearing' pico/nano
Authored by: bcirvin on Jan 12, '06 02:47:06PM

Have seen this quite a bit. For me, it was a good reason to switch primarily to vi, which is a much safer editor for most tasks (that is, it handles line breaks, etc. better than nano/pico).

There's lots of documentation available all over the internet regarding vi - give it a shot if nano is bugging you.

That said, vi doesn't have the easy 'ctrl-k' (cut line) option that nano does, which I use often for removing bad host keys in ~/.ssh/known-hosts



[ Reply to This | # ]
10.4: Recover from a 'disappearing' pico/nano
Authored by: multiplex on Jan 12, '06 03:25:14PM

What's wrong with 'dd' ?



[ Reply to This | # ]
10.4: Recover from a 'disappearing' pico/nano
Authored by: lar3ry on Jan 13, '06 12:26:50PM

... or cat...?



[ Reply to This | # ]
10.4: Switch to vi instead
Authored by: pepi on Jan 13, '06 04:26:39PM

That exact behaviour of pico (-> nano) made me finally switch to vi. And good it was I did. vi takes a little practise to get used to, but in the end it's much more powerful than pico.
You just have to be willing to learn something new! Btw. vi is part of POSIX, whereas pico or nano are not.
Pepi



[ Reply to This | # ]
10.4: Recover from a 'disappearing' pico/nano
Authored by: MacCoaster on Jan 16, '06 12:38:57AM
What do you mean by line breaks? Try using the -w argument with pico and see if it handles line breaks to your liking.

[ Reply to This | # ]