abbadon420@sh.itjust.works to Ask Lemmy@lemmy.world · 12 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-square57linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-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 · 12 days agomessage-square57linkfedilinkfile-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-squaretal@lemmy.todaylinkfedilinkEnglisharrow-up0·12 days agoIf you’re using bash and haven’t modified the readline default, which is to use emacs keystrokes: $ ls foo/bar/baz Just what I wanted! Control-P Control-A Alt-D cd Enter
minus-squareBonkTheAnnoyed@piefed.blahaj.zonelinkfedilinkEnglisharrow-up0·12 days agoabsolutely brilliant <slow clap> You know, I always kind of wondered what happened when I accidentally pressed control C, control V or whatnot in bash. Level unlocked
If you’re using bash and haven’t modified the readline default, which is to use emacs keystrokes:
$ ls foo/bar/baz
Just what I wanted!
Control-P Control-A Alt-D cd Enter
absolutely brilliant <slow clap>
You know, I always kind of wondered what happened when I accidentally pressed control C, control V or whatnot in bash.
Level unlocked