minus-squareExec@pawb.socialtoAsk Lemmy@lemmy.world•Linux 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?linkfedilinkarrow-up22·14 days ago!!:n where n is the nth word after the command in your last line cp file1 file2 nano !!:2 Here nano opens file2. linkfedilink
!!:nwhere n is the nth word after the command in your last linecp file1 file2 nano !!:2Here nano opens file2.