a14o@feddit.org to linuxmemes@lemmy.worldEnglish · 8 months agoSet and forgetfeddit.orgimagemessage-square22linkfedilinkarrow-up116arrow-down11
arrow-up115arrow-down1imageSet and forgetfeddit.orga14o@feddit.org to linuxmemes@lemmy.worldEnglish · 8 months agomessage-square22linkfedilink
minus-squareLazycog@sopuli.xyzlinkfedilinkarrow-up1·8 months agoThis is why I follow linux memes, I don’t know if I have ever bumped into CTRL+R but I finally can let go of history
minus-squaretal@lemmy.todaylinkfedilinkEnglisharrow-up2·8 months agoIf you haven’t used them before, there’s also ! and ^. ! invokes the last command starting with the following string. ^ searches for the last command containing the first string, replaces that string with the second, and invokes that. $ ls *.mp4 Episode_One.mp4 Episode_Two.mp4 $ !l ls *.mp4 Episode_One.mp4 Episode_Two.mp4 $ ^mp4^mp3 ls *.mp3 music.mp3 $
minus-squareLazycog@sopuli.xyzlinkfedilinkarrow-up1·8 months agoI used !<index> Together with history by giving an index displayed in the history list, but did not know that you can use it like that! Also didn’t know about ^ Thanks for the tips!
This is why I follow linux memes, I don’t know if I have ever bumped into CTRL+R but I finally can let go of
historyIf you haven’t used them before, there’s also
!and^.!invokes the last command starting with the following string.^searches for the last command containing the first string, replaces that string with the second, and invokes that.I used
!<index>Together withhistoryby giving an index displayed in the history list, but did not know that you can use it like that! Also didn’t know about^Thanks for the tips!