abbadon420@sh.itjust.works to Ask Lemmy@lemmy.world · 2 days agoLinux question: I like to browse using ls. Than when I find what I'm looking for, I would like to directly move there with cd without having to retype the path. Is there an elegant solution for that?message-squaremessage-square50fedilinkarrow-up1119arrow-down11file-text
arrow-up1118arrow-down1message-squareLinux question: I like to browse using ls. Than when I find what I'm looking for, I would like to directly move there with cd without having to retype the path. Is there an elegant solution for that?abbadon420@sh.itjust.works to Ask Lemmy@lemmy.world · 2 days agomessage-square50fedilinkfile-text
Maybe there is a tool that does that? Maybe I’m doing this all wrong and there is a different way I should browse?
minus-squarevalar@lemmy.calinkfedilinkarrow-up97·edit-22 days agoTo add, !$ gets replaced with the last word from the previous command line !! Repeats the most recent command !-N Repeats the Nth previous command !string Repeats the most recent command that began with ‘string’
minus-square4am@lemmy.ziplinkfedilinkarrow-up25·1 day agoIf !$ isn’t pronounced “ba-ching!” I’m quitting Linux
minus-square🌞 Alexander Daychilde 🌞@lemmy.worldlinkfedilinkEnglisharrow-up10·1 day agoBetter than “bang-ching” which sounds racist to me. lol
minus-squareMinnesotaGoddam@lemmy.worldlinkfedilinkEnglisharrow-up3·edit-214 hours agothe (ng) is silent when used in compound punctuation in ba(ng)
minus-square🌞 Alexander Daychilde 🌞@lemmy.worldlinkfedilinkEnglisharrow-up4·13 hours agookay, but now THAT sounds racist for whole OTHER reasons… ;-)
minus-squareMinnesotaGoddam@lemmy.worldlinkfedilinkEnglisharrow-up3·13 hours agoit probably is, that professor who taught me it was belgian
minus-squareSkaveRat@discuss.tchncs.delinkfedilinkarrow-up6·19 hours agoGreat, now omarchy is going to adopt it
minus-squarevillage604@adultswim.fanlinkfedilinkEnglisharrow-up43·2 days agoI just learned more about Linux than I did from my whole IT degree.
minus-squareBlue Label@lemmy.worldlinkfedilinkEnglisharrow-up1·6 hours agoI learned Ubuntu in uni decades ago, and I didn’t know those commands exist.
minus-square4am@lemmy.ziplinkfedilinkarrow-up14·edit-21 day agoYou learned more about shells than you knew. This stuff works on BSD and some UNIX systems too, you know
minus-squareGreyEyedGhost@piefed.calinkfedilinkEnglisharrow-up3·1 day agoMost POSIX-compliant systems?
minus-squarem-p{3}@lemmy.calinkfedilinkarrow-up33·1 day ago!! is the goat when you needed to run the last command using sudo
minus-squareHal@piefed.nzlinkfedilinkEnglisharrow-up9·1 day agoHot damn, and here’s me thinking thefuck was the way to do this.
minus-squareKristell@herbicide.fallcounty.omg.lollinkfedilinkarrow-up14·1 day ago… How have I used Linux for two decades and not run into this once. Amazing stuff
minus-squareGreyEyedGhost@piefed.calinkfedilinkEnglisharrow-up8·1 day agoI’ve never come across this before, and I am completely unsurprised it exists.
minus-squareccunning@lemmy.worldlinkfedilinkarrow-up3arrow-down1·2 days agoHuh - TIL about !-N Thanks 🙏
To add,
!$ gets replaced with the last word from the previous command line
!! Repeats the most recent command
!-N Repeats the Nth previous command
!string Repeats the most recent command that began with ‘string’
If
!$isn’t pronounced “ba-ching!” I’m quitting LinuxBetter than “bang-ching” which sounds racist to me. lol
the (ng) is silent when used in compound punctuation in ba(ng)
okay, but now THAT sounds racist for whole OTHER reasons… ;-)
it probably is, that professor who taught me it was belgian
Great, now omarchy is going to adopt it
I just learned more about Linux than I did from my whole IT degree.
I learned Ubuntu in uni decades ago, and I didn’t know those commands exist.
You learned more about shells than you knew. This stuff works on BSD and some UNIX systems too, you know
Most POSIX-compliant systems?
!!is the goat when you needed to run the last command usingsudoHot damn, and here’s me thinking thefuck was the way to do this.
💯
… How have I used Linux for two decades and not run into this once. Amazing stuff
I’ve never come across this before, and I am completely unsurprised it exists.
I’m loving this
Huh - TIL about !-N
Thanks 🙏