< back commands.html

xprop WM_CLASS shows element's properties (may be useful to add "StartupWMClass=" into a .desktop launcher)

grep -rwl '/path/to/somewhere/' -e "something" searches for "something" inside files in "somewhere"

apt-cache policy package_name displays info about a specific package version installed

sudo dd bs=4M if=/path/to/linux-install.iso of=/dev/sdx && sudo sync writes ISO file to a USB drive (unmounted), run lsblk first to replace sdx

sudo gtk-update-icon-cache -f /usr/share/icons/icon_set to refresh icon cache

xfce4-panel -q && GTK_DEBUG=interactive xfce4-panel to debug xfce4-panel with GTK Inspector

test -d /sys/firmware/efi && echo efi || echo bios checks if we're using BIOS or EFI

kill $(xdotool getwindowpid `xdotool getactivewindow`) kills the active window's PID, requires xdotool
(may be used as a keyboard shortcut with sh -c "")

Change default applications / themes

sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/firefox 90
sudo update-alternatives --config x-www-browser

sudo update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/THEME/THEME.plymouth 100
sudo update-alternatives --config default.plymouth
sudo update-initramfs -u

sudo update-alternatives --config x-cursor-theme