Liste des Groupes | Revenir à col misc |
In comp.os.linux.misc, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:Just use nano ....On 06 Apr 2025 08:40:54 GMT, Stéphane CARPENTIER wrote:Very presumptious to assume emacs style line editing, isn't it?A lot of time I run cat to find some information in a file. And when theYou do have command-line editing enabled, right? You just press the HOME
file is bigger than expected, I'll just grep its output. Of course,
it's better to directly grep the file, but it's easier and faster to add
a grep at the end of the previous command than to either write directly
the right command or to go at the beginning of the line to remove the
cat and put grep instead. Mostly when the name of the file is long in a
far remote directory.
key (or CTRL/A) to go to the start of the line.
To go back in history, I type <ESC>k and then I'm at the start of the
line of the most recent command. On the current line I'd type <ESC>^
but <ESC><HOME> would work.
But really, I don't think it is proper to care about inefficent use of
commands at the command line. Go ahead and judge in a script or
documentation (or an example posted to Usenet), but what people do in
the privacy of their own shell is their business.
Les messages affichés proviennent d'usenet.