Linux: recursively delete empty directories
Solution
# Print empty directories:
find . -type d -empty -print
# Delete empty directories:
find . -type d -empty -delete# Print empty directories:
find . -type d -empty -print
# Delete empty directories:
find . -type d -empty -deleteReplace DP-4, 1920x1080 & 144.0 with your displays information
xrandr --listactivemonitors | grep DP-4; if [ $? -ne 0 ]; then xrandr --output DP-4 --mode 1920x1080 --rate 144.0; else xrandr --output DP-4 --off; fi
For scale, the font sizing of Gnome Tweaks seems to do a better trick than xrandr --scale.
WINEPREFIX="$(pwd)" wine "/path/to/file.exe" # Run exe using current folder as wineprefix~/.steam/steam/steamapps/compatdata/ # Default Steam prefix locations (~ is a shortcut your home directory)~/.steam/steam/steamapps/common/Proton\ 9.0\ \(Beta\)/proton # Default proton binary location (for Proton 9)ssh-keygen -t ed25519 -C "your_email@example.com"alacritty -e sh -c "echo test && sleep 2"# Extract tar.gz
tar -xzvf archive.tar.gz
# --extract --gzip --verbose --file=archive.tar.gz
# Create tar.gz
tar -czvf archive.tar.gz file1.md file2.png
# --create --gzip --verbose --file=archive.tar.gz paths to archive
For non-gzip (e.g. just the .tar extension), simply remove -z/--gzip
ffmpeg -i input.mp4 -an -ss 00:03:00 -t 00:00:00.040 '%01d.png'