• 0 posts
  • 1 comment
Joined 4 years ago
Cake day: November 23rd, 2022
  • From most useful to very specific

    alias ..="cd .."
    
    # Hunt for space (show folder sizes, sorted)
    alias duc="du -hxd1 | sort -h"
    
    # Remove unnecessary archlinux packages (simple but has to be run as long as some remains because it is not recursive)
    alias arch-prune="sudo pacman -Qdtq | sudo pacman -Rn -"
    
    # Just because I can tab-complete commands so it is slightly faster/easier to type
    alias arch-update="sudo pacman -Syu"
    alias arch-clean="sudo pacman -Scc"
    
    # Check for errors in logs for the current boot (nice to check from time to time, trying to clean up invisible bloat)
    alias journal-errors="sudo journalctl -b -p err..alert"
    
    # Start/stop CPU boost (huge power/temperature difference, boost is mostly not needed, those kind of commands are always CPU specific sadly)
    alias disable-boost="sudo sh -c \"echo 0 >> /sys/devices/system/cpu/cpufreq/boost\""
    alias enable-boost="sudo sh -c \"echo 1 >> /sys/devices/system/cpu/cpufreq/boost\""
    
    # Unmount all mounted tmpfs used when I code (hence the /data/work) as I don't like compiling/bundling stuff on my SSD (avoid unnecessary read/write, RAM is better suited)
    alias unmount-worktmpfs="df -lt tmpfs --output=target | tail -n +2 | grep --color=never \"/data/work\" | xargs sudo umount"