@a14o@feddit.org to linuxmemes@lemmy.worldEnglish • 5 days agoSet and forgetfeddit.orgimagemessage-square57fedilinkarrow-up1508arrow-down10
arrow-up1508arrow-down1imageSet and forgetfeddit.org@a14o@feddit.org to linuxmemes@lemmy.worldEnglish • 5 days agomessage-square57fedilink
minus-square@tal@lemmy.todaylinkfedilinkEnglish17•edit-25 days 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-square@Lazycog@sopuli.xyzlinkfedilink4•5 days 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!
If 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 withhistory
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!