Locations
- OTF Fonts:
/usr/share/fonts/opentype/urw-base35/ - Permanent Mounts:
sudo nano /etc/fstab - Cooler Alias in bashrc:
alias update='sudo apt update && sudo apt full-upgrade -y'
Commands
- List disks:
lsblk - System Usage:
htopoderbtop - apt cleanup:
sudo apt autoclean && sudo apt autoremove -y - Auto Updates:
sudo dpkg-reconfigure --priority=low unattended-upgrades - NVMe health:
sudo nvme smart-log /dev/nvme0n1 - High DPI:
xrandr --output DisplayPort-1 --scale 1x1 - Flush DNS Cache:
sudo resolvectl flush-caches
Mount NFS Shares
showmount -e {ip}
sudo mkdir -p /mnt/{name}
sudo mount {ip}:{path} /mnt/{name}
Mount SMB Shares
sudo apt install cifs-utils
sudo mkdir -p /mnt/{name}
sudo mount -t cifs -o username={user},password={pass} //{ip}/{path} /mnt/{name}
Drive Rescue
- Rescue:
sudo ddrescue -r3 /dev/sdX {destination-path} - more Intense:
sudo scalpel {image-path} -o {destination-path}
Disk Backup and Restore
- Backup:
sudo dd if=/dev/sdX of={destination-path} bs=4M status=progress - Restore:
sudo dd if={image-path} of=/dev/sdX bs=4M status=progress
Recursive File Deletion and Cleanup
- Empty Subfolders:
find {path} -depth -type d -empty -delete - Files:
find {path} -depth -name {name} -delete - Folders:
find {path} -type d -name '{name}' -prune -exec rm -rf {} +
Git Config
git config --global user.name {full-name}
git config --global user.email {mail-address}
Fedora: Install Helium Browser
sudo dnf copr enable imput/helium
sudo dnf install helium-bin
Fedora: Set default Browser
xdg-settings set default-web-browser helium.desktop