abbadon420@sh.itjust.works to Ask Lemmy@lemmy.world · 19 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-square4linkfedilinkarrow-up10arrow-down10file-text
arrow-up10arrow-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 · 19 days agomessage-square4linkfedilinkfile-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-up2·19 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-squarevillage604@adultswim.fanlinkfedilinkEnglisharrow-up1·19 days agoI just learned more about Linux than I did from my whole IT degree.
minus-square4am@lemmy.ziplinkfedilinkarrow-up1·19 days agoYou learned more about shells than you knew. This stuff works on BSD and some UNIX systems too, you know
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’
I just learned more about Linux than I did from my whole IT degree.
You learned more about shells than you knew. This stuff works on BSD and some UNIX systems too, you know