Live data from Hacker News

Linux Terminal Tools [pdf]

ketancmaheshwari.github.io

51–57 of 57 posts

Re: Linux Terminal Tools [pdf]

#51
post #36

The secret that I never see brought up on any of the linux command line tools is "esc + ." - It's by far one of the most valuable tricks I've learned, it will insert the last thing from the last command ls /foo/bar/this_is_the_file.txt cat "esc + ." which expands to cat /foo/bar/this_is_the_file.txt

Alt + . does the same thing as well, with the added advantage that you can keep pressing Alt and then hit "." several times to go through all the "last arguments" in your history one by one.

Doesn't seem to work on mac :/

Re: Linux Terminal Tools [pdf]

#52
post #51

Earlier quoted context omitted.

Alt + . does the same thing as well, with the added advantage that you can keep pressing Alt and then hit "." several times to go through all the "last arguments" in your history one by one.

Doesn't seem to work on mac :/

I haven't used a mac in years, but I know for sure that I had found a workaround. I would go insane without "Alt+." on the shell, I use it very, very frequently.

Try this: https://lorenzo.mile.si/macos-iterm2-use-linux-keyboard-shor...

Re: Linux Terminal Tools [pdf]

#53
post #51

Earlier quoted context omitted.

Doesn't seem to work on mac :/

I haven't used a mac in years, but I know for sure that I had found a workaround. I would go insane without "Alt+." on the shell, I use it very, very frequently. Try this: https://lorenzo.mile.si/macos-iterm2-use-linux-keyboard-shor...

Thanks, i'm using iTerm2, which seems to have an experimental feature for repeat previous character escape sequence enabled by default, but doesn't really work that well, I suspect it's the touchbar escape key that doesn't play too nicely to the hold

edit: I'm dumb, that was for iTerm, I got it working!

Re: Linux Terminal Tools [pdf]

#54
post #47

Earlier quoted context omitted.

ok this is going to sound stupid, but I don't care. learning time, for me. do you type the literal characters "esc + ." or do you press CTRL+[ then period, or do you push the escape key, then period, or do you push escape and period at the same time? I'm not at a terminal to try any of this and find out for myself.

I press and hold escape first then period

ESC isn't a control code like CTRL or SHIFT or ALT - so holding it while you press another key is weird, to me.

But pressing and releasing ESC and then pressing and releasing period works excellently. Thank you.

Re: Linux Terminal Tools [pdf]

#55
post #47

Earlier quoted context omitted.

I press and hold escape first then period

ESC isn't a control code like CTRL or SHIFT or ALT - so holding it while you press another key is weird, to me. But pressing and releasing ESC and then pressing and releasing period works excellently. Thank you.

Ahh nice, yeah, that works, I always just assumed I needed to hit ESC first, but didn't know they didn't need to be held at the same time

Re: Linux Terminal Tools [pdf]

#56

Earlier quoted context omitted.

That would be incorrect: it's too general. These tools don't apply to Windows; yet some do apply to MacOS, due to its BSD/UNIX (not Linux) roots.

there are many ways in which these do apply on Windows, these days. please work on separating the semantics of someone's statement from the pragmatics. don't bother with the "how they phrased it" bit, and instead try to focus on the "what are they trying to say" part more. you may be, like I did all too often in my youth, over-emphasizing English correctness, missing the message being communicated entirely. maybe you…

Honestly? When you tell me what to think about and improve, you come across as condescending. Maybe you didn't mean to? Either way, you should try to work on that.

Re: Linux Terminal Tools [pdf]

#57

Earlier quoted context omitted.

there are many ways in which these do apply on Windows, these days. please work on separating the semantics of someone's statement from the pragmatics. don't bother with the "how they phrased it" bit, and instead try to focus on the "what are they trying to say" part more. you may be, like I did all too often in my youth, over-emphasizing English correctness, missing the message being communicated entirely. maybe you…

Honestly? When you tell me what to think about and improve, you come across as condescending. Maybe you didn't mean to? Either way, you should try to work on that.

k.
Post reply on HN