Post AwjpeQZnL6msXbkdPM by darrenpmeyer@infosec.exchange
 (DIR) More posts by darrenpmeyer@infosec.exchange
 (DIR) Post #AwjpeQZnL6msXbkdPM by darrenpmeyer@infosec.exchange
       2025-08-01T13:41:12Z
       
       0 likes, 0 repeats
       
       @unixroot @alcinnz you can also use `!$` in whatever place you want the last argument to the previous command to be for the current command. So you could do ```vim a-file.txtmv !$ ~/```this will edit a-file.txt and then move it to your home directory. Bash/Zsh have other ! expansions for other arguments including `!!` for the entire last command. (`sudo !!` gets typed a lot…)
       
 (DIR) Post #AwjpeS0Q1bg6yTDPXs by musicmatze@social.linux.pizza
       2025-08-01T21:25:18Z
       
       0 likes, 0 repeats
       
       @darrenpmeyer@unixroot @alcinnz Some people havealias fuck="sudo !!"
       
 (DIR) Post #AwnhhGrTtQWEHMhyqG by darrenpmeyer@infosec.exchange
       2025-08-03T18:15:03Z
       
       0 likes, 0 repeats
       
       @musicmatze @unixroot @alcinnz I’ve seen that, but this is more comprehensive: https://github.com/nvbn/thefuckFigures out what was wrong with your last command and suggests a correction.