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.
Linux Terminal Tools [pdf]
51–57 of 57 posts
Re: Linux Terminal Tools [pdf]
#52Earlier 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 :/
Try this: https://lorenzo.mile.si/macos-iterm2-use-linux-keyboard-shor...
Re: Linux Terminal Tools [pdf]
#53Earlier 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...
edit: I'm dumb, that was for iTerm, I got it working!
Re: Linux Terminal Tools [pdf]
#54Earlier 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
But pressing and releasing ESC and then pressing and releasing period works excellently. Thank you.
Re: Linux Terminal Tools [pdf]
#55Earlier 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.
Re: Linux Terminal Tools [pdf]
#56Earlier 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…
Re: Linux Terminal Tools [pdf]
#57Earlier 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.