[EN] My List of helpful Terminal Commands

September 30, 2019 2 minutes

This Blog Post is going to be updated with new helpful Terminal Commands as I Am going to discover them.

Yubico Authenticator not working in Manjaro - Fix

sudo systemctl enable pcscd
sudo systemctl start pcscd

Linux - Enable Chrome Dark Mode (edit shortcut)

google-chrome-stable --enable-features=WebUIDarkMode --force-dark-mode

Arch - Increase max_user_watches permanently

echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max-user-watches.conf && sudo sysctl --system

Arch - Autoremove equivalent

sudo pacman -Rns $(pacman -Qtdq)

YouTube-DL download highest quality audio in MP3

youtube-dl -f bestaudio --extract-audio --audio-format mp3 --audio-quality 5


sudo apt-get install libheif-examples
for file in *.heic; do heif-convert $file ${file/%.heic/.jpg}; done

Ubuntu - Remove Ubuntu Dock without actually removing package

gsettings set org.gnome.shell.extensions.dash-to-dock autohide false
gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed false
gsettings set org.gnome.shell.extensions.dash-to-dock intellihide false

Youtube-DL download video in 480p

youtube-dl -f 'bestvideo[height<=480][ext=mp4]+bestaudio[ext=m4a]'

View CPU speed in MHz

watch -n1 "cat /proc/cpuinfo | grep \"^[c]pu MHz\""

Create bootable (UEFI) USB or SDCard

sudo dd bs=4M if=input.iso of=/dev/sd? conv=fdatasync  status=progress

Git save credentials

git config credential.helper store

KDE - Hide titlebars when maximized

kwriteconfig5 --file ~/.config/kwinrc --group Windows --key BorderlessMaximizedWindows true
qdbus org.kde.KWin /KWin reconfigure

macOS - Reset Launcher with rearrange programs alphabetically

defaults write com.apple.dock ResetLaunchPad -bool true && killall Dock

macOS - Delete all unused dependencies HomeBrew

brew bundle dump
brew bundle --force cleanup

Remove old Git branches that no longer exist on remote

git remote prune origin