abbadon420@sh.itjust.works to Ask Lemmy@lemmy.world · 2 months 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-square47linkfedilinkarrow-up1122file-text
arrow-up1122message-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 months agomessage-square47linkfedilinkfile-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-squareusernameunnecessary@lemmy.ziplinkfedilinkarrow-up8·edit-22 months ago^ls^cd will do exactly what you want, replace ls with cd from the previously run command
^ls^cdwill do exactly what you want, replace ls with cd from the previously run command