Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Yes. Requires some otherwise useless thinking about which part of the command is unique, but this has to be the fastest way.


sort by: page size:

So going from a single command to a different single command? How much simpler could it get?

Yes, I do this all the time with all sorts of commands.

On second thought, doing this automatically might be a waste of time for most one-shot commands. Perhaps a separate COEVAL command would work better for this.

Yes! I was doing that for a while with a command-line tool. I couldn't make up my mind which way was faster. They were both required some sort of motor skill (e.g. switch to terminal, paste, enter) to perform the flows quickly.

True. I've just gotten into the habit of doing it manually in case I use a command that doesn't do it.

sure, but it'd be less confusing to just make it a new command. you could add features like invoking lsblk with a sensible set of flags.

Cool. I was unfamiliar with this command. Looks useful.

How did you manage to figure this out? Do you generally try that command out?

Good point, I did think of having a command that essentially output everything in one hit.

I always just find it faster to put a command argument together tbh

Yes. Not only that but it has something even cooler: ESC + Q

Let's say you are about to finish a really long command and realize you should have done one other command first.

ESC + Q clears the current line, lets you enter a command, and then inserts the cleared line again on the next prompt. You have to try it to realize how cool it is.


Thanks for that, spent a lot of time googling and never found that, maybe I didnt search properly, the solutions I remember finding always involved more than one command and were confusing.

Uh no! Don't rely on command prompt, there are hardcoded ones out there, and clonining scripts have duplicated them.

uname -n

Takes seconds.


Or you could just press Command + N.

I just modify it directly in the console (I have to search to look up the command every time).

I had no idea of that command. Thanks.

Aha! Didn't know there was dedicated command for it.

It's not 3 commands so I'm sure you can get it down to 1 line.

it looks a lot more annoying to type. Would be an easy shell alias or script though, if one prefers that command style.

Interesting, I didn’t know about that command. Thanks for sharing.
next

Legal | privacy