Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 657 Bytes

usefulLinuxCommands.md

File metadata and controls

28 lines (19 loc) · 657 Bytes

Useful Linux commands

This is just a collection of interesting Linux commands I've stumbled across over the years.

Get most used commands

history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort -nr | head -10

Fix apt dependency errors

sudo dpkg --configure -a
sudo apt --fix-broken install

Adjust laptop keyboard backlight brightness

gdbus call --session --dest org.gnome.SettingsDaemon.Power --object-path /org/gnome/SettingsDaemon/Power --method org.gnome.SettingsDaemon.Power.Keyboard.StepUp

Change default terminal

`sudo update-alternatives --config x-terminal-emulator`