Saturday, 18 March 2023

Still grepping the bash history?

"How to cycle through reverse-i-search in BASH?"

1. by repeatly pressing Ctrl+R

2. but also Ctrl+S, for the other direction - however, this only works after issuing an 

stty -ixon

source: unix.stackexchange

-

Btw... same here :)


Thursday, 26 January 2023

"How To Remove Old Snap Versions To Free Up Disk Space" - How to Keep Fewer Revisions

When in the mood to fight for the megabytes :) the Snap package manager by default keeps the 3 last versions of the snaps ... would that sound a bit too much, that number can be reduced:

https://www.linuxuprising.com/2019/04/how-to-remove-old-snap-versions-to-free.html

TL;DR

sudo snap set system refresh.retain=2

Saturday, 1 October 2022

List of recently changed Git tracked files in Bash

Forgot why I needed this, but isn't it a beauty :)

git whatchanged --since '2022-03-01' --oneline | grep "whatever_..." | uniq | sort

(Most likely largely via StackOverflow)

Friday, 30 September 2022

New to me too - create bootable using cp

Was just Googling around if I forgot anything about using dd for creating a bootable, and behold:

You can even create a bootable USB stick with cp (it seems much more straightforward for me than dd or a GUI):

sudo cp path/to/ISO /dev/sdX

Also:

That was really new to me. Together with progress unix.stackexchange.com/a/301329/87264 it shows progress, too

Source: AskUbuntu

Well, truly useful ... let's see ...!