Posts tagged “linux”

20220428T175828

28 April 2022

TIL you can convert OpenDocuments into txts and pdfs with unoconv.

unoconv -f pdf *.odt
unoconv -f txt *.odt



20220407T150511

7 April 2022

TIL you can use multiple ssh private keys in one client.

# credit: https://stackoverflow.com/a/2419609
Host myshortname realname.example.com
    HostName realname.example.com
    IdentityFile ~/.ssh/realname_rsa # private key for realname
    User remoteusername

Host myother realname2.example.org
    HostName realname2.example.org
    IdentityFile ~/.ssh/realname2_rsa  # different private key for realname2
    User remoteusername



20211215T100733

15 December 2021

TIL you can find a file recursively in Linux with the following command:


find . -name "*foo"

Here’s the Stack Overflow comment I got this from.




20211129T212900

29 November 2021

TIL you can switch back to the previous branch by running git switch -.




20211129T185500

29 November 2021

TIL you can navigate to the previous directory with cd -.