linux
SSH Docker Proxmox Vim Helix

Linux commad library: : danetatik

ssh
ssh-keygen -t rsa -b 4096 -C “xlizarralde@gmail.com”
ssh-copy-id remote_host

neofetch (makinaren rekurtsoak ikusteko)
curl ifconfig.me (nere IP publikoa jakiteko)

starship https://starship.rs/config/ (terminaleko prompt-a polita uzteko)
Gruvbox Rainbow Preset

Nerd fonts:
FiraCode font
ttf-ubuntu-nerd
fc-list | grep -i nerd (fuente nerd danak listatzeko)

sudo rsync -r ~/documentos/self-hosted/silverbullet/space/ /media/nas/silverbullet VPS-an karpetak sinkronizatzeko

rsync (kopiatzeko servidoretik karpeta bat)

rsync -r xabi@164.90.187.25:/home/xabi/.local/share/docker/volumes/flatnotes\_data/\_data /home/xlizarralde/flatnotes\ (-r directory) serbidoretik lokalera

rsync -r /home/xlizarralde/flatnotes xabi@84.236.238.129:/home/xabi/.local/share/docker/volumes/flatnotes\_data/\_data lokaletik serbidorera

rsync xabi@164.90.187.25:/home/xabi/.config/nvim/init.lua /home/xlizarralde/nvim/

mv progresoa ikusteko ezin da, orduan:
cp -v —progress archivo destino/
rm archivo

zip -unzip
banatutako zip bat elkartzeko:
cat takeout-20240919T092503Z-001.zip takeout-20240919T092503Z-002.zip takeout-20240919T092503Z-003.zip > takeout_google_fotos_20240919.zip
Deskonprimitzeko artxibo desberdinetan dagoen zip bat:
7z x takeout-20240919T092503Z-001.zip takeout-20240919T092503Z-002.zip takeout-20240919T092503Z-003.zip google_fotos_20241909/

Kernel zaharrak borratzeko: [https://www.guia-ubuntu.com/index.php?title=Borrar\_kernels\_antiguos\](https://www.guia-ubuntu.com/index.php?title=Borrar\_kernels\_antiguos)

lehenengo listatu: dpkg --get-selections | grep linux-image

gero borratu: sudo apt-get remove --purge paquete

Cron
https://www.digitalocean.com/community/tutorials/how-to-use-cron-to-automate-tasks-ubuntu-1804-es
crontab -e cron-en tareak programatzeko usuario mailan
sudo crontab -e hobeto horrela sudo komandoak funzionatzen du

Atuin historikoarentzako (baina fzf eukita ez du pena merezi)
eza direktorioak eta artxiboak hobeto ikusteko

fzf

https://junegunn.github.io/fzf/shell-integration/

BREW instalatzeko
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Para Zsh -
echo ‘export PATH=“/home/linuxbrew:$PATH”’ >> $HOME/.zshrc

instalatzeko
brew install bat
yazi bat spaceship atuin eza

konfigurazioa: /home/linuxbrew

Yazi file manager for terminal
https://yazi-rs.github.io/docs/quick-start
https://atareao.es/comando-linux/yazi-el-gestor-de-archivos-mas-rapido-de-linux/
https://www.youtube.com/watch?v=iKb3cHDD9hw&list=WL&index=46&t=902s&ab_channel=JoseanMartinez
hjkl teklekin mugitzeko
gg goiko elementura
G beheko elementura
h home
Z (mayus): fzf bidez artxibora juteko.

Key bindingAction
------
KSeek up 5 units in the preview
JSeek down 5 units in the preview
g ⇒ gMove cursor to the top
GMove cursor to the bottom
zJump to a directory using zoxide
ZJump to a directory or reveal a file using fzf
SpaceToggle selection of hovered file/directory
vEnter visual mode (selection mode)
VEnter visual mode (unset mode)
Ctrl + aSelect all files
Ctrl + rInverse selection of all files
EscCancel selection
oOpen selected files
OOpen selected files interactively
EnterOpen selected files
Shift + EnterOpen selected files interactively (some terminals don’t support it yet)
TabShow the file information
yYank selected files (copy)
xYank selected files (cut)
pPaste yanked files
PPaste yanked files (overwrite if the destination exists)
Y or XCancel the yank status
dTrash selected files
DPermanently delete selected files
aCreate a file (ends with / for directories)
rRename selected file(s)
.Toggle the visibility of hidden files
Key bindingAction
;Run a shell command
:Run a shell command (block until finishes)
-Symlink the absolute path of yanked files
_Symlink the relative path of yanked files
Ctrl + -Hardlink yanked files

Filter files

Key bindingAction
fFilter files

Find files

Key bindingAction
/Find next file
?Find previous file
nGo to the next found
NGo to the previous found

Search files

Key bindingAction
sSearch files by name using fd
SSearch files by content using ripgrep
Ctrl + sCancel the ongoing search

Multi-tab

Key bindingAction
tCreate a new tab with CWD
1, 2, …, 9Switch to the N-th tab
[Switch to the previous tab
]Switch to the next tab
{Swap current tab with previous tab
}Swap current tab with next tab
Ctrl + cClose the current tab

aurretik cargo instalatu behar da:
curl https://sh.rustup.rs -sSf | sh https://doc.rust-lang.org/cargo/getting-started/installation.html

cargo install atuin
https://atareao.es/comando-linux/potencia-tu-productividad-en-la-linea-de-comandos-atuin-fzf-y-ctrlr/
https://atuin.sh/docs/commands/
Ctrl+r edo up-arrow historico comandos

Superfile:
https://atareao.es/podcast/este-gestor-de-archivos-para-linux-es-una-locura/
https://superfile.netlify.app/getting-started/installation/
Instalatzeko:
bash -c ”$(curl -sLo- https://superfile.netlify.app/install.sh)“
~/.config/superfile/config.toml
spf-ekin hasten da
n bigarren panela azaltzeko

Press s to focus on the sidebar.
Press p to focus on the processes.
Press m to focus on the metadata.
Press : to open command execution bar.
press e to open file
press E to open directory
press ? to help

puertos
sudo ufw allow 51820 para abrir
sudo ufw status numbered ver status
sudo ufw delete 4 para borrar la 4

para saber mi ip publica
curl ifconfig.me

Ruplacer
Reemplazoak egiteko https://lib.rs/crates/ruplacer

ruplacer pattern replacement [path]

the path is not given, it defaults to the current working directory.

Ripgrep (rg) bilaketak egiteko
https://github.com/UltiRequiem/traducciones/tree/master/ripgrep
ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern
https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md

dotfiles con STOW
https://apiumhub.com/es/tech-blog-barcelona/gestion-de-dotfiles-con-stow/

Gparted
parted erabiliz terminaletik sudo su bezela root usuariokin egin behar da
ematen du ez duela funtzionatzen ext4 partizioekin. horretarako resize2fs /dev/sda3

balena-etcher(imaginak flasheatzeko)
terminaletik balena-etcher komandoakin

kittyterminal modernoa
ctrl-shift-t (pestaña berria)
ctrl-shift-q (pestaña itxi)
ctrl-shift-enter (lehio berria)
ctrl-d (lehioa ixteko)
ctrl- eta fletxekin lehio arten mugitzeko

~/.config/kitty/kitty.conf barruan konfigurazioa

Ghostty: https://ghostty.org/docs
https://ghostty.zerebos.com/
ghostty +list-themes

buscar ficheros duplicados

fdupes https://es.linux-terminal.com/?p=5056

fdupes -r ~/Downloads busqueda recursiva
fdupes -S ~/Downloads para saber el tamaño de los duplicados encontrados
fdupes -d ~/Downloads elimina los archivos

Solución: Usar orden por nombre y organización previa
Ejecuta fdupes ordenando primero la carpeta originals y luego import (asumiendo que quieres conservar originals).
fdupes -rdN —order=name /ruta/originals /ruta/import
Aquí, la opción -r (recursivo), -d (eliminar), -N (sin prompt, borrar automáticamente), y —order=name asegura que, siempre que haya duplicados entre las dos carpetas, fdupes conservará el archivo cuyo nombre aparezca primero al ordenar (lo cual generalmente será originals, porque aparece primero en el comando)
Si quieres conservar siempre la versión de originals, asegúrate de que originals aparece antes que import en el listado de directorios del comando.

para crear menus contextuales en dolphin en plasma:
https://www.kdeblog.com/2026/01/09/como-crear-un-service-menu-para-plasma/

ffmpeg
para convertir videos AVI en mp4 con ffmpeg
moverte a la carpeta que corresponda y luego ejecutar
for i in *.avi; ffmpeg -i “i”); end